Jump to content

php include error


justinede

Recommended Posts

I am trying to use

<?php include("http://justinledelson.com/includes/sidebar.php");?>

. i am getting these errors:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/content/j/u/s/justinledelson/html/index.php on line 32

Warning: include(http://justinledelson.com/includes/sidebar.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/content/j/u/s/justinledelson/html/index.php on line 32

Warning: include() [function.include]: Failed opening 'http://justinledelson.com/includes/sidebar.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/j/u/s/justinledelson/html/index.php on line 32

 

I have no clue what is going on. I have used this before and it worked fine.

Link to comment
Share on other sites

ok so when i use my php5.ini file, the php include works but when i try to login, the login system dosnt work..

 

here is my php5.ini file. can you take a look and see what would prevent a login file from not working.

 

http://justinledelson.com/php5.ini

Link to comment
Share on other sites

you are receiving that error because allow_url_fopen is OFF in PHP configuration (php.ini) file.

 

To understand php.ini  follow :http://www.slideshare.net/pritisolanki/understanding-phpini-presentation

 

you can't do ini_set() to set this this is System level configuration value.

 

I see you are trying to include <?php include("http://justinledelson.com/includes/sidebar.php");?>

 

if http://justinledelson.com is same site you are working then I think you should do as follow

 

<?php include("/includes/sidebar.php");?>

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.