Skip to content

Tag: PHP

Setup LAMP (Linux, Apache, MySQL, PHP) on Mac OS X 10.10 Yosemite

I downloaded a HTML5 and Javascript demo. When I attempted to browse to it, I encountered the infamous “XMLHttpRequest cannot load file:///” error.  The latest Chrome (and other modern browsers) won’t allow cross domain (a.k.a. cross origin) communication, which would occur when a page from one website domain attempts to…

Leave a Comment

File Upload With PHP

I recently needed to handle a file upload using PHP and was pleasantly surprised by how easy it was. I am sharing my file upload test script below. Create a file named “upload.php” with the following content: <?php {   // Handle GET or POST   if ($_SERVER[’REQUEST_METHOD’] === ‘POST’)…

Leave a Comment

Install MySQL, Apache, PHP, Java, Subversion, TWiki on Ubuntu 10.04 64bit

We decided to migrate from a virtual OpenSuSE Linux server running on my desktop to a dedicated server hosting company. Unfortunately, I missed the OpenSuSE selection as an operating system choice and ended up choosing Ubuntu 64bit. Below are the initial steps I took to setup our development environment on…

Leave a Comment