php include files - brand newbie
Posted: Fri Oct 30, 2009 1:16 pm
I have an application which I want to use on multiple sites.
Within a single site I use <?php include("filename.inc.php"); ?> and things work fine.
I have tried accessing the same file from a different site using <?php include("http://url.com/filename.inc.php"); ?> - no success
One source suggested removing the parentheses. I tried - no success?
I am brand new to php and don't know where to look or what to ask. I am going to start wading through some tutorials, but in the mean time, if someone could help me I would be very grateful.
Q1: How do I access an include file from a different website?
Q2: Can anyone recommend a good beginner's book or online tutorial to get familiar with basic php principles and code?
Thank You
Within a single site I use <?php include("filename.inc.php"); ?> and things work fine.
I have tried accessing the same file from a different site using <?php include("http://url.com/filename.inc.php"); ?> - no success
One source suggested removing the parentheses. I tried - no success?
I am brand new to php and don't know where to look or what to ask. I am going to start wading through some tutorials, but in the mean time, if someone could help me I would be very grateful.
Q1: How do I access an include file from a different website?
Q2: Can anyone recommend a good beginner's book or online tutorial to get familiar with basic php principles and code?
Thank You