Reply
Installed PHP and Variables Don't Pass
Old 04-26-2004, 03:41 AM Installed PHP and Variables Don't Pass
milomedia's Avatar
Super Talker

Posts: 133
Location: durango, colorado
Hi..

I'm really trying to figure out how to explain all this without sounding like a gerbil on dope.

I just installed php and mysql on an older powermac running OSX. Everything works nicely. I even got phpMyAdmin installed and created a new database, tables, etc.

Then I wrote a nice script to fill the databases up with info (it is a client database to be run locally) So, to tell the difference between editing, adding, etc, i use the old
PHP Code:
 if (isset($addpage)): 
and so on and so forth. So.. When I pass a variable in the url (http://www.mysite.com/test.php?THIS="that") it doesn't work... When I upload it to my regular web servers it works fine. Basically I've done a million little tests to show that everything is working except variables won't travel...

This has led me too think that the problem is in the php.ini file on the g4. So my question is, in a nutshell, WHAT THE HELL IS GOING ON?!?!?!?!?!?

cheers
-e
__________________
_______________________________
Feeling down? listen to AFTERGRASS - Free Music Downloads
milomedia is offline
Reply With Quote
View Public Profile Visit milomedia's homepage!
 
When You Register, These Ads Go Away!
     
Old 04-26-2004, 10:44 AM
OtterBob's Avatar
Super Talker

Posts: 116
Location: Greece, NY USA
In a nutshell? PHP comes configures with register_globals set to off, and has since 4.2 if I remember correctly. Check out this page for more info: http://us3.php.net/globals
__________________
"What? Oh {darn}! Now my last words are gonna be 'what'." - Otter Bob (Burt Reynolds), The Cherokee Kid
OtterBob is offline
Reply With Quote
View Public Profile Visit OtterBob's homepage!
 
Old 04-26-2004, 03:06 PM
milomedia's Avatar
Super Talker

Posts: 133
Location: durango, colorado
That did it! Actually my REAL problem was that I was editing the wrong php.ini file. But my secondary problem was rgister globals. The php.ini file was in private and not etc. Why? I have no idea. Anyway, Thanks for the help!
__________________
_______________________________
Feeling down? listen to AFTERGRASS - Free Music Downloads
milomedia is offline
Reply With Quote
View Public Profile Visit milomedia's homepage!
 
Old 04-26-2004, 04:15 PM
OtterBob's Avatar
Super Talker

Posts: 116
Location: Greece, NY USA
Happy to help. I had the same problem with register_globals when I first set up php on my laptop for testing. Drove me nuts for hours.
__________________
"What? Oh {darn}! Now my last words are gonna be 'what'." - Otter Bob (Burt Reynolds), The Cherokee Kid
OtterBob is offline
Reply With Quote
View Public Profile Visit OtterBob's homepage!
 
Reply     « Reply to Installed PHP and Variables Don't Pass
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11956 seconds with 13 queries