Jump to content

Recommended Posts

I need to get "http://www.example.com/index.php?do=thing"s full contents and store them and return. Include(), require() don't work. The only method that works is header("Location: "). I need to, somehow, go to the page using header, store it's entire contents, and go back to the script that executed AND continue executing some other code. I've searched plenty with no results.

 

Thanks in advance for your help.

Link to comment
https://forums.phpfreaks.com/topic/88115-solved-helpmultiple-redirects/
Share on other sites

Already tried file_get_contents() with no success. And could I get an example on how I would use sockets in this situation? I mean, the sending GET data to a file in a host's subdirectory. As far as I could understand, sockets could manage data between hosts, not manage files. Correct me if I'm wrong.

It would also be worthy to point out that the data has to be parsed via the remote server. The server won't give me the data if it sees http://mySite.com retrieving it. It will only give the data to http://www.example.com, which means I have to access it directly instead of including it or calling it.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.