Articles saved under php tag
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?