|
Hey right I have a code / script for a online game....
?php
$fp = fsockopen("www.bootleggers.us", 80, $errno, $errstr, 30);
$msg="username=Liantje&password=****";
if (!$fp) {
echo $errstr." (".$errno.")
\n";
} else {
$out = "POST /checkuser.php HTTP/1.1\r\n";
$out .= "Host: www.bootleggers.us\r\n";
$out.="Content-type: application/x-www-form-urlencoded\r\n";
$out.="Content-length: ".strlen($msg)."\r\n";
$out .= "Connection: Close\r\n\r\n";
$out .= $msg;
fwrite($fp, $out);
while (!feof($fp)) {
echo '<textarea rows="5" cols="40">'. fgets($fp, 128) .'</textarea>
';
}
$msg = "select_crime=2";
$out = "POST
Had to remove a bit.....
My only problem is I don't know how to use it....I think their is a program or something I need?
Cheers.
Help with a code/script?
This looks like a PHP script that connects to bootleggers.us and spits stuff into a <textarea >.
You'll need to FTP this code on a web server that runs PHP and then access the file through a web browser. If the file extension is not ".php" (or similar thereto), you might want to add that to the file name.
Good luck! I hope the game is fun. You'll have to tell us where it is!
|