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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:05:46+00:00 2026-05-15T18:05:46+00:00

I have a php script (qa.php) that my app points to on my current

  • 0

I have a php script (qa.php) that my app points to on my current server. I just recently switched servers and want the qa.php script running from this new server.

Is there a way to have a php script redirect or automatically run the remote php script?

  • 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-15T18:05:47+00:00Added an answer on May 15, 2026 at 6:05 pm

    If you mean a redirect in the sense of a client visiting this page, you can use the header() function to change the location header and simply perform the redirect.

    header('Location:http://www.your-new-domain.com/qa.php');
    

    But if you mean (and this I’m assuming) running the script without direct client interaction, there are a few different approaches. One good way is to use the Curl library to send a request formed the way you’d like to the script. I’ve used this method in scheduling cronjobs before that had to fire signals to several controllers at once and record the output.

    http://www.php.net/manual/en/intro.curl.php

    It’s also acceptable to use the file_get_contents() php function to simulate a client visit on the page if you don’t need to manipulate any specific headers for the request going to the server-side script.

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

Sidebar

Ask A Question

Stats

  • Questions 529k
  • Answers 529k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Ryan Rampersad, blogged about this issue stating The error comes… May 16, 2026 at 11:23 pm
  • Editorial Team
    Editorial Team added an answer There's no built in method of achieving this. The best… May 16, 2026 at 11:23 pm
  • Editorial Team
    Editorial Team added an answer Try: x <- c("supp", "dose") ddply(ToothGrowth, x, function(df) mean(df$len)) May 16, 2026 at 11:23 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a PHP script that launches another script in the background. Recently my
I have an iPhone app with an array of objects that I want to
I have a command line php app that I need to distribute to a
i am on windows/apache/mysql/php setup. i have recently reinstalled PHP. but i found that
Say I want to have a simple web app that takes some user input,
I have a php script that I have used for years to force downloads
I have a PHP script that reads a file and outputs it to the
I have a PHP script that I'm calling with the .post() function in jQuery.
I have a php script that needs to run once every 5 minutes. Currently
I have a php script that runs on unix but I need it 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.