Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-10-2003, 06:36 AM   PM User | #1
Candrias77
Regular Coder

 
Join Date: Jul 2002
Location: New Zealand
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
Candrias77 is an unknown quantity at this point
Query String Issue

I have just installed PHPDEV but have a problem - I can't pass variables through the url. Links that were fine on my remote server just act as though there was no query string at all.

I have posted my problem at the firepages.com.au forum but have had no response yet, I was hoping that maybee someone would have some idea of what the problem could be.

I have never installed Apache on this pc before, I am running WinXP (NTFS).

Cheers, appreciate any help.
__________________
eTheory - the theory of revolution
Candrias77 is offline   Reply With Quote
Old 02-17-2003, 07:55 PM   PM User | #2
requestcode
Regular Coder

 
Join Date: Jun 2002
Posts: 626
Thanks: 0
Thanked 0 Times in 0 Posts
requestcode is an unknown quantity at this point
If you go to his website and search in the forums there you will find your answer. It has to do with changing this line:
register_globals=On

in the php.ini file. You need to set that to "On" for it to work.
requestcode is offline   Reply With Quote
Old 02-17-2003, 08:04 PM   PM User | #3
Spookster
Supreme Overlord


 
Spookster's Avatar
 
Join Date: May 2002
Location: Marion, IA USA
Posts: 6,220
Thanks: 4
Thanked 80 Times in 79 Posts
Spookster will become famous soon enough
Quote:
Originally posted by requestcode
If you go to his website and search in the forums there you will find your answer. It has to do with changing this line:
register_globals=On

in the php.ini file. You need to set that to "On" for it to work.
Well that would not really be the problem. You can pass variables through the query string with register globals off. The problem is how you refer to those variables ie.

HTTP_GET_VARS["yaks"] for globals on

_GET["yaks"] for globals off.

If you host has set set your globals to on then it might be a good idea to set up your development envioronment that way however using globals in general is just a bad idea and webhosts are only going back and setting the newer versions of PHP to register globals to on because so many people are already using programs that were written for globals being off or were written poorly.
__________________
Spookster
CodingForums Supreme Overlord
All Hail Spookster
Who gave you that Ugging infraction? Yeah that's right it was me!
Spookster is offline   Reply With Quote
Old 02-18-2003, 06:38 AM   PM User | #4
Candrias77
Regular Coder

 
Join Date: Jul 2002
Location: New Zealand
Posts: 127
Thanks: 0
Thanked 0 Times in 0 Posts
Candrias77 is an unknown quantity at this point
Thanks to both of you, I understand the whole system a little better now.
__________________
eTheory - the theory of revolution
Candrias77 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:16 AM.


Advertisement
Log in to turn off these ads.