how do i get passthru to make the command through the pfsock?? and if iam doing it right how do i make the commands execute right after the connection is made because the connecting closses if $password isnt sent right away.
pfsockopen($ip,$port);
passthru ($password);
passthru ("/say [SERVER BOT]user has logged into".$site."");
passthru ("/lobby");
if ($command1==""){
exit;
} else {
passthru ($command1);
if ($command2==""){
exit;
} else {
passthru ($command2);
if ($command3==""){
exit;
} else {
passthru ($command3);
if ($command4==""){
exit;
} else {
passthru ($command4);
if ($command5==""){
exit;
} else {
passthru ($command5);
}