We need a PHP script that submits bookmarks to http://www.social-bookmarking.net
The input parameters should be:
$username
$password
$url
$title
$description
$tags
$category
The script should:
(1) Log into the site
(2) Attempt to submit a bookmark
(3) If the bookmark already exists, vote it up
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 submitted bookmark (including which step)
- Failure to vote
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.