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 7072575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:49:31+00:00 2026-05-28T05:49:31+00:00

Progam control is at the server and I need to do a relaod. I

  • 0

Progam control is at the server and I need to do a relaod. I can use a php command:

echo '<meta http-equiv="refresh" content="0">'

or I can pass control back to the client with a reload flag set and use a javascript command

window.location.reload();

Which is best practice or better to use, in terms of speed?

My guess it that the PHP version would be a bit faster because there is no logic on the client side, the browser receives the header and reloads.

I’m not concerned with disabled javascript.

  • 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-28T05:49:32+00:00Added an answer on May 28, 2026 at 5:49 am

    Umm both examples here are CLIENT SIDE.

    In example

    1. You simply tell the document to refresh based on the <META> effectively the browser is aware of the refresh, PHP is just responsible for including the <META> for the document header. Cleaner way is to actually do header( "refresh:0;url=wherever.php" );
    2. Here you simply reload it using JAVASCRIPT.

    They both do the job. Speed doesn’t matter as the refresh is based on your parameter (when to reload/refresh)

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

Sidebar

Related Questions

I need to install or use php on a windows 2003 server that already
Can you program/configure Visual Studio to produce custom intellisense for your own server controls.
how can i make a device input and output control program on windows 7??
In my program I need a way to click on an Image control, the
I have an owner-drawn list control in my Windows program. I use CListCtrl::GetBkColor to
I am working on a php program that requires javascript on every form control.
My program is a cyber cafe program and Server will control clients(opening-closing account,sending files,
I want to add command line interface support to a server program. So each
I need to set up a throw-away instance of SQL Server 2008 for students
How can Nginx serve crossdomain.xml file to a flash/flex program. Basically I need to

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.