I am having trouble finding the rigth directory on my online server. is there a function that returns the folder the file is stored in?
http://php.net/manual/en/function.getcwd.php
Returns the current working directory on success, or FALSE on failure.