mysql - (PHP): Warning: include_once, failed to open stream: Permission denied -
im learning how write sign page using php , mysql (xampp).
now, downloaded source code in website:
http://net.tutsplus.com/tutorials/php/create-a-signup-form-with-email-confirmation/
and tried make sure works. when openning:
http://localhost/source/index.php
i got following warnings:
warning: include_once(c:\xampp\htdocs\source\inc\php\config.php) [function.include-once]: failed open stream: permission denied in c:\xampp\htdocs\source\index.php on line 3 warning: include_once() [function.include]: failed opening 'inc/php/config.php' inclusion (include_path='.;c:\xampp\php\pear') in c:\xampp\htdocs\source\index.php on line 3 warning: include_once(c:\xampp\htdocs\source\inc\php\functions.php) [function.include-once]: failed open stream: permission denied in c:\xampp\htdocs\source\index.php on line 4 warning: include_once() [function.include]: failed opening 'inc/php/functions.php' inclusion (include_path='.;c:\xampp\php\pear') in c:\xampp\htdocs\source\index.php on line 4
here lines got warnings:
<?php include_once 'inc/php/config.php'; include_once 'inc/php/functions.php'; . .
any help?
replace this:
include_once 'inc/php/config.php'; include_once 'inc/php/functions.php';
with
include_once dirname(__file__) . '/inc/php/config.php'; include_once dirname(__file__) . '/inc/php/functions.php';
Comments
Post a Comment