I'm currently using mamp instead of web sharing and I'm trying to figure out the best approach to share php and mysql web application that I'm working on to clients. What is the best way to do this?
I personally prefer using Web Sharing and installing only MySQL Server, just to stick with the Mac OS X Apache setup.
Web sharing has support for PHP, all you need to do is remove the comment (#) from the following line of the file /etc/apache2/httpd.conf:
#LoadModule php5_module libexec/apache2/libphp5.
So it becomes:
LoadModule php5_module libexec/apache2/libphp5.so
The PHP module includes MySQL support, so you just need to install the MySQL Server, turn it on and then you are ready to go.
After turning Web Sharing on, put your .php files inside your personal Site folder, and access it on your browser using the address informed on the Web Sharing activation screen, inside Settings.