cheryline elliott Posted December 30, 2010 Report Share Posted December 30, 2010 I am receiving these errors when try to run my code. I am using Wamp coupled with Komodo Edit 6.0 Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\wamp\www\includes\login.php on line 8 Warning: include(http://www/includes/config.php) [function.include]: failed to open stream: no suitable wrapper could be found in C:\wamp\www\includes\login.php on line 8 The code is below: I am working on the phplogin. ?php /* *Login.php *Log in members */ //start session /load configs session_start(); include('http://www/includes/config.php'); include('http://www/includes/db.php'); //form $error['alert'] = ''; $error['user'] = ''; $error['pass'] = ''; $input['user'] = ''; $input['pass'] = ''; include('http://www/views/v_login.php'); ?> Do I need to change a con fig file for my code to work. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 30, 2010 Report Share Posted December 30, 2010 Why do your includes use "http://www/"? They shouldn't contain that and assuming you are following one of my videos (it looks like my code) my video didn't show or use that in the includes. The includes should look like this: include('includes/config.php'); Quote Link to comment Share on other sites More sharing options...
cheryline elliott Posted December 30, 2010 Author Report Share Posted December 30, 2010 I am receiving these errors when try to run my code. I am using Wamp coupled with Komodo Edit 6.0 Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in C:\wamp\www\includes\login.php on line 8 Warning: include(http://www/includes/config.php) [function.include]: failed to open stream: no suitable wrapper could be found in C:\wamp\www\includes\login.php on line 8 The code is below: I am working on the phplogin. ?php /* *Login.php *Log in members */ //start session /load configs session_start(); include('http://www/includes/config.php'); include('http://www/includes/db.php'); //form $error['alert'] = ''; $error['user'] = ''; $error['pass'] = ''; $input['user'] = ''; $input['pass'] = ''; include('http://www/views/v_login.php'); ?> Do I need to change a con fig file for my code to work. If I don't use the htttp:\\www it doesn't work. Please see attachment. Do I have tried different ways, but nothing seems to work. Quote Link to comment Share on other sites More sharing options...
cheryline elliott Posted December 30, 2010 Author Report Share Posted December 30, 2010 I did a simple hello world and it worked fine, but it's located in the root directory under C:\wamp\www. Quote Link to comment Share on other sites More sharing options...
cheryline elliott Posted December 30, 2010 Author Report Share Posted December 30, 2010 Please see attachment below. Maybe I am doing something wrong using Komodo Edit, but it's a free software that should work with php. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 30, 2010 Report Share Posted December 30, 2010 Why is your login.php file inside the includes folder? (looking at your error message: "no suitable wrapper could be found in C:\wamp\www\includes\login.php on line 8") I believe it should be outside, with this structure: All within your "www" folder: - login.php - logout.php - members.php - register.php - temp.php - includes folder: ---- config.php ---- db.php - views folder: ---- style.css ---- v_loggedout.php ---- v_login.php ---- v_members.php ---- v_register.php I'm assuming you are a member of the KS Video Library at http://www.killersites.com/university? You can download the source files and make sure your file structure matches mine. Quote Link to comment Share on other sites More sharing options...
cheryline elliott Posted December 30, 2010 Author Report Share Posted December 30, 2010 You are correct! When watching the video, it looked like these files should have been in the include folder. Thanks. I do have one more question about Komodo. Do I have to hard code my file within the current file setting I sent you a screen shot of. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 30, 2010 Report Share Posted December 30, 2010 Do I have to hard code my file within the current file setting I sent you a screen shot of. Explain a bit more? I'm not seeing an actual attachment ("Please see attachment."), so maybe you didn't complete attaching the file? Quote Link to comment Share on other sites More sharing options...
cheryline elliott Posted December 30, 2010 Author Report Share Posted December 30, 2010 I did attached the file below. Videos are great, but I can not find any source code. Sometime you just don't want to type I that in. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 30, 2010 Report Share Posted December 30, 2010 I did attached the file below. Sorry, still not seeing it. If it is important, email it to me at ben [at] killersites.com. Otherwise, explain what you mean by "hard coding"? Videos are great, but I can not find any source code. Sometime you just don't want to type I that in. The source files are in the KillerSites Video Library (killersites.com/university). After you log in, go to PHP > PHP Login. Download the appropriate source files depending on which parts of the videos you are watching. If you are working with parts 1-7, download the file named "Simple PHP Login System Source Files (Parts 1-7) [ZIP]". It is just below the links to videos 1-7. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted December 31, 2010 Report Share Posted December 31, 2010 Thanks for the email. There should be no reason you need to hard code the URL. Your error messages in the screenshots that you sent me indicate that your login.php file is still within your includes folder. It doesn't belong there - move it outside of that folder, and the issues should go away. The errors you are getting simply indicate that you are trying to include a file that doesn't exist - you have an incorrect path. I would suggest downloading the source files (see my post above) and checking to make sure your files and directory structure match mine. 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.
Note: Your post will require moderator approval before it will be visible.