Jump to content

error


Fitzlegend

Recommended Posts

Hi i am converting a script from localhost to my web server, im getting an error with a

file

 

http://nci.890m.com/Nciworkplacement/

 

include($_SERVER['DOCUMENT_ROOT'].'/'.'Nciworkplacement/views/layouts/'.$controller.'.php');

It worked this way on localhost

 

the errors i now get are

 

 

Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/Nciworkplacement/views/layouts/jobs.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a3013388/public_html/Nciworkplacement/index.php on line 52

 

 

 

 

Warning: include(/usr/local/apache/htdocs/Nciworkplacement/views/layouts/jobs.php) [function.include]: failed to open stream: Operation not permitted in /home/a3013388/public_html/Nciworkplacement/index.php on line 52

 

 

 

 

 

Warning: include() [function.include]: Failed opening '/usr/local/apache/htdocs/Nciworkplacement/views/layouts/jobs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a3013388/public_html/Nciworkplacement/index.php on line 52

 

On wamp i had it in my www folder on my web server i also have it in my www folder.

 

Can anyone solve the error?

Link to comment
https://forums.phpfreaks.com/topic/102731-error/
Share on other sites

down to 2 now

 

 

Warning: include(../views/layouts/jobs.php) [function.include]: failed to open stream: No such file or directory in /home/a3013388/public_html/Nciworkplacement/index.php on line 57

 

 

 

Warning: include() [function.include]: Failed opening '../views/layouts/jobs.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a3013388/public_html/Nciworkplacement/index.php on line 57

 

 

 

they are both the only files using the server document root, i have put them in the public_html folder... does this error mean they are not?

 

Link to comment
https://forums.phpfreaks.com/topic/102731-error/#findComment-526166
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.