Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7191517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:44:45+00:00 2026-05-28T19:44:45+00:00

I got a page and as it says in the code I want to

  • 0

I got a page and as it says in the code I want to redirect all users to Google when the current time is greater than the opening time.

This is something that I want to be done on all my pages, so I put the PHP tag in the header which has all the header settings (stylesheet for instance)

$openingtime = 1264256278;
if(!$_SERVER["REQUEST_TIME"] < $openingtime){
   header('www.google.dk');
} 

The problem is that this doesn’t work at all.

I have no idea why this is a problem.

I have tried to echo out a string to see if the if sentence did work, and it does. I’ve used the header tag a few times before, and this hasn’t been a problem before.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T19:44:46+00:00Added an answer on May 28, 2026 at 7:44 pm

    You forgot the Location: in the beginning of the header.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i got a page users downloading files from there.And when a user click download
I've got this bit of code: Response.AddHeader(Content-type, application/vnd.openxmlformats-officedocument.wordprocessingml.document); Response.AppendHeader(Content-disposition, attachment; filename=Bio.docx); Response.BinaryWrite(lawyerBio.MakeDoc()); It works
This is a code that I got from the site here and I'd like
Update: I found the solution, look in the bottom of this page... I've got
i got a page where the admin can edit some photos i pull from
i got one page from curl which contain <?xml version=1.0 encoding=UTF-8?> <ipinfo xmlns=http://data.quova.com/1 xmlns:xs=http://www.w3.org/2001/XMLSchema-instance>
I got a page with an editor. When i type letters in, the caret
I've got a page that retrieves a bunch of locations and some data about
I've got a page with a variable number of <select> elements (which explains why
I've got a page where I'm using Mootools 1.2.4 and MediaboxAdvanced as a lightbox.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.