Forum Moderators: coopster
I have tried:
<!--#include virtual="../snippet.php" --> thinking that my hosting company uses subdomains as if they were subdirectories.
And lastly, I tried a direct URL call:
<? include("http://www.mydomain.com/snippet.php")?>
I can't seem to get it to work. Can anyone give me suggestions?
you need to add a leading slash, because on linux servers root comes after /.
i would just like to add that
<? include("http://www.mydomain.com/snippet.php")?>
this can never work the way you want it, this include will be a compiled output html include of snippet.php, it in no way can be a source code include. you cannot include source code of any file by sending http request.