Jump to content

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.

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.