PHP error Warning: Unknown(includes/main.php)

divecall

New Member
Web page contains php includes:\[code\]<?php include 'http://www.example.com/header.txt';?> \[/code\]and\[code\]<?php include 'http://www.example.com/footer.txt';?>\[/code\]\[code\]header.txt\[/code\] and \[code\]footer.txt\[/code\] files with html markup are placed in the root folder of a website.Everything went ok pretty long, but suddenly the following error messages appeared on webpages in browser right after markup areas, incerted by these php scripts:\[quote\] Warning: Unknown(includes/main.php): failed to open stream: No such file or directory in >Unknown on line 0 Warning: Unknown(includes/main.php): failed to open stream: No such file or directory in >Unknown on line 0 Warning: (null)(): Failed opening 'includes/main.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0\[/quote\]All markup from txt files is shown by browser correctly. The only problem are these Warning messages. Site is hosted on shared hosting. Nothing was changed in the content of web site folder before these messages appeared.What is the problem?
 
Back
Top