I need a PHP script. Must work with PHP 5.
If a set of fields is left blank, the script should ignore it. For example, if the user does not type in a Yahoo U/P then the application ignores the Yahoo part.
For each account, log in and send a message to their friends. For example, if the user gives their Myspace U/P, the script logs in to Myspace and sends a message to each of the user's friends. Same for Orkut, Facebook, and Yahoo 360.
If the user gives improper information, the script should simply exit and pretend all went well. In other words, don't worry about trying to detect the error and asking the user to try again.
I will retain copyright to the application. This is a work for hire.
The code MUST be written in PHP, and must be clean, readable, and heavily commented.