LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   another apache question (maybe PHP) (https://www.linuxquestions.org/questions/linux-software-2/another-apache-question-maybe-php-325237/)

zchoyt 05-19-2005 11:05 PM

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.

bathory 05-20-2005 02:04 AM

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.

zchoyt 05-20-2005 01:46 PM

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?


All times are GMT -5. The time now is 10:52 AM.