Topic awaiting preservation: including a script but running it in another dir |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 04-09-2002 21:43
I could swear I asked you guys something similar to this before, but couldn't find the thread. |
Maniac (V) Inmate From: Brisbane, Australia |
posted 04-09-2002 23:56
PHP treats includes as if they were initally part of the script that is currently running. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-10-2002 15:19 |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
posted 04-10-2002 16:19
I think there may be a way of doing that using exec(), but I severly advise against that; exec() is the Devil of PHP functions and should only be used if nothing else will ever work. |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 04-11-2002 03:21
Thanks mr.maX |