CroNiX Posted January 23, 2015 Share Posted January 23, 2015 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); Quote Link to comment Share on other sites More sharing options...
CroNiX Posted January 23, 2015 Share Posted January 23, 2015 There is also a typo in the longone function... fwrtie($fp, $four); //needs to be fwrite() Quote Link to comment Share on other sites More sharing options...
MutantJohn Posted January 23, 2015 Author Share Posted January 23, 2015 Holy poop! It actually works! This is amazing!!! Thank you so much, you guys! Quote Link to comment Share on other sites More sharing options...
CroNiX Posted January 23, 2015 Share Posted January 23, 2015 Glad you got it working Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.