by roundrightfarm » 15. January 2010 01:36
I'm having difficulties typing/coding the proper file paths. Sometimes the ones that work do not correspond to the way they appear in the OS. For example: I want to load a file- AdminUserList.php. Looking at my screen- I have it located in ~RoundRightFarm/Sites/RRF/htdocs/AdminUserList.php, but when I type "http://localhost/~RoundRightFarm/Sites/RRF/htdocs/AdminUserList.php" into the browser, I get a "404 file not found" message. After playing around for a while, I discovered that if I eliminate the Sites folder and type "http://localhost/~RoundRightFarm/RRF/htdocs/AdminUserList.php" the browser loads the file. This is one of many similar experiences that I've had since installing XAMPP a couple days ago. I can't seem to get my head around it. The paths and my syntax all look correct but the files aren't found or my includes do not load in my php scripts. One time my css file stopped working out of the blue, I had not been messing with it or its directory at all. I discovered after a few hours that if I added it containing folder to the <link> path, it worked again. What am I missing here?