Hi, I am new to the forum and very new to PHP. I am a very active geocacher and there is what we call "Mystery Caches" which 90 percent of the time are cryptic puzzles.
I made a puzzle (with help) called Stayed awake all night which uses a PHP script to rotate a picture every hour on the hour. At 12AM and 1AM pictures are displayed that have the coordinates to located the geocache. The code I used for that purpose is below.
I'd like to make a new puzzle using Pi. I'd like to rotate photos at specific times starting at 3:14(both am or pm) and then just follow the sequence(3.14 1 5 9 2 6 5 3 5 9)Code:<?php create_image(); exit(); function create_image() { $file = 'xyz' . date("H") . '.png'; $image = @imagecreatefrompng($file); //Tell the browser what kind of file is come in header("Content-Type: image/png"); // Image cannot be cached locally header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1. header('Pragma: no-cache'); // HTTP 1.0. header('Expires: 0'); // Proxies. //Output the newly created image in png format ImagePng($image); //Free up resources ImageDestroy($image); } ?>
First photo show at 3:14, next photo 1 minute later, then 5 minutes later, then 9 minutes later, and so on until I finish with the last digit above.
Is this even possible? I assume it is but it is well above my knowledge base.
Thanks


Reply With Quote
Bookmarks