A
Anonymous
Guest
Hi,
I have a problem when I try to make an include of a file on another server. I have seen two versions of the include script and tried with both, it just doesnt work. Th script works fine for an include "on site" but not with the hypertext link, then nothing happens or worse, it seems to hang.
The scripts I tried is :
<? php include 'http://www.mysite.com/myfile.php'; ?>
and
<? php include("http://www.mysite.com/myfile.php"); ?>
None of them works, but
<? php include 'myfile.php'; ?> works since its on the same server.
What am I doing wrong, or cant I include the same file on all my sites. I want to do this so I dont have to go to every site I have and update some things that are regulary updated and are the same for all sites.
Thanks in advance
I have a problem when I try to make an include of a file on another server. I have seen two versions of the include script and tried with both, it just doesnt work. Th script works fine for an include "on site" but not with the hypertext link, then nothing happens or worse, it seems to hang.
The scripts I tried is :
<? php include 'http://www.mysite.com/myfile.php'; ?>
and
<? php include("http://www.mysite.com/myfile.php"); ?>
None of them works, but
<? php include 'myfile.php'; ?> works since its on the same server.
What am I doing wrong, or cant I include the same file on all my sites. I want to do this so I dont have to go to every site I have and update some things that are regulary updated and are the same for all sites.
Thanks in advance