kiowa_jackson Posted February 21, 2008 Share Posted February 21, 2008 I'm using the function <?php include('http://www.hansfalk.se/inc/sidebar.php'); ?> on the page http://www.hansfalk.se/index.php, but nothing is displaying. http://www.hansfalk.se/inc/sidebar.php is working fine though...why is that? And the image on the right hand side http://www.hansfalk.se/img/hasse.JPG isn't displaying for me in firefox, but it's working in IE. Can someone confirm this for me? Thanks for the help... Quote Link to comment Share on other sites More sharing options...
bpops Posted February 21, 2008 Share Posted February 21, 2008 Isee the image in firefox. As for the sidebar, can we see the code from the main page? Quote Link to comment Share on other sites More sharing options...
kiowa_jackson Posted February 21, 2008 Author Share Posted February 21, 2008 I'm trying to include the content for the empty sidebar. This is what the code for it looks like: <div id="sidebar-a"> <?php include('http://www.hansfalk.se/inc/sidebar.php'); ?> </div> do you want the rest of the code as well? Quote Link to comment Share on other sites More sharing options...
bpops Posted February 21, 2008 Share Posted February 21, 2008 Try <?php include('inc/sidebar.php'); ?> Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 21, 2008 Share Posted February 21, 2008 Your include is not working due to one or both of the following settings - allow_url_fopen boolean This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers. Note: This setting can only be set in php.ini due to security reasons. Note: This option was introduced immediately after the release of version 4.0.3. For versions up to and including 4.0.3 you can only disable this feature at compile time by using the configuration switch --disable-url-fopen-wrapper. Warning On Windows versions prior to PHP 4.3.0, the following functions do not support remote file accessing: include(), include_once(), require(), require_once() and the imagecreatefromXXX functions in the Image extension. allow_url_include boolean This option allows the use of URL-aware fopen wrappers with the following functions: include(), include_once(), require(), require_once(). Note: This setting requires allow_url_fopen to be on. The image works for me using FF. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.