Good Day, I'm a new Newbie to PHP. I am running a Mac OS X. I want to set up and run PHP within an HTML document. I also want to view this on my system before uploading to the Host. I understand that this is a fairly simple process, however, I must have a mental block the size of the Great Wall of China. I would greatly appreciate some guidance in the setup and running of PHP. Thanks, Lost in PHP
Download MAMP, it comes with apache, mysql and php (it comes with phpmyadmin which allows you to create and manipulate databases). You also get a widget that allows you to turn the server on and off.
If you're at all comfortable with building from source (or want to learn how for more experience), there is a GREAT step by step at: http://www.phpmac.com/articles.php?view=237 They show how to get PHP and Apache running. MySQL is separate, but you didn't mention that, and if you want it also, the installere from their site is easy to get going on it's own. No need to clutter your system with an install it all product like MAMP. Granted, it is eaiser, but if you need to do things like compile in support for modules that they don't, or you just want more control over what modules are compiled in, you're better off on your own. Comes down to what you need and how comfortable you are.