Jump to content

Include not displaying


kiowa_jackson

Recommended Posts

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

 

Link to comment
Share on other sites

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.

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.