We need a PHP script that posts status updates to http://corank.com
The input parameters should be:
$username
$password
$url
$title
$description
$category
$tags
The script should:
(1) Log into the site
(2) Submit a story - http://your-username.corank.com/tech/submit/
The script should return an array:
[0] = 1 (success)
[0] = 2 (failure known), [1] = "custom failure message"
[0] = 3 (failure unknown), [1] = "HTML content of last page"
The following validations must be included:
- Invalid username/password
- Unable to login
- Failure to submit story
We'd prefer if you used PHP curl rather than other methods to accomplish this script.
If applying, please include examples of similar scripts you've done.