Jump to content

Questions about PHP and form submission


MutantJohn

Recommended Posts

Problem is you are taking those methods from a class, and you don't have a "controller" to execute them.

 

Try changing:

curl_post_async("http://127.0.0.1/longone.php", $params); //add .php

 

and making a longone.php file in your web root that contains ONLY the code from the longone() function definition:

$one   = $_POST["one"];
$two   = $_POST["two"];
$three = $_POST["three"];
$four  = $_POST["four"];
 
echo uniqid("You won't see this because your PHP script isn't waiting to read any response");
 
sleep(5);
 
$fp = fopen("data.txt", "w");
fwrite($fp, $one);
fwrite($fp, $two);
fwrite($fp, $three);
fwrite($fp, $four);
fclose($fp);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.