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

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

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

RE: [PHP] Environment Variables

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

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

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

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
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

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