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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.