Jump to content

Includes not working in Komodo Edit 6.0


cheryline elliott

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...