oops.

--
----------
Dan Barton
Terrestrial Program Biologist
Asst. Data Manager
Point Reyes Bird Observatory
http://www.prbo.org
[EMAIL PROTECTED]
[EMAIL PROTECTED]

--- Begin Message ---
Hi,
    There are several PHP-Apache environment variables that may do what you're
interested in. (I'm not 100% sure I understand the question, though...correct me
if I'm wrong?)

To determine the local path (relative to the actual server) of your script,
simply use the environment variable $SCRIPT_FILENAME. For paths relative to the
web server's path, use a combination of $DOCUMENT_ROOT, $PHP_SELF, and
$SCRIPT_NAME.

Hope this helps.

-db

Dave Carrera wrote:

> I am trying to copy a file on my system from one local place to the path of
> my script.
>
> So...
>
> FILE TO COPY = c:\dir\filename.php
>
> COPY TO = ../dir/filename.php
>
> I need to work out how to determin the local path of my script thus allowing
> my script to know where ../dir is relitive to. I Think....
>
> I can not fix the scripts path as i dont know where people un zip the script
> to on thier local system.
>
> Any help or guidence as aways, is most appreiciated.
>
> Yours
>
> Dave C
>
> The two rules for success are:
> 1. Never tell them everything you know.
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
----------
Dan Barton
Terrestrial Program Biologist
Asst. Data Manager
Point Reyes Bird Observatory
http://www.prbo.org
[EMAIL PROTECTED]
[EMAIL PROTECTED]



--- End Message ---
-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to