Skyaxe
06-03-2007, 07:55 PM
Hey Guys
I have made a php script for checking sure that a form is filled out correctly.
The problem the register.php that has the php script does not load it comes up with three errors and i cant seem to fix it.
I have been trying to fix the errors for 3 days and have made no head ways.
The errors are
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/Connections/userlogin.php) is not within the allowed path(s): (/tmp:/usr/share/pear:/home/fhlinux169/m/maltmandarkblues.co.uk/user) in /home/fhlinux169/m/maltmandarkblues.co.uk/user/htdocs/Register.php on line 2
Warning: require_once(/Connections/userlogin.php) [function.require-once]: failed to open stream: Operation not permitted in /home/fhlinux169/m/maltmandarkblues.co.uk/user/htdocs/Register.php on line 2
Fatal error: require_once() [function.require]: Failed opening required '/Connections/userlogin.php' (include_path='.:/usr/share/pear-php5') in /home/fhlinux169/m/maltmandarkblues.co.uk/user/htdocs/Register.php on line 2
The line of code it fails at is
<?php
require_once('/Connections/userlogin.php'); //Connect to the SQL database
?>
I think its a server side php setting needs changed but im not sure.
Please help guys.
Thanks
Skyaxe
I have made a php script for checking sure that a form is filled out correctly.
The problem the register.php that has the php script does not load it comes up with three errors and i cant seem to fix it.
I have been trying to fix the errors for 3 days and have made no head ways.
The errors are
Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/Connections/userlogin.php) is not within the allowed path(s): (/tmp:/usr/share/pear:/home/fhlinux169/m/maltmandarkblues.co.uk/user) in /home/fhlinux169/m/maltmandarkblues.co.uk/user/htdocs/Register.php on line 2
Warning: require_once(/Connections/userlogin.php) [function.require-once]: failed to open stream: Operation not permitted in /home/fhlinux169/m/maltmandarkblues.co.uk/user/htdocs/Register.php on line 2
Fatal error: require_once() [function.require]: Failed opening required '/Connections/userlogin.php' (include_path='.:/usr/share/pear-php5') in /home/fhlinux169/m/maltmandarkblues.co.uk/user/htdocs/Register.php on line 2
The line of code it fails at is
<?php
require_once('/Connections/userlogin.php'); //Connect to the SQL database
?>
I think its a server side php setting needs changed but im not sure.
Please help guys.
Thanks
Skyaxe