Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Portland, Oregon
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need a serverside timer/redirect script

    On September 11 CommemorateWTC.com will be closing down the entire site for three minutes at 8:46am EDT and redirecting via .htaccess to a special presentation on the .org domain (as discussed Here and Here). Is there a way we can automate the process so .htaccess is automatically replaced by the server?

    The thing is, a bunch of people are also closing down their sites that day and redirecting to CWTC using either homepage redirects or .htaccess, and to pull this off seamlessly is quite a challenge. The site will be on a co-located server by the time this happens, incidentally.

    Any advice is appreciated.
    Llamasery Enlightened Internet Strategies
    "Psychics will lead dogs to your body." --Alleged fortune cookie message

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,040
    Thanks
    10
    Thanked 92 Times in 90 Posts
    You can set a script to run via crontab at a pre-determined date and time , the script (PHP/PERL/whatever) would simply replace your .htaccess with a new version, so Q is do you have the ability to run CRON jobs on your system?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Portland, Oregon
    Posts
    87
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry for the response delay. Yes, we can setup CRON jobs on both servers easily. I just don't know what they need to be.
    Llamasery Enlightened Internet Strategies
    "Psychics will lead dogs to your body." --Alleged fortune cookie message


  •  

    Posting Permissions

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