Page 1 of 1

remote include

Posted: Sun Aug 05, 2007 8:01 am
by m2babaey
Hi
I coded a page this way:
<?php
include 'index.php';
?>
but it's not working. I don't need to include here's index but want to know about remote including

Posted: Sun Aug 05, 2007 8:37 am
by thiscatis
is allow_url_fopen enabled?

Posted: Sun Aug 05, 2007 8:41 am
by superdezign
It's something that must be enabled server-side. Otherwise, use cURL or something.

Posted: Sun Aug 05, 2007 8:14 pm
by feyd
Remote inclusion is generally frowned upon. This is due largely to two this: security and speed.
  1. If the remote server is compromised the attacker compromises a second or third site for free.
  2. remote requests can take several seconds to finish gathering response data. The user will likely grow impatient.