Salient Digital Techno Blog
Ramblings on technology with a dash of social commentary
-
PHP from the command line
Posted on November 3rd, 2009 No commentsI was just reading about how to write PHP scripts specifically for the command line.
points of interest:
- php -r ‘print_r(get_defined_constants());’
-
#!/usr/bin/php
<?php
var_dump($argv);
?> - http://php.net/manual/en/features.commandline.php
Developing Websites Using Mac OS X Snow Leopard
Posted on November 3rd, 2009
2 comments
The latest Mac update, Snow Leopard, comes with pre-bundled with Apache 2.2, and PHP 5.3.
Here’s what I did to enable it and start making websites.
- Turning on Apache
To do this go to System Preferences -> click the checkbox by Web Sharing - To check your Apache install
You might like this post about how to create a quick document for testing. - Editing Apache Virtual Hosts
Paul Kukiel shares how to - Turning on PHP
- Loading MySQL
Before you rebuild MySQL, double check your processor speed. If you upgraded to Snow Leopard from an older install on an older PPC or Intel Mac, be sure to know which processor type you need to build MySQL for. These instructions are for my Generation 5 Macbook Pro, not one of the brand new 64-bit models. Download the installer from MySQL.com. Then follow this post that shows how to build MySQL from source. - Loading phpMyAdmin
- Using Terminal
I found this post useful. Here is another similar post.


