By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

How to Load an URL in PHP?

P: 1
Hello, and thanks for taking the time to see if you can help me!

Okey, I need load an URL in php.

Is there a way when someone comes to my site for example test.php I can make the php file load what ever url I want but not show it on the computer screen?

Then when the loading is done it loads an image or something?

Some one suggested using the header ("location:")
But then it just loads that url, going away from

So is there away to keep them on my site but still fetch another url but not show it on the page until they click on something. Just load it and then if someone wants to see it, it's there already loaded and everything goes really fast.

Any input would be great!

Oct 2 '08 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 5,058

You could try either the HttpRequest class (see HttpRequest::send for examples) or the Curl functions.

Alternatively you could try doing this client-side using Ajax.
Oct 3 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.