Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PHP



One way to do this is right from within a PHP script itself, using the
putenv() function. It allows you to set environment variables - the
environment in which PHP runs on the server.

You can get a list of all of PHP's environment variables with the phpinfo();
function.
(Put <? echo phpinfo(); ?> in a script and run it.)

You can use the putenv() function to set environment variables as required,
for example:

$include_path = "/path/to/directory/containing/form.php/script";
putenv (" INCLUDE_PATH=$include_path ");

For more information on environment variables, try:
http://hoohoo.ncsa.uiuc.edu/cgi/env.html

----------
Shawn Gray
shawn@example.com
http://www.graycastle.com/


----- Original Message -----
From: "Ahmed Sarwar" <leyton@example.com>
To: <tlug@example.com>
Sent: Sunday, September 02, 2001 12:39 PM
Subject: Re: PHP


>
>
>
>
>  Add the current location of form.php to the
> > include_path environment variable.
>
> Thank you. Can you please tell how to do this.
>
> Asa
>
> -----------------------------------------------------------------------
> Next Technical Meeting:  Sat, Sep 15 13:30-  Leading Edge Co., Place
Canada
> Next Nomikai Meeting:    Fri, Oct 19 19:30-  Tengu Tokyo Eki-Mae
> -----------------------------------------------------------------------
> more info: http://www.tlug.gr.jp           Sponsor: Global Online Japan
>
>

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links