I'm trying to run a .php file using localhost web server and i can't get it to work. I have OS X 10.6.8. I believe Apache and PHP are already installed. I have enabled File Sharing and Web Sharing under System Preferences. When I type, localhost, into my browser, I get "It works!" So I got that part working. I have placed my .php file under /myusername/Sites/file.php. So, when I type localhost/myfile.php into my browser, shouldn't I get the output of that code that I put into my .php file? Instead, I get
"Not Found The requested URL /hello.php was not found on this server."
I think I'm missing a step. Can anyone help?
Thanks
"Not Found The requested URL /hello.php was not found on this server."
I think I'm missing a step. Can anyone help?
Thanks