Re: [PHP] Environment variables in php.ini
On 3/30/07, Abdullah Ramazanoglu [EMAIL PROTECTED] wrote: Hello, I have a Linux shared hosting environment with PHP running over CGI. With CGI I can't use httpd.conf or .htaccess files for PHP related parameters, so all the parameters should be given in one central php.ini file, AFAIK. So how can I give parameters, in effect, like the ones below? error_log = $HOME/php_error.log session.referer_check = $DOMAIN_NAME open_basedir = $HOME:/usr/lib/php:/usr/local/lib/php:/tmp session.save_path = $HOME/sessions With PHP module SAPI I would have overridden them in httpd.conf VirtualHost directive with hard coded values. There, I don't have to use variables as every vhost has its own VirtualHost section. But I don't know how to do it (or if it is possible at all) in CGI mode. Actually I did find a raw solution: Put a custom php.ini in each virtual host's Doc_Root. But I don't really want to allow virtual hosts each having a custom php.ini in their home directories, as that solution has several serious drawbacks, like: - No server/security policies can be enforced, - An intruder can change the local php.ini and remove all the security measures, - Hundreds of php.ini files strewn around can easily lead to chaos, - etc. Is it possible at all to use environment variables in php.ini, or is there any other solution to the problem above? Thank you. -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm It probably is possible, but you could just use a php.ini in each userdir, but give it only access to the user PHP is running on. Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Environment variables in php.ini
Abdullah Ramazanoglu wrote: Hello, I have a Linux shared hosting environment with PHP running over CGI. With CGI I can't use httpd.conf or .htaccess files for PHP related parameters, so all the parameters should be given in one central php.ini file, AFAIK. So how can I give parameters, in effect, like the ones below? error_log = $HOME/php_error.log session.referer_check = $DOMAIN_NAME open_basedir = $HOME:/usr/lib/php:/usr/local/lib/php:/tmp session.save_path = $HOME/sessions With PHP module SAPI I would have overridden them in httpd.conf VirtualHost directive with hard coded values. There, I don't have to use variables as every vhost has its own VirtualHost section. But I don't know how to do it (or if it is possible at all) in CGI mode. Actually I did find a raw solution: Put a custom php.ini in each virtual host's Doc_Root. But I don't really want to allow virtual hosts each having a custom php.ini in their home directories, as that solution has several serious drawbacks, like: - No server/security policies can be enforced, - An intruder can change the local php.ini and remove all the security measures, - Hundreds of php.ini files strewn around can easily lead to chaos, - etc. Is it possible at all to use environment variables in php.ini, or is there any other solution to the problem above? Thank you. Read this: http://us3.php.net/manual/en/configuration.php#configuration.file You can put a file in any other these locations that will be read by the cgi when it is started. my suggestion would be to use a single php.ini file in a global location. Then symlink a php.ini to there home directory or web root. Then set perms on the single global file such that only you can write to it, but everybody can read it. This should work for you. -- Enjoy, Jim Lucas Different eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree. - Rush -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Environment variables in php.ini
Hello, I have a Linux shared hosting environment with PHP running over CGI. With CGI I can't use httpd.conf or .htaccess files for PHP related parameters, so all the parameters should be given in one central php.ini file, AFAIK. So how can I give parameters, in effect, like the ones below? error_log = $HOME/php_error.log session.referer_check = $DOMAIN_NAME open_basedir = $HOME:/usr/lib/php:/usr/local/lib/php:/tmp session.save_path = $HOME/sessions With PHP module SAPI I would have overridden them in httpd.conf VirtualHost directive with hard coded values. There, I don't have to use variables as every vhost has its own VirtualHost section. But I don't know how to do it (or if it is possible at all) in CGI mode. Actually I did find a raw solution: Put a custom php.ini in each virtual host's Doc_Root. But I don't really want to allow virtual hosts each having a custom php.ini in their home directories, as that solution has several serious drawbacks, like: - No server/security policies can be enforced, - An intruder can change the local php.ini and remove all the security measures, - Hundreds of php.ini files strewn around can easily lead to chaos, - etc. Is it possible at all to use environment variables in php.ini, or is there any other solution to the problem above? Thank you. -- Abdullah Ramazanoglu aramazan ÄT myrealbox D0T cöm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Environment variables...
Hi, Le Wed, 14 Mar 2007 17:37:02 -0500 (CDT), Richard Lynch [EMAIL PROTECTED] a écrit : PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. If you alter the environment of the PHP user you might get what you want. You may also be able to use http://php.net/setenv And http://php.net/getenv is probably faster than your exec. Setting the env up in httpd.conf and/or php.ini and/or .htaccess should work. httpd.conf for sure, others I think. Yes, great... Now, I have another problem ;-) In Debian, everything is ok. I put my variable in /etc/apache2/httpd.conf. But on RedHat, I don't know which file is concerned... So, I've searched in php.ini, but I did not find a place where I can put variables... Do you know which is the equivalent of /etc/apache2/httpd.conf on RedHat ? And is it possible (and how ;-)) to put variables in the php.ini ? Thank you very much. David. On Wed, March 14, 2007 9:32 am, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. signature.asc Description: PGP signature
RE: [PHP] Environment variables...
Yes, great... Now, I have another problem ;-) In Debian, everything is ok. I put my variable in /etc/apache2/httpd.conf. But on RedHat, I don't know which file is concerned... It's /etc/httpd/conf/httpd.conf on Fedora so I'd expect Red Hat to be the same. You'd probably be best putting in /etc/httpd/conf.d/php.conf though so as to keep all the PHP stuff in one place. (All the files in /etc/httpd/conf.d/ are imported by httpd.conf). Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Environment variables...
Everything is OK !!! Thank you very much. David. Le Thu, 15 Mar 2007 13:39:33 -, Edward Kay [EMAIL PROTECTED] a écrit : Yes, great... Now, I have another problem ;-) In Debian, everything is ok. I put my variable in /etc/apache2/httpd.conf. But on RedHat, I don't know which file is concerned... It's /etc/httpd/conf/httpd.conf on Fedora so I'd expect Red Hat to be the same. You'd probably be best putting in /etc/httpd/conf.d/php.conf though so as to keep all the PHP stuff in one place. (All the files in /etc/httpd/conf.d/ are imported by httpd.conf). Edward signature.asc Description: PGP signature
Re: [PHP] Environment variables...
On Thu, March 15, 2007 8:18 am, David BERCOT wrote: Le Wed, 14 Mar 2007 17:37:02 -0500 (CDT), Richard Lynch [EMAIL PROTECTED] a écrit : PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. If you alter the environment of the PHP user you might get what you want. You may also be able to use http://php.net/setenv And http://php.net/getenv is probably faster than your exec. Setting the env up in httpd.conf and/or php.ini and/or .htaccess should work. httpd.conf for sure, others I think. Yes, great... Now, I have another problem ;-) In Debian, everything is ok. I put my variable in /etc/apache2/httpd.conf. But on RedHat, I don't know which file is concerned... So, I've searched in php.ini, but I did not find a place where I can put variables... Do you know which is the equivalent of /etc/apache2/httpd.conf on RedHat ? And is it possible (and how ;-)) to put variables in the php.ini ? It depends on who built the RPM, or if you used source to install... /etc/httpd.conf /etc/httpd/httpd.conf /usr/local/lib/apache/conf/httpd.conf . . . Perhaps you can find the httpd.conf file with either of: locate httpd.conf find / -name httpd.conf -print The first one will be fast, if it's been installed. The second one could take forever, if there are many files on your drive. I have no idea about setting env values in php.ini... .htacces, though, should be quick and easy to try out... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Environment variables...
PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. Just a note for the sticklers out there: PHP does not run as its own user. It runs as whatever user runs the php script. So, if the script is being run by a web server, it runs as whomever the web server runs as. If you execute the script from a shell (cli), it runs as whatever user you are logged in as... erik jones [EMAIL PROTECTED] sofware developer 615-296-0838 emma(r)
[PHP] Environment variables...
Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. signature.asc Description: PGP signature
Re: [PHP] Environment variables...
On 3/14/07, David BERCOT [EMAIL PROTECTED] wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. PHP is running from apache, which is running probably from the nobody user. This user hasn't loaded any variables i think. So, why are you not just reading /etc/profile from php? Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Environment variables...
Depending on your system and environment (platform and cli v. cgi), they should be in either of the $_ENV or $_SESSION superglobals. On Mar 14, 2007, at 9:32 AM, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. erik jones [EMAIL PROTECTED] sofware developer 615-296-0838 emma(r)
Re: [PHP] Environment variables...
Le Wed, 14 Mar 2007 15:40:28 +0100, Tijnema ! [EMAIL PROTECTED] a écrit : On 3/14/07, David BERCOT [EMAIL PROTECTED] wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. PHP is running from apache, which is running probably from the nobody user. This user hasn't loaded any variables i think. I think, on Debian, it is www-data. Some variables are loaded, but I don't know where they come from... If I find, I can add one ;-à So, why are you not just reading /etc/profile from php? Yes, it is possible, but I'd like to do the same under many servers, with different OS (RedHat, Debian for example), so, files are not at the same place. David. signature.asc Description: PGP signature
Re: [PHP] Environment variables...
Le Wed, 14 Mar 2007 09:42:13 -0500, Erik Jones [EMAIL PROTECTED] a écrit : Depending on your system and environment (platform and cli v. cgi), they should be in either of the $_ENV or $_SESSION superglobals. It is Debian... But the variable I added is not in $_ENV or $_SESSION superglobals... David. On Mar 14, 2007, at 9:32 AM, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. erik jones [EMAIL PROTECTED] sofware developer 615-296-0838 emma(r) signature.asc Description: PGP signature
Re: [PHP] Environment variables...
Well, as David BERCOT pointed out, if this is in a web environment then the environment available to php will be that of whatever user your web server is running as (probably 'nobody' if you're on apache, not sure about other web servers). So, you'll need to look at making that variable available in you're web server user's env. On Mar 14, 2007, at 9:52 AM, David BERCOT wrote: Le Wed, 14 Mar 2007 09:42:13 -0500, Erik Jones [EMAIL PROTECTED] a écrit : Depending on your system and environment (platform and cli v. cgi), they should be in either of the $_ENV or $_SESSION superglobals. It is Debian... But the variable I added is not in $_ENV or $_SESSION superglobals... David. On Mar 14, 2007, at 9:32 AM, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. erik jones [EMAIL PROTECTED] sofware developer 615-296-0838 emma(r) erik jones [EMAIL PROTECTED] sofware developer 615-296-0838 emma(r)
Re: [PHP] Environment variables...
PHP runs as its own user in its own environment. Stuff you cram into your environment has no effect on that, as it should be. If you alter the environment of the PHP user you might get what you want. You may also be able to use http://php.net/setenv And http://php.net/getenv is probably faster than your exec. Setting the env up in httpd.conf and/or php.ini and/or .htaccess should work. httpd.conf for sure, others I think. On Wed, March 14, 2007 9:32 am, David BERCOT wrote: Hi, I'd like to read an environment variable with PHP. I've tried with : exec ('echo $CONTEXTE_D_EXECUTION',$result); $result is empty !!! I've put the variable in /etc/environment, in /etc/profile, in /etc/bash.bashrc but nothing worked... Do you have any idea ? If it is not possible, I suppose I can put a variable in php.ini ? Thank you very much. David. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Environment Variables
Hello. I have run into a weird problem with php. I have a very short php script that will print out a particular environment variable. Here is the contents of an index.php file: htmlheadtitleTest/title/head body bgcolor=#FF b LOOK -- ? print($MY_VAR); ?/b /body/html Now, when I go to http://server/index.php, it prints out my variable as I want. LOOK -- MY Test Variable But, when I just go to http://server/ (and I have index.php as a directory index in the apache server config file) the variable isn't set and all I get is: LOOK -- Anybody have any ideas what may be causing this behavior? Thanks in advance. -- Bob Morse Senior Systems Programmer Brown University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Environment Variables
My guess is that you should look into your server's configuration, to see if it recognizes index.php as a valid main page. Maybe it's configured (standard) to detect index.htm / index.html as valid main pages. HTH, C. -Original Message- From: Robert Morse [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: [PHP] Environment Variables Hello. I have run into a weird problem with php. I have a very short php script that will print out a particular environment variable. Here is the contents of an index.php file: htmlheadtitleTest/title/head body bgcolor=#FF b LOOK -- ? print($MY_VAR); ?/b /body/html Now, when I go to http://server/index.php, it prints out my variable as I want. LOOK -- MY Test Variable But, when I just go to http://server/ (and I have index.php as a directory index in the apache server config file) the variable isn't set and all I get is: LOOK -- Anybody have any ideas what may be causing this behavior? Thanks in advance. -- Bob Morse Senior Systems Programmer Brown University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Environment Variables Functions Incompatible???
I am running code on different versions of PHP, specifically 4.0.6 and 4.1.2. For some reason, you have to use $HTTP_SERVER_VARS[HTTP_HOST]) on 4.0.6 and $_SERVER[HTTP_HOST] on 4.1.2. I'm not sure who thought that breaking backward compatibility was a good idea, but let's ignore that for the moment. In this situation, the obvious thing to do here would be to make a common function to return the hostname. But, this does not work as illustrated below: - this is the main PHP script ?php //main.php include (crap.php); function thisalsonowork() { print Third one: (.isset($HTTP_SERVER_VARS[HTTP_HOST]).); } thisnowork(); print Second one: (.isset($HTTP_SERVER_VARS[HTTP_HOST]).); thisalsonowork(); ? --- this is the include/require script ?php //crap.php function thisnowork() { print First one: (.isset($HTTP_SERVER_VARS[HTTP_HOST]).); } ? --- Here is the output First one: ()Second one: (1)Third one: () Besides the fact that the different versions of PHP provide different environment variables for determining the host, the isset() on the env variable works differently inside a function. What is going on here? Am I just missing something obvious? Thanks, -- Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Environment Variables Functions Incompatible???
They did not break backwords compatiblity, because $HTTP_*_VARS works on all the new versions of PHP so far, it's just not Super Global... Eric - Original Message - From: arti [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 10:40 AM Subject: [PHP] Environment Variables Functions Incompatible??? I am running code on different versions of PHP, specifically 4.0.6 and 4.1.2. For some reason, you have to use $HTTP_SERVER_VARS[HTTP_HOST]) on 4.0.6 and $_SERVER[HTTP_HOST] on 4.1.2. I'm not sure who thought that breaking backward compatibility was a good idea, but let's ignore that for the moment. In this situation, the obvious thing to do here would be to make a common function to return the hostname. But, this does not work as illustrated below: - this is the main PHP script ?php //main.php include (crap.php); function thisalsonowork() { print Third one: (.isset($HTTP_SERVER_VARS[HTTP_HOST]).); } thisnowork(); print Second one: (.isset($HTTP_SERVER_VARS[HTTP_HOST]).); thisalsonowork(); ? --- this is the include/require script ?php //crap.php function thisnowork() { print First one: (.isset($HTTP_SERVER_VARS[HTTP_HOST]).); } ? --- Here is the output First one: ()Second one: (1)Third one: () Besides the fact that the different versions of PHP provide different environment variables for determining the host, the isset() on the env variable works differently inside a function. What is going on here? Am I just missing something obvious? Thanks, -- Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Environment Variables Functions Incompatible???
On Wednesday 03 April 2002 23:40, arti wrote: Besides the fact that the different versions of PHP provide different environment variables for determining the host, the isset() on the env variable works differently inside a function. What is going on here? $HTTP_SERVER_VARS is only available in the global scope but you're trying to use it inside the scope of your function. Here's how to do it. function doo() { global $HTTP_SERVER_VARS; print_r($HTTP_SERVER_VARS); } -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* What the scientists have in their briefcases is terrifying. -- Nikita Khruschev */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Environment Variables
BlankHello, I need to look up in the PHP online reference other variables similar to $DOCUMENT_ROOT. I can't find them. Anyone know where to find them at? Thank you, Karl J. Stubsjoen www.excelir.com/worldshop -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Environment Variables
http://www.php.net/manual/en/language.variables.predefined.php#language.vari ables.predefined.php Kirk -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 10:08 AM To: PHP Mailing List Subject: [PHP] Environment Variables BlankHello, I need to look up in the PHP online reference other variables similar to $DOCUMENT_ROOT. I can't find them. Anyone know where to find them at? Thank you, Karl J. Stubsjoen www.excelir.com/worldshop -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Environment Variables
how do you sent a Environment Variables for the php script to execute in? i need to set INFORMIXSERVER so i can use the informix php functions. This is going live tomorrow and we don't have it working yet...PLEASE HELP! thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Environment Variables
i figured it out...thanks. putenv() Joe Rice([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 03:16:35PM -0600: how do you sent a Environment Variables for the php script to execute in? i need to set INFORMIXSERVER so i can use the informix php functions. This is going live tomorrow and we don't have it working yet...PLEASE HELP! thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Environment Variables ???
Well, you should write some peace of code that will track your users Try to search on Goggle, hotscripts.com etc ... PHP cannot tell it to you automatically ... it can give you some data using which with some logic you can arrived other point you know who they are and how they found you ... Cheers, Maxim Maletsky -Original Message- From: Barry Fawthrop [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 5:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Environment Variables ??? Importance: High Why do the Environment Variables REMOTE_IDENT REMOTE_USER HTTP_FROM HTTP_IDENT and others exists IF they don't return any information ??? Is there anyway to find out Who visit's your site. (1) I'm trying to determine between Search Engines and actual Visitors (2) I'm trying to see who is interested in what I have. I have mailing list and guestbook, yet no-one clicks these Are there any "tricks" I can use to see who these people are ?? This is for a Christian Ministry site, if this is a factor Thanks Barry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Environment Variables ???
Why do the Environment Variables REMOTE_IDENT REMOTE_USER HTTP_FROM HTTP_IDENT and others exists IF they don't return any information ??? Is there anyway to find out Who visit's your site. (1) I'm trying to determine between Search Engines and actual Visitors (2) I'm trying to see who is interested in what I have. I have mailing list and guestbook, yet no-one clicks these Are there any "tricks" I can use to see who these people are ?? This is for a Christian Ministry site, if this is a factor Thanks Barry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Environment Variables ???
The HTTP_IDENT env. variable was depreciated due to its limited use. REMOTE_USER does have a value if the user has been authenticated. If the authentication was successfull then the users name is stored in here. Use HTTP_REFERER if you want to know where the visitors were before they came to your site or a page on it. ""Barry Fawthrop"" [EMAIL PROTECTED] wrote in message 00db01c096c7$67511800$[EMAIL PROTECTED]">news:00db01c096c7$67511800$[EMAIL PROTECTED]... Why do the Environment Variables REMOTE_IDENT REMOTE_USER HTTP_FROM HTTP_IDENT and others exists IF they don't return any information ??? Is there anyway to find out Who visit's your site. (1) I'm trying to determine between Search Engines and actual Visitors (2) I'm trying to see who is interested in what I have. I have mailing list and guestbook, yet no-one clicks these Are there any "tricks" I can use to see who these people are ?? This is for a Christian Ministry site, if this is a factor Thanks Barry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]