![]() ![]() Restart the Apache HTTP Server for the change to take effect. (The Apache HTTP server is stopped by default.) You can check their versions by opening the Terminal app and running these commands:ĭocumentRoot "/Library/WebServer/Documents" Mac OS X 10.10 Yosemite continues to ship with PHP and Apache installed. ![]() I have adjusted the instructions for Mac OS X 10.10 Yosemite below.Ĭonfigure PHP and Start Apache HTTP Server I have a previous post on setting up Apache on Mac OS X ( Install Apache, PHP, MySQL, and phpMyAdmin on Mac OS X 10.6 Snow Leopard) which looks to be helpful, but it was outdated. The only certain solution to the above problem is to run a local web server to host the demo code. The demo Javascript code was attempting to read a text file in the same file location using GET, but the local “file:///” protocol was not recognized as a proper website domain and Chrome assumed it was a cross domain security violation. cross origin) communication, which would occur when a page from one website domain attempts to read data from another domain. The latest Chrome (and other modern browsers) won’t allow cross domain (a.k.a. When I attempted to browse to it, I encountered the infamous “XMLHttpRequest cannot load file:///” error. I downloaded a HTML5 and Javascript demo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |