2 ms·
There is a version of XAMPP[1] for Mac - it comes out of the box with PHP and MySQL. I haven't actually used in on a Mac but on Linux and Windows it's ridiculou
by krapp 13y ago
There is a version of XAMPP[1] for Mac - it comes out of the box with PHP and MySQL. I haven't actually used in on a Mac but on Linux and Windows it's ridiculously easy to stage and run a local site from it.
If i'm reading you right and you're actually thinking about hosting a site from your computer - don't. It's probably not going to work unless you only have like one user at a time and even then you're running the risk of someone rooting your computer and/or running afoul of your ISP if they have rules against running a site over their network, which they might.
If you pick a framework (of which there are many), any one of them is bound to have an ORM which will deal with the database using parameterized queries. Regardless, stay away from the mysql_* functions at all costs. Use PDO, or a library that supports it.
[1](http://www.apachefriends.org http://www.apachefriends.org)