Original Post
Is there a way to make the paths I use in php code (to read and write files for example) to correspond to the webpage's paths? For example if I do fopen( "/shite/test.dat", "rb" ) I want it to open /shite/test.dat relative to the root of the webpage, not the root of the server like it does as I have it now. Im kinda new to php and apache and have probably just not configured it properly. I have managed to get the includes working by setting the include_path or whatever its called in php.ini, but I dont like this solution. Any suggestions or good links on the subject? Lantz