Re: [PHP] Environment variables in php.ini

2007-03-30 Thread Tijnema !
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

Re: [PHP] Environment variables in php.ini

2007-03-30 Thread Jim Lucas
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

[PHP] Environment variables in php.ini

2007-03-29 Thread Abdullah Ramazanoglu
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?

Re: [PHP] Environment variables...

2007-03-15 Thread David BERCOT
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.

RE: [PHP] Environment variables...

2007-03-15 Thread Edward Kay
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

Re: [PHP] Environment variables...

2007-03-15 Thread David BERCOT
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

Re: [PHP] Environment variables...

2007-03-15 Thread Richard Lynch
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

Re: [PHP] Environment variables...

2007-03-15 Thread Erik Jones
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

[PHP] Environment variables...

2007-03-14 Thread David BERCOT
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,

Re: [PHP] Environment variables...

2007-03-14 Thread Tijnema !
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

Re: [PHP] Environment variables...

2007-03-14 Thread Erik Jones
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

Re: [PHP] Environment variables...

2007-03-14 Thread David BERCOT
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

Re: [PHP] Environment variables...

2007-03-14 Thread David BERCOT
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...

Re: [PHP] Environment variables...

2007-03-14 Thread Erik Jones
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

Re: [PHP] Environment variables...

2007-03-14 Thread Richard Lynch
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

[PHP] Environment Variables

2002-08-09 Thread Robert Morse
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

RE: [PHP] Environment Variables

2002-08-09 Thread César Aracena
]] 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

[PHP] Environment Variables Functions Incompatible???

2002-04-03 Thread arti
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

Re: [PHP] Environment Variables Functions Incompatible???

2002-04-03 Thread eric.coleman
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

Re: [PHP] Environment Variables Functions Incompatible???

2002-04-03 Thread Jason Wong
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

[PHP] Environment Variables

2001-05-09 Thread Karl J. Stubsjoen
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:

RE: [PHP] Environment Variables

2001-05-09 Thread Johnson, Kirk
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

[PHP] Environment Variables

2001-03-22 Thread Joe Rice
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

Re: [PHP] Environment Variables

2001-03-22 Thread Joe Rice
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

RE: [PHP] Environment Variables ???

2001-02-15 Thread Maxim Maletsky
... 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

[PHP] Environment Variables ???

2001-02-14 Thread Barry Fawthrop
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

Re: [PHP] Environment Variables ???

2001-02-14 Thread Scott Mebberson
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