Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ....some code.... //populates a MySQL table
- include 'run_this_page.php'; //uses data from table above and takes ten minutes to run
- ....lots more code.... ///also uses data from same table
- <? // php code you want to run 1st ?>
- <div id="content"></div>
- <script>
- $( "#content" ).load( "example.php" ); // php to run 3rd
- </script>
- <? // php code you want to run 2nd ?>
- $sock = fsockopen($url,$port);
- $packet = "POST $path?$get HTTP/1.1rn";
- $packet.= "Host: $hostrn";
- $packet.= "Content-Type: application/x-www-form-urlencoded; charset=UTF-8rn";
- $packet.= "Connection: Closernrn";
- $packet.= $post;
- fwrite($sock, $packet);
- fclose($sock);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement