WordPress.org

Ready to get started?Download WordPress

Forums

Error. Failed to open stream: No route to host (6 posts)

  1. lostinconfusion
    Member
    Posted 8 years ago #

    Warning: main(http://a.malificia.com/wordpress/blog10.php): failed to open stream: No route to host in /home/virtual/site45/fst/var/www/a./index.php on line 3

    Warning: main(http://a.malificia.com/wordpress/blog10.php): failed to open stream: No route to host in /home/virtual/site45/fst/var/www/a./index.php on line 3

    Warning: main(): Failed opening 'http://a.malificia.com/wordpress/blog10.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /home/virtual/site45/fst/var/www/a./index.php on line 3

    ---------------------------------

    I don't get it. Something is wrong, but I can't seem to get what. It was all fine a few days ago and now it just... broken or something.
    I've searched the forums for people with the same problem, but they all had slightly different errors. Trouble with permission and such.
    I'm lost and I would be ever grateful to someone who could help me. And if I'm being stupid; sorry.
    Thanks for reading.

  2. Jonathan Dingman
    Member
    Posted 8 years ago #

    When it says it can't open the file, it means that it can't find it. Try replacing the file (so that it can find it) that it's looking for in line 3 and see if that helps.

  3. Umm, are you include()ing http://a.malificia.com/wordpress/blog10.php into your index.php or something? Please post the code of your index.php here or at PasteBin if it's more then a few lines.

  4. lostinconfusion
    Member
    Posted 8 years ago #

    <? include('header3.inc'); ?>
    <p align="justify">
    <?php include("http://a.malificia.com/wordpress/blog10.php"); ?>

    <? include('footer.inc'); ?>

  5. lostinconfusion
    Member
    Posted 8 years ago #

    When it says it can't open the file, it means that it can't find it. Try replacing the file (so that it can find it) that it's looking for in line 3 and see if that helps.

    ----------

    Thanks to both of you. It's working now. :).

  6. Don't use a Internet path to include a local file. It means it has to go out onto the web to find the file, plus, it can only include the HTML and not the actual file contents.

    Use like <?php include('wordpress/blog10.php'); ?>.

Topic Closed

This topic has been closed to new replies.

About this Topic