Page 1 of 1

Working Directory NOT getcwd()

Posted: Sun Mar 09, 2003 9:39 am
by mbe
Hello
I've got the following problems
1. my english is bad
2. I'm using PHP for writing shell-scipts so I have some php-scripts in my $PATH. How do I get the directory from where the skript was started? getcwd() returns only where the script is located.
Because of this I'm not able to handle Filenames with relative path when the skript is not started from the same folder as it is saved in.

Solution

Posted: Sun Mar 09, 2003 10:20 am
by mbe
I already found the solution.
Just start php with the option -C