Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ....some code.... //populates a MySQL table
  2.  
  3. include 'run_this_page.php'; //uses data from table above and takes ten minutes to run
  4.  
  5. ....lots more code.... ///also uses data from same table
  6.  
  7. <? // php code you want to run 1st ?>
  8. <div id="content"></div>
  9. <script>
  10. $( "#content" ).load( "example.php" ); // php to run 3rd
  11. </script>
  12. <? // php code you want to run 2nd ?>
  13.  
  14. $sock = fsockopen($url,$port);
  15. $packet = "POST $path?$get HTTP/1.1rn";
  16. $packet.= "Host: $hostrn";
  17. $packet.= "Content-Type: application/x-www-form-urlencoded; charset=UTF-8rn";
  18. $packet.= "Connection: Closernrn";
  19. $packet.= $post;
  20. fwrite($sock, $packet);
  21. fclose($sock);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement