Although the webserver knows where to find your script, it doesn't set the default directory to there when executing it. I use apache on linux, so the actual default directory for the server will be different from yours, but in any case you will need to study the webserver documentation to find out how to map and alias between URLs and the file system - it isn't as simple a matter as there being a single place for this file.