A Portable Apache+PHP Environment for Debian/Ubuntu and MacOS X (aka Dynamic vhosts made Easy)
- Article Information
- Category: Web Development
- Published on Saturday, 09 January 2010 03:58
- Written by David L Norris
The very first thing you need to do to develop for PHP is to setup a development server with PHP installed, of course. But maybe you're somewhat new to PHP and Apache is a huge, mind numbing universe of options. All you really want is the ability to run PHP and map hostnames to code, right? Almost always that's my goal, anyway.
Well, I've done all the work for you. Congrats! Actually, I did it mostly for myself and I'm sharing it with you! Yay for us!
Apache AutoIndexer with jQuery
- Article Information
- Category: Web Development
- Published on Sunday, 03 July 2011 16:12
- Written by David L Norris
Apache's mod_autoindex is really rather boring on the surface. However I will show you there is quite a lot you can do with it given a little understanding of how it functions. If you need a file listing this is an excellent means to accomplish that goal. You can wrap the auto-generated output with simple HTML, PHP, Perl or any other file type Apache can process.
In our case, we aren't going to generate anything using PHP or SSI or any other server-side mechanisms. We are going to create a custom header and footer which wraps the basic unordered list output format with CSS and jQuery calls. We will create the .htaccess file and other supporting files at the root of a /images folder on our server; in my case this is a Joomla installation's uploaded images folder. I just want a quick and dirty means for authors to browse images uploaded into certain folders of this system.
Installing Eclipse IDE for PHP on Ubuntu 9.04
- Article Information
- Category: Web Development
- Published on Friday, 08 January 2010 22:58
- Written by David L Norris
Whitespace Matters!
- Article Information
- Category: Web Development
- Published on Monday, 23 November 2009 14:19
- Written by David L Norris
Lets start at the beginning. Lets start with creating a blank PHP script. What's one of the most important things to remember when creating a new PHP script?
Whitespace Matters!
You must keep track of your whitespace in PHP scripts.
HTTP headers cannot be set if you have already "printed" any characters.
I run into this over and over and over and over in modifying carelessly written code.
MySQL Master-Master-Slave(s) Database Replication
- Article Information
- Category: Web Development
- Published on Thursday, 04 June 2009 17:34
- Written by David L Norris
I have watched the technology sessions and slideshows explaining how many large websites, such as Google or Facebook, setup their MySQL Databases. But none have ever gone into the details of how to configure MySQL in such a way. So I had to tackle that myself. I am documenting the process here so its hopefully useful to others (and myself when I forget in 6 months).