Jump to content

[SOLVED] standard include not working...


TwiztedDotNet

Recommended Posts

The page is here:

http://www.consolidatedcarriersofcalifornia.com/newsletter.php

 

Here is the source of line 112:

include ("/archived-newsletters/Spring%202008%20Newsletter.htm");

 

 

...I'm not quite sure what's going on here.

I moved this site from one server to another.  This script worked fine before I moved it, now it doesn't work.

 

I've got a very similar include on the Safety page, and it works perfectly.

 

I'm dumbfounded at this point...

 

Any suggestions would be greatly appreciated!

Link to comment
https://forums.phpfreaks.com/topic/111766-solved-standard-include-not-working/
Share on other sites

Warning: main(/archived-newsletters/Spring%202008%20Newsletter.htm): failed to open stream: No such file or directory in /home/farrens/CCC/newsletter.php on line 112

 

Warning: main(): Failed opening '/archived-newsletters/Spring%202008%20Newsletter.htm' for inclusion (include_path='.:/usr/local/share/pear:/usr/local/lib/php') in /home/farrens/CCC/newsletter.php on line 112

 

 

...it can be seen here: http://www.consolidatedcarriersofcalifornia.com/newsletter.php

besides, the archived-newsletters directory is in the root, so the leading / would be correct.

 

The file IS in the correct location: http://www.consolidatedcarriersofcalifornia.com/archived-newsletters/Spring%202008%20Newsletter.htm

 

I really have no idea why this isn't working...

No, the file is NOT located in the root of the file system, it is located in the top most area that the web server can see.

 

Try:

<?php
include('/home/farrens/CCC/archived-newsletters/Spring 2008 Newsletter.htm');
?>

 

Ken

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.