
Originally Posted by
Parahosting
You're not understanding my post. that's the whole url to a text file. If you're here to evaluate what I posted, then you're not helping in any way.
No, that is NOT the whole url and I understand your post perfectly ...
If you are are going to reference a file for include on the same server as
the script that you are executing, you would pass by path and file reference:
Code:
include("/home/mylogin/public_html/file.txt");
If the file you are including is located on another server or web site,
then you need to use the URL including the web address:
Code:
include("http://www.targetdomain.com/file.txt");
Instead of either of the above, you put the following:
Code:
include("http://file.txt");
That is not a valid URL! The "http://" tells the PHP parser that the
included file is going to be pulled from the internet but there is nothing
but a filename passed after that so your PHP parser has absolutely
no idea where it is supposed to connect to on the web!
You can't just pass a filename without a web address if using "http://" !!!
If you are just going to put a filename only then you need to drop the "http://"