Articles saved under Webdev category
Native Web Development (apache, PHP and mySQL) on Mac OSX Leopard
If you’re a web developer and you’re on a Mac, you’re probably using MAMP or XAMPP for your all in one apache + PHP + mySQL need. But did you know that your Mac system is already a web server by default installation? Utilizing the native web server, you can save yourself from downloading stuffs you don’t need.
It is not as complicated as you think. Given that Macs are descendants of *nix system, it already has apache2 and PHP module built in, we only need to activate those two and install mySQL. Here’s how.
Coding PHP Loops Easily
Working with loops on PHP is inevitable, and I’ve seen many beginners (read: me) pulling their hair because of it. The thing with coding a loop is, sometimes you have to do stuffs like this:
<?php for ($i=1; $i < 10; $i++) { echo "<a href=\"something.php?id=$i\">No $i</a>"; }
Am I right am I right?
Installing Multiple Versions of Firefox and Internet Explorer
Now you might think why the heck would I want to install different versions of web browsers to my computer? Here’s why: you’re a web developer.
That being said, you need to check your website/web app in popular browsers: Internet Explorer 6 and 7, Firefox 1, 2, 3, Chrome, Safari and Opera. Installing Chrome, Safari and Opera is a no-brainer, but those multiple versions of Internet Explorer and Firefox can be tricky. Here’s how we can do it.