![]() Late response, but was looking into doing this for myself, this coming up as one of the results in my searching wanted to provide 2 solutions since I ultimately came to both on my own. If you are using PHP for scripts, like bash-scripts, see the answer provided. Place your file in there and open your webserver and call and it will call the file YourFile.php and show you what the output of the script is. All files that are in there are processed by the local webserver (Apache and PHP, if you want to know that). Open the Finder and go to /Library/WebServer/Documents/localhost. Go into your system preferences and verify that Web Sharing is enabled. On Mac OSX, PHP and Apache (that's what I use in this example) is already installed and pre-configured. Since you said, you're using a mac, here's a quick introduction on how to set up your personal webserver: This result may be an HTML webpage, an image or whatever. This program can understand PHP and does nothing more, than running the code and giving something as result. If the browser opens the file, it can do something with the content.Īs PHP is a programming-language, you need a parser. HTML is a markup-language, that can directly be understood by the browser. ![]() I think you don't understand what PHP is. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |