Jump to content

PHP Include doesn't seem to work...


Mesden

Recommended Posts

Ever since I updated to PHP5 my Include has stopped working. Not sure why, did they revise how includes should look or something..? Here's the area of the coding of which it seems to be stuck..

 

<div id="templatemo_site_title_bar">
  <div id="site_title">
    <h1><a href="/">SC2X.Net<span>Your Premiere Source for<br />
      Starcraft II! </span></a></h1>
  </div>
  <ul id="templatemo_menu">
    <li><a href="/" class="current"><span></span>Home</a></li>
    <li><a href="http://www.sc2x.net/wordpress/" target="_blank"><span></span>News</a></li>
    <li><a href="http://www.sc2x.net/phpBB3" target="_blank"><span></span>Forums</a></li>
    <li><a href="#" target="_blank"><span></span>Replays</a></li>
    <li><a href="/guide.php">Guides</a></li>
    <li><a href="http://astore.amazon.com/scne09-20"><span></span>Store</a></li>
  </ul>
<div id="search_box"><br />

          <?php include 'http://www.sc2x.net/random.php' ?>

  </div>
</div>

 

Link to comment
https://forums.phpfreaks.com/topic/207193-php-include-doesnt-seem-to-work/
Share on other sites

You are using a URL in the include. If you are attempting to include content on the same site, you should use a file system path instead of a URL (the include will operate about 50-100 times faster.)

 

In order to use a URL in the include, both the allow_url_fopen and allow_url_include settings must be on.

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.