I can't claim to be a PHP guru (so I don't). Nevertheless, I tinker a little bit with PHP from time to time.
Some PHP programs require you to find the server file path for variables etc. My usual technique was to break something and read the warning message. However, a much better way is to create a file (say "serverinfo.php") with the following line in it:-
PHP Code:
<?php echo getcwd(); ?>
Upload to the root directory of you server, then visit the file in a browser. You should get the working directory in a server path format, so you can use it for variables.
It's also located if you run the phpinfo(); variable, but it's lost amongst the data. I personally prefer this method
