|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have been progging PHP for about 4 months now, and I'm working on a large project with alot of code. I havent updated PHP nor Apache in those 4 months, so I dicided to do that about a week ago. Now I'm having a nasty problem. with the old server I could do this:
When I called an file like this Code:
<a href='index.php?page=main'> and in that file Code:
<?PHP echo($page); ?> but with this new server, I have to add this: Code:
<?PHP $page = $_GET['page']; echo($page); ?> As I have thousands of lines of code, I cant update my whole project. What I'm hoping is that I forgot to enable a options somewhere in the PHP settings that enables automatic parsing of those variables! Please help me! |
|
#2
|
|||
|
|||
|
Change register_globals in the php.ini file. It's been set to off by default for security reasons. Change it to on.
|
|
#3
|
|||
|
|||
|
Thanks alot. I'll slowly begin with adding al the _GETS because I read the sticky and the comments before the register_globals. But still thanks!
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > _GET problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|