Working Directory NOT getcwd()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mbe
Forum Newbie
Posts: 2
Joined: Sun Mar 09, 2003 9:39 am

Working Directory NOT getcwd()

Post 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.
mbe
Forum Newbie
Posts: 2
Joined: Sun Mar 09, 2003 9:39 am

Solution

Post by mbe »

I already found the solution.
Just start php with the option -C
Post Reply