Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //testing PHP running
- // Saving file and echo something
- // Best for testing cron jobs.
- date_default_timezone_set('Asia/Bangkok'); //Time: GMT + 7
- $date = date('d/m/Y h:i:s a', time());
- file_put_contents( 'test_cron.txt' , $date . "\r\n", FILE_APPEND);
- echo $date;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement