943,762 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 1094
  • PHP RSS
Jul 27th, 2008
0

Include remote files like Facebook?

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

php Syntax (Toggle Plain Text)
  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.
grr
Reputation Points: 10
Solved Threads: 0
Light Poster
grr is offline Offline
29 posts
since Jun 2008
Aug 14th, 2008
1

Re: Include remote files like Facebook?

Don't you just do this?


php Syntax (Toggle Plain Text)
  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
Reputation Points: 11
Solved Threads: 2
Light Poster
kinger29 is offline Offline
35 posts
since Mar 2008
Aug 14th, 2008
0

Re: Include remote files like Facebook?

This link should be of some help here:

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

Thanks,
Bhagya
Reputation Points: 10
Solved Threads: 1
Newbie Poster
bhagyaR is offline Offline
4 posts
since May 2008
Nov 1st, 2008
0

Re: Include remote files like Facebook?

Thanks
grr
Reputation Points: 10
Solved Threads: 0
Light Poster
grr is offline Offline
29 posts
since Jun 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP File Sharing script
Next Thread in PHP Forum Timeline: could someone please explain to me why this script will not update my database?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC