LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-19-2005, 11:05 PM   #1
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
another apache question (maybe PHP)


I have a php script where I dump all of the _env vars, and all of the _server vars. When I run this script on windows (IIS), these vars are a lot more populated. For instance: _ENV[HTTP_REFERER] is not populated using apache/fedora3, but it is populated with win2k/IIS. This is a handy variable to have around.

I am sure that this is probably a configuration issue. I am not sure what to change, since I am new at apache. I suppose this could also be a PHP issue, I'm not sure. I am targeting the web server though (there is probably a lot more difference between IIS/apache then between phpXX.XX/phpXX.XX.
 
Old 05-20-2005, 02:04 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
That's normal behavior.
If you go directly to the page with the php script, it's normal for the HTTP_REFERER to be empty. Try to call that page from another one and you'll see that the value of HTTP_REFERER will be populated.
 
Old 05-20-2005, 01:46 PM   #3
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Original Poster
Rep: Reputation: 30
Thx for trying to help.

That's what I'm trying to say. It is not populated if called from another page. It shouldn't be if it was typed in the address bar, there's nothing to populate it with.

This is just one of several variables though. The question is about all of the variables, not just that one particular one. I just picked it for an examle. It is lacking about 20 variables as compared to win.

Any other idea?
 
  


Reply



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
Apache/PHP Question Bobscrachy Linux - Software 5 12-12-2005 01:47 AM
Quick Apache + PHP question locke105 Slackware 2 08-02-2005 07:19 PM
question about APACHE and PHP fritz001 Slackware 2 05-15-2005 11:40 AM
Apache-PHP question jolu2000 Linux - Software 3 06-04-2003 03:57 PM
Php & Apache question DoubleLetter Linux - General 8 10-16-2001 03:23 PM

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

All times are GMT -5. The time now is 05:21 PM.

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
Open Source Consulting | Domain Registration