LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2004, 06:31 AM   #1
thrice
Member
 
Registered: Apr 2003
Distribution: Xubuntu
Posts: 112

Rep: Reputation: 15
url php variables aren't being recognized/used


i have my website running locally on my machine for testing purposes. i got php, mysql, and apache up and running, and i can access my site fine, but none of hte variables that get passed in from the url are being used. i'm guessing i need to enable something in php.ini or something, but i'm not sure what. anyone have any ideas? i tried getting help at webdevelopers.com forum, but no luck there. i explain my problem in more detail there if you need a little more. for brevity's sake i'm not going to post it all again and this seems like a very simple configuration error. the post can be found here
http://www.webdevelopers.com/forum/s...threadid=40775

thanks in advance
 
Old 08-01-2004, 07:30 AM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Simple solution:

Check php.ini.

Look for: Data handling section

See what the argument input separation is. And use that, or make your own separation character. Just follow the instructions for it.

And remember, after every change you make to the php.ini, you must restart the httpd service:

/sbin/service httpd restart (as root)

Good luck!

Peace!
 
Old 08-01-2004, 07:38 AM   #3
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Also make sure that the directory set in the Session section, for temporary files for a session is writable for the apache user. That could help.
 
Old 08-01-2004, 04:11 PM   #4
thrice
Member
 
Registered: Apr 2003
Distribution: Xubuntu
Posts: 112

Original Poster
Rep: Reputation: 15
thanks for the replies. marghorp...my site uses '&'s to separate variables. i've already set that part of the php.ini file, thinkin that must be the problem. i changed it to this

arg_separator.input = "&"

but it didn't fix it.also i tried

session.save_path = "/tmp"

and that had no effect either. is there something else that could be causing it? i appreciate the help
 
Old 08-02-2004, 07:58 AM   #5
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
One silly, thing I am sure you thought off, but I don't know if you did. IF you noticed that comments are marked with ; in php.ini

So please check that the arg_separator.input = "&"

DOES NOT begin with a ; because that means it is commented out and has no meaning if you changed it. I am almost sure that those two things I told you about in the previous posts are responsible for the arguments not to be passed around.
 
Old 08-04-2004, 05:16 AM   #6
thrice
Member
 
Registered: Apr 2003
Distribution: Xubuntu
Posts: 112

Original Poster
Rep: Reputation: 15
Talking

figured out what it was...wasn't QUITE as silly as forgetting to remove the ';', but it wasn't far from it. i had register_globals = Off =)

Last edited by thrice; 08-04-2004 at 05:17 AM.
 
Old 08-04-2004, 06:37 AM   #7
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Glad to see, you made it. It feels good, right?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are PHP session variables held in memory when you leave a PHP site? Locura Programming 11 11-16-2008 09:37 PM
PHP passing variables from url to ... latino Programming 3 08-31-2005 07:35 PM
daunting task - read wml input, insert variables into URL, DL page, parse, write file jeffreybluml Programming 1 05-12-2005 07:31 AM
Pass multiple URL variables PHP agallant Programming 3 10-21-2004 08:29 PM
PHP Url? HappyDude Programming 2 09-20-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration