justinede Posted June 23, 2009 Share Posted June 23, 2009 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. Quote Link to comment Share on other sites More sharing options...
PugJr Posted June 23, 2009 Share Posted June 23, 2009 Okay, did you recently modify your php.ini? You should be able to fix it in there. Quote Link to comment Share on other sites More sharing options...
justinede Posted June 23, 2009 Author Share Posted June 23, 2009 php.ini? no such file exists in my system. i am using godaddy hosting and i never touched any php.ini file. Quote Link to comment Share on other sites More sharing options...
PugJr Posted June 23, 2009 Share Posted June 23, 2009 Can you use a php.ini and modifiy it to what you want? Or you could just go ask godaddy support for the reason they disabled it? Quote Link to comment Share on other sites More sharing options...
justinede Posted June 23, 2009 Author Share Posted June 23, 2009 i have no idea. can i just make on and put it in my root? Quote Link to comment Share on other sites More sharing options...
PugJr Posted June 23, 2009 Share Posted June 23, 2009 Yeah, you should be able to do that. Thats what I did with my host provider. Google for a default php.ini or something. Anyways, I have to get off for the night. Hope you fix your problem. Quote Link to comment Share on other sites More sharing options...
justinede Posted June 23, 2009 Author Share Posted June 23, 2009 thanks... this is totally bs. i hate godaddy Quote Link to comment Share on other sites More sharing options...
justinede Posted June 23, 2009 Author Share Posted June 23, 2009 dam it isnt working. i made a php.ini file but it still dosnt want to work. scratch that. i changed the php.ini to php5.ini pretty shitty that i need this. just another thing to make my root more messy. =P Quote Link to comment Share on other sites More sharing options...
justinede Posted June 23, 2009 Author Share Posted June 23, 2009 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 Quote Link to comment Share on other sites More sharing options...
priti Posted June 23, 2009 Share Posted June 23, 2009 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");?> Quote Link to comment Share on other sites More sharing options...
CyG64 Posted June 23, 2009 Share Posted June 23, 2009 Hi, if the file you want to include is under the same domain, then better include it without the 'http:// ...' stuff. Proud to be of service http://HoloGuides.com/php 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.