Re: Re: Really Annoying Require/Include Error
| From: | Curt Zirzow | Date: | Wed, 31 Mar 2004 03:33:48 +0000 |
| Subject: | Re: Re: Really Annoying Require/Include Error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181891@lists.php.net to get a copy of this message | ||
* Thus wrote Mike R (spycobalt@spyproductions.com):
>
>
> > -----Original Message-----
>
> > > I am getting this error:
> > >
> > >
> > >
> > > Fatal error: Failed opening required
> > > '/home/sites/site111/web/news/settings/newsletter.settings.inc.php'
> > > (include_path='') in
> > > /home/sites/site111/web/news/forms/sign_in_out_form.inc.php on line 7
> > >
> >
> > Based on this path I'm assuming you use Linux? If that's the case you
> > need to be sure that your webserver has permissions to execute that
> > file. To test this, try chmod 777 and then execute the script... but
> > later chmod to something more sane, maybe 755.
> >
>
> Yes, Linux. I checked the permission - set the whole directory to 777, no
> change in the problem.
btw, php scripts do not need the execute flag to be included or
even ran from a website. What are the permissions for:
/home/sites/site111/web/news/settings/
That will need execute and read permissions.
>
> Is there anything in the compiling of php or ini settings that would affect
> include or require statements?
yes, some safe_mode_* options will prevent things like that, although iirc, it
will say it was due to safe_mode being on; but it wont hurt to
check these settings.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."