homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Help! Problem with Apache / php 4.2.1 on WinME
doesn't recognize variables in urls...
habitat675




msg:1251527
 5:14 pm on Jun 23, 2002 (gmt 0)

Okay- I don't know what's going on with this. I installed Apache and php on my other computer and it works fine. The same scripts also work fine if I upload them to my web site. The problem is, on this computer I can't seem to store variables in URLs or in separate files- for example the include function. If I make the variable $selection and put in the url ?selection=whatever, it isn't working. It won't regognize the variable. This is also true with any type of form where you type in something and that becomes the variable. The problem is *not* with the scripts, it's with either php or apache. But I don't know enough about editing the php.ini file and things like that to know what's going on! I don't like to have to go online and upload each file to test it. Everything else about php works file though. Does anyone know how I can fix this problem? thanks.

 

toadhall




msg:1251528
 10:37 pm on Jun 23, 2002 (gmt 0)

Check httpd.conf (apache\conf\httpd.conf) and PHP's php.ini (in your windows directory) against the .conf and .ini files on the working box. Everything the same?

ggrot




msg:1251529
 1:31 am on Jun 27, 2002 (gmt 0)

Sounds like your apache installation has register_globals turned off. You can figure out if this is the problem by writing a script that simply echoes the output of the function php_info() and then look for the register_globals line. You can also find out more information about this configuration at:
[php.net...]

ergophobe




msg:1251530
 7:41 pm on Jun 27, 2002 (gmt 0)


If I make the variable $selection and put in the url ?selection=whatever, it isn't working. It won't regognize the variable.

Do you have the same version of PHP running? This practice is deprecated and I believe that register globals is now turned off by default. If you have older versions of PHP on the other machines, it would work, but not with the new install.

Tom

ergophobe




msg:1251531
 7:43 pm on Jun 27, 2002 (gmt 0)

For more info, see the wanring at

[php.net...]

You should know that this change was made because the method you're using presents a serious security risk

Tom

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved