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
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
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?
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.
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
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
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
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
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,
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
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
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
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...
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
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
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
]]
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
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
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
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
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:
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
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
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
...
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
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
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
27 matches
Mail list logo