PHP OPEN DIR ERROR

I just switched from Network Solutions to InMotionHosting and transferred all my files via ftp.

I am getting this error:

Warning: opendir(/home/secur100/public_html/htdocs/facility) [function.opendir]: failed to open dir: Permission denied in /home/silver91/public_html/head.php on line 44

The support techs at InMotionHositng say that it should read “secure100” not secur100" and are confused as to why the error is displaying this way.

This is what line 44 reads:

$dir = opendir($_SERVER[‘DOCUMENT_ROOT’].’/facility’);

How can this be resolved?

Well I changed line 44 to:

$dir = opendir('facility');

and I have no issues! :slight_smile:

ACTUALLY…

Now the pages further on in the site don’t work ARGH!

Help! ::slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service