View Single Post
  #1 (permalink)  
Old 26-11-2006, 12:34
Sayonara Sayonara is offline
Junior Member
 
Join Date: Nov 2006
Location: Leeds, UK
Posts: 24
Default Problem with including

A strange problem has appeared on my blog.

The templates for blog pages have quite a few includes in them, using complete addresses rather than relative URLs (because the templates are used for making files that are automatically placed in different directories).

Eg:

PHP Code:
<?php include wwwsayonara.info/blog/files/links.php); ?>
I'm now all of a sudden getting errors like this:

[Sun Nov 26 13:24:54 2006] [error] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'www. sayonara.info/blog/files/links.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sayonara/public_html/blog/index.php on line 59
[Sun Nov 26 13:24:54 2006] [error] PHP Warning: main(http:// www. sayonara.info/blog/files/links.php) [<a href='function.main'>function.main</a>]: failed to open stream: Permission denied in /home/sayonara/public_html/blog/index.php on line 59


This is not a problem on static pages like the blog index, or the master archive, because I can just change to a relative URL. But for pages that are generated dynamically it's a nightmare.

Anyone have any ideas what has caused this, and how to fix it?
Reply With Quote