Just for simplicity, here are the errors:
CODE
1: Warning: include() [function.include]: open_basedir restriction in effect. File(/vars.php) is not within the allowed path(s): (/home/adriantc/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/adriantc/public_html/index.php on line 3
2: Warning: include(/vars.php) [function.include]: failed to open stream: Operation not permitted in /home/adriantc/public_html/index.php on line 3
3: Warning: include() [function.include]: Failed opening '/vars.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/adriantc/public_html/index.php on line 3
4: Warning: include() [function.include]: open_basedir restriction in effect. File(/regmail.php) is not within the allowed path(s): (/home/adriantc/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/adriantc/public_html/index.php on line 4
5: Warning: include(/regmail.php) [function.include]: failed to open stream: Operation not permitted in /home/adriantc/public_html/index.php on line 4
6: Warning: include() [function.include]: Failed opening '/regmail.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/adriantc/public_html/index.php on line 4
7: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/adriantc/public_html/index.php on line 5
8: Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/adriantc/public_html/index.php on line 6
9: Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/adriantc/public_html/index.php on line 6
The last 3 (errors 7, 8 and 9) are easy to fix. They show that you have passed no username, password or server name to a MySQL database connection. Make sure your script has the right username, password and server name in it. Also, make sure the function you use to connect to the database is still in the latest version of PHP. If not, replace it with the latest function and syntax.
Errors 1 to 6 refer to loading 2 external files. Firstly, make sure the two files (vars.php and regmail.php) still exist in the location the script is looking in. The error it comes up with (open_basedir) implies the script is trying to snoop around in locations it shouldn't be (such as other users accounts or system folders). Try changing the method you use to include those files to a simple
include('filename.php'); . Again, that error could easily be caused by a PHP upgrade.
Reply