/ Published in: PHP
URL: http://php.net/manual/en/function.stream-context-create.php
Expand |
Embed | Plain Text
<?php function tweet($message, $username, $password) { 'method' => 'POST', "Content-type: application/x-www-form-urlencoded ", 'timeout' => 5, ), )); return false !== $ret; } ?> Pretty easy, no? Using the tweet() function is of course a piece of cake: <?php tweet('From PHP, yeah...', 'fabpot', 'Pa$$'); ?>
You need to login to post a comment.
