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
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
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
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 alt
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 kno
> 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 putt
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 yo
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
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 av
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
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 !
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_EXECU
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 worke
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]]
>
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 availa
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] Environme
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
>
>
>
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
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 ...
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
20 matches
Mail list logo