Hope that anybody can help me here
I coded a PHP script which sends Information to the Eggdrop.
My problem is that i dont receive them correctly..
Here a snippet from my PHP script:
Code: Select all
$host="IP";
$port="PORT";
$pass="PW";
$channel="#channel";
$channel2="#channel2";
if($board[cforum] !=="1"){
if($board[uploadsystem]=="2") {
if ($board['invisible']==0) {
if ($fp=@fsockopen($host,$port,$errno,$errstr,30)) {
fputs($fp,$pass."\r\n");
fputs($fp,"PRIVMSG $channel : \0034\002[New]\003\002 \002$name\002 \0034\002[Poster]\003\002 \002$poster @ $user_c\002\r\n ");
fclose($fp);
$fp=@fsockopen($host,$port,$errno,$errstr,30);
fputs($fp,$pass."\r\n");
fputs($fp,"PRIVMSG $channel : \0034\002[Section]\003\002 \002$board[title]\002 \0034\002[Loc]\003\002 \002$country[country_name]\002 \0034\002[time]\003\002 \002$time2\002\r\n ");
fclose($fp);
$fp=@fsockopen($host,$port,$errno,$errstr,30);
fputs($fp,$pass."\r\n");
fputs($fp,"PRIVMSG $channel : \0034\002[URL]\003\002 \002$URL\002 \r\n ");
fclose($fp);
}
}
}
lg franko