Include remote files like Facebook?

Thread Solved

Join Date: Jun 2008
Posts: 29
Reputation: grr is an unknown quantity at this point 
Solved Threads: 0
grr grr is offline Offline
Light Poster

Include remote files like Facebook?

 
0
  #1
Jul 27th, 2008
I want to make an app system like Facebook. I just need to know how to include remote files.
Like, for example:

  1. <?php
  2. require "top.php";
  3. require "side-left.php";
  4. //Start include (sanitize with ob_start();)
  5. require "http://blah.com/bla1/bla2.php";
  6. //End include
  7. require "footer.php";
  8. ?>

I'd like to figure out how to get a file list from the remote server, but it's ok if it is impossible.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 31
Reputation: kinger29 is an unknown quantity at this point 
Solved Threads: 1
kinger29 kinger29 is offline Offline
Light Poster

Re: Include remote files like Facebook?

 
1
  #2
Aug 14th, 2008
Don't you just do this?


  1. <?php
  2.  
  3. //includes remotefile.php
  4. include_once 'remotefile.php';
  5.  
  6. ?>

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.
Last edited by peter_budo; Nov 1st, 2008 at 8:46 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 4
Reputation: bhagyaR is an unknown quantity at this point 
Solved Threads: 1
bhagyaR bhagyaR is offline Offline
Newbie Poster

Re: Include remote files like Facebook?

 
0
  #3
Aug 14th, 2008
This link should be of some help here:

http://answers.yahoo.com/question/in...4095327AAhxNcY

Thanks,
Bhagya
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 29
Reputation: grr is an unknown quantity at this point 
Solved Threads: 0
grr grr is offline Offline
Light Poster

Re: Include remote files like Facebook?

 
0
  #4
Nov 1st, 2008
Thanks
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC