Results 1 to 1 of 1

Thread: Display a photo at a specific time

  1. #1
    Join Date
    Jan 2015
    Location
    Cabot, AR
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Display a photo at a specific time

    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.
    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);    
    }
    ?>
    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)

    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
    Last edited by Beverleyh; 01-21-2015 at 12:45 PM. Reason: Formatting

Similar Threads

  1. Replies: 15
    Last Post: 09-27-2018, 05:50 PM
  2. reloading a page at a specific time
    By Marquis in forum Looking for such a script or service
    Replies: 2
    Last Post: 07-22-2010, 12:10 PM
  3. PHP Refresh at specific time
    By kumpe70 in forum PHP
    Replies: 9
    Last Post: 04-09-2010, 03:20 PM
  4. Display Specific Text Based on Time Detected?
    By wpthebest in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-13-2007, 10:29 PM
  5. time specific content
    By sleipner in forum JavaScript
    Replies: 4
    Last Post: 05-09-2006, 07:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •