Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Small question


ewcreator
 Share

Recommended Posts

i have small problem on line 21 Fatal error: Call to undefined function socket_connect

here

dg1423's Online Account Creation - Test/Demonstration Page

Include("status.php");
if(isset($_POST['submit']))
{
$pass = $_POST['password'];
$pchk = $_POST['passcon'];
$mail = $_POST['email'];
$mlchk = $_POST['mailcon'];
if ($pass == $pchk){
if ($mail == $mlchk){
$SEP_CHAR = chr(0);
$END_CHAR = chr(237);
if (! $sock = @fsockopen($address, $port, $num, $error, 5))
$address = gethostbyname('96.233.43.219');
$service_port = 4001;
right there–->  $result = socket_connect($address, $port, $num, $error, 5);
$in = "newoaccountied," . $_POST['name'] . "," . $_POST['password'] . "," . $_POST['email'] .",". $END_CHAR;
socket_write($socket, $in, strlen($in));
$out = socket_read($socket, 2048);
if ($out == "Your account has been created!"){
echo "";
?>

Thank You!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...