I recently found the need to convert all my precious .shtml files to .php, which had the small side effect of making my <#includes> totally useless. I did some searches, poked around on the internet and suchlike, and learned of PHP's wonderful include() and require() commands. The problem, though, is that I have absolutely no PHP knowledge and the information at php.net was way too technical for my understanding.
Basically, which function, and what syntax would I use to replace:
<!--#include file="/directory/subdir/file.shtml"-->
(file.shtml, by the way, is now file.php)
I tried to whip something up with my zero-understanding of PHP, but got such errors as:
Warning: php_hostconnect: connect failed in /data/www/virtual/myusername/myusername/directory/index.php on line 79
Fatal error: Failed opening required 'http://www.myusername.com/directory/subdir/file.php' (include_path='.:/usr/local/lib/php') in /data/www/virtual/myusername/myusername/directory/index.php on line 79
Any help?