Absolute path issues
I need to include a php file from another domain on the same server. I am using
/public_html/communities.php'); ?>
It has worked fine until recently. Now I get an error message...
PHP Warning: include(): Failed opening '/home//public_html/communities.php' for inclusion (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home//public_html//header.php on line 72
I have been unable to find a solution anywhere.
-
use
But allow_url_include must be enabled in php.ini if this is a shared hosing your provider may not allow if the php does not render any dynamic content you can get get around the restriction with$filedata"); ?>0 -
Hi @Grandpa47466 Please let us know if the suggestion helps resolve the issue! Thanks! 0 -
But your suggestion would allow anyone to access it. I don't like that idea. 0 -
bit confused ?? anyone would have access to a public facing page anyway if it was working fine before with the path then the permissions to the public_html were 755 or 777. which is a worse idea in terms of security. 0
Please sign in to leave a comment.
Comments
4 comments