Topic: Problem showing news

Hi i have a problem,



This is the error

PHP Warning: include(): open_basedir restriction in effect. File(C:\Inetpub hosts\witecc.com\httpdocs\CuteNews/show_news.php) is not within the allowed path(s): (C:/Inetpub/vhosts/witecc.com\;C:\Windows\Temp\) in C:\Inetpub\vhosts\witecc.com\httpdocs\notiEN.php on line 244 PHP Warning: include(C:\Inetpub hosts\witecc.com\httpdocs\CuteNews/show_news.php): failed to open stream: Operation not permitted in C:\Inetpub\vhosts\witecc.com\httpdocs\notiEN.php on line 244 PHP Warning: include(): open_basedir restriction in effect. File(C:\Inetpub hosts\witecc.com\httpdocs\CuteNews/show_news.php) is not within the allowed path(s): (C:/Inetpub/vhosts/witecc.com\;C:\Windows\Temp\) in C:\Inetpub\vhosts\witecc.com\httpdocs\notiEN.php on line 244 PHP Warning: include(C:\Inetpub hosts\witecc.com\httpdocs\CuteNews/show_news.php): failed to open stream: Operation not permitted in C:\Inetpub\vhosts\witecc.com\httpdocs\notiEN.php on line 244 PHP Warning: include(): Failed opening 'C:\Inetpub hosts\witecc.com\httpdocs\CuteNews/show_news.php' for inclusion (include_path='C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\pear\;.\pear\;') in C:\Inetpub\vhosts\witecc.com\httpdocs\notiEN.php on line 244

I don't know why is happening, because on my server runs normally, i used the news integration wizard.

REgards

2 (edited by 2013-04-11 12:30:07)

Re: Problem showing news

One cause of this is when your script is attempting to access a file outside your allocated webspace. It can be caused if php is running in safemode. Some hosts use open_basedir for adding security to shared webhosting servers. Ask your host to fix this.Try using a relative filepath to the include instead of an absolute one.

include("CuteNews/show_news.php");

Also check your cutenews path in configurations.

Re: Problem showing news

Thanks
Is working now