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
https://forums.phpfreaks.com/topic/92220-include-not-displaying/
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.

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.