954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Include remote files like Facebook?

I want to make an app system like Facebook. I just need to know how to include remote files.
Like, for example:

<?php
require "top.php";
require "side-left.php";
//Start include (sanitize with ob_start();)
require "http://blah.com/bla1/bla2.php";
//End include
require "footer.php";
?>


I'd like to figure out how to get a file list from the remote server, but it's ok if it is impossible.

grr
Light Poster
29 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

Don't you just do this?

<?php

//includes remotefile.php
include_once 'remotefile.php';

?>


I'm not sure if thats right though because when I try to link to my remote pages from index.php I get this page:

Not Found

The requested URL /FB/myapplications/remotefile.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

kinger29
Light Poster
36 posts since Mar 2008
Reputation Points: 11
Solved Threads: 2
 

This link should be of some help here:

http://answers.yahoo.com/question/index?qid=20080814095327AAhxNcY

Thanks,
Bhagya

bhagyaR
Newbie Poster
4 posts since May 2008
Reputation Points: 10
Solved Threads: 1
 

Thanks

grr
Light Poster
29 posts since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You