Hi guys,
I'm trying to post replies to 4CHAN POSTS using a little curl script,
but it doesnt work, whats wrong with it ?
<?php
$aryPost= array(com => "com", resto => "TOPIC NUMBER");
$postVals = '';
foreach($aryPost as $key=>$val);
$postVals .= urlencode($key)."=".urlencode($val)."&";
$ch = curl_init("http://cgi.4chan.org/X/imgboard.php");
curl_setopt($ch, CURLOPT_POST, 1); // Sending Post Items
curl_setopt($ch, CURLOPT_POSTFIELDS, substr($postVars,0,-1));
curl_setopt($ch, CURLOPT_HEADER, 0); // Don't include headers in result
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // return page instead of display
$remotePage = curl_exec($ch);
curl_close($ch);
?>