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
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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.