Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.84 KB | None | 0 0
  1. <?php
  2. $filename = tempnam("/tmp/cnm_oders/", "order_");
  3. $fd = fopen($filename, 'w');
  4. $start = time();
  5. ....
  6. fwrite($fd, "Before SQL query on line ### in file xyz.php " . time()-$start . " seconds has elapsed since the script started...");
  7. db_query("INSERT INTO shipper_order_info (.....)")
  8. fwrite($fd, "After SQL query on line ### in file xyz.php" . time()-$start . " seconds has elapsed since the script started...");
  9. ... script runs on...
  10. fwrite($fd, "Before send_mail() on line ### in file xyz.php... " . time()-$start . " seconds has elapsed since the script started...");
  11. send_mail($to, $from.....
  12. fwrite($fd, "After send_mail() on line ### in file xyz.php... " . time()-$start . " seconds has elapsed since the script started...");
  13. ..... script runs on....
  14. fwrite($fd "Script xyz.php finished, total time = " . time()-$start);
  15. fclose($fd);
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement