Sunday, 15 March 2015

osx - Can't find info.php on Mac -


I have enabled everything for Mac using the bundled PHP and other tutorials on the PHP website. When I go to it, it displays "This works", but when I'm going, I get an error message "The requested URL XXX was not found on this server". I can manually navigate to user / erics / sites / info.php and open it, but I can not find it in the browser. If someone can help me understand this, I would appreciate it.

You can view the file on your local machine like the file in your browser: /// Users / Eric / Sites / info.php, but it will give you the source code of that file. None of this will execute your code. If you want to execute your code with http: // then you have to go to your server, as the URL should be relative to your root directory, which is a local host) Example: If you have a local host directory that is named test And in that test folder you have the file named test.php, you can access it in your browser:

Does that mean?


No comments:

Post a Comment