Page 1 of 1

require_once() error

Posted: Sat Nov 15, 2008 5:33 am
by gmseed
Hi

In my index.php file I have a call to require_once():

// html page settings
require_once('php/page.php');

Warning: require_once(php/page.php) [function.require-once]: failed to open stream: Permission denied in /home/gmseed/public_html/web/trunk/index.php on line 27

Fatal error: require_once() [function.require]: Failed opening required 'php/page.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/gmseed/public_html/web/trunk/index.php on line 27

Does anyone know why I'm getting this error message?

I'm using the php5 version installed as part of Netbeans 6.5 on Ubuntu 8.1.

Thanks for an help.

Cheers

Graham

Re: require_once() error

Posted: Sat Nov 15, 2008 6:01 am
by aceconcepts
What are the permissions set on the "php" directory?

Re: require_once() error

Posted: Sun Nov 16, 2008 9:37 am
by gmseed
Hi

Thanks for your reply.

Having just moved over for good from Windows to Ubuntu Linux I for got to check the dir/file permissions.

Changing the access permissions has now sorted out my problem.

Thanks again.

Graham