So, I am trying to insert a file with a php include, but for some reason it doesn't work with the full URL.
This works:
<?php include 'menu.html' ?>
But this does not:
<?php include 'http://domainname.com/menu.html' ?>
Any ideas?
So, I am trying to insert a file with a php include, but for some reason it doesn't work with the full URL.
This works:
<?php include 'menu.html' ?>
But this does not:
<?php include 'http://domainname.com/menu.html' ?>
Any ideas?
Does your php.ini
allow you to use remote files with include
?
If it's on your own domain then it makes no sense to require the absolute URL, as this would cause the server to open a connection to itself to retrieve the file via HTTP when a direct file operation would be so much simpler.