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?
In PHP>=5.3 use __DIR__ and before use dirname(__FILE__)
__DIR__
dirname(__FILE__)
http://php.net/constants.predefined
http://php.net/dirname