Jump to content

php include from main folder on shared host


soggy

Recommended Posts

<?php include 'http://www.anysite.com/credits.php'?>

 

The above code works fine, but is there a way to pull it without listing http://www.anysite.com?

 

The page pulling the file is a couple of directories lower in

 

anysite.com/folder1/folder2/folder3/footer.php

 

and the file it is pulling is in the root folder for that domain

 

Also let me state that the domain name is an addon domain but not a sub domain

 

thanks in advance

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.