Results 1 to 4 of 4
  1. #1
    "An Englishman In New York" TJ's Avatar
    Join Date
    January 18th, 2005
    Posts
    3,282
    I'm searching the web, but thought I'd throw something on here incase someone already uses a little script to do this... I want to echo some text, or do an include or something until a specified date.

    TIA!!

  2. #2
    Animal Lover
    Join Date
    January 18th, 2005
    Location
    oz
    Posts
    1,210
    Hi TJ,

    I think if you want to do any of those calculation things in php then you need to alter all your dates into Unix timestamps and work from there. Or that's how it works with me anyway.

    Oscar
    My DataFeed Scripts - php datafeed scripts for your site
    Shareasale datafeed scripts - to display Shareasale datafeeds
    Linkshare datafeed scripts - for multiple Linkshare merchants

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    ÄúsTrálíĺ
    Posts
    1,372
    This is just off the top of my head...

    $now = time(); // get current time in unix format
    $enddate = strtotime("24 December 2004"); // convert string time to unix format

    if ($enddate > $now)
    {
    include ("file");
    }

  4. #4
    "An Englishman In New York" TJ's Avatar
    Join Date
    January 18th, 2005
    Posts
    3,282
    Thanks Oscar and Pete, I continued to play while waiting for a response and came up with a shorter version of Pete's code that seem to work

    Thanks again guys!!

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Script (PHP?) to track IP and not show same content to same IP twice.
    By Hardaka in forum Programming / Datafeeds / Tools
    Replies: 10
    Last Post: February 15th, 2012, 01:37 PM
  2. Script to show customised text and images on a t-shirt?
    By Azam in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: October 30th, 2006, 02:09 PM
  3. How to show record-level data in plain text on index pages??
    By jrbrunger in forum WebMerge (Fourthworld.com)
    Replies: 2
    Last Post: April 11th, 2006, 12:31 AM
  4. Show Text One Time via PHP
    By AddHandler in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: April 17th, 2005, 02:11 AM
  5. CGI Script Blocks Norton CJ Adds Show ??
    By jimmymac in forum Commission Junction - CJ
    Replies: 8
    Last Post: March 4th, 2004, 11:44 AM

Posting Permissions

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