I'm on Ubuntu 11.10 and installed apache server to host my local website before i host it from the company.
This site root location is "/home/a1a4a/www/"
I've got a php file in /home/a1a4a/www/account/account_info.php"
Which i want him to incorporate personal files in "/home/a1a4a/www/include/fg_membersite.php"
It's things i did from account_info.php
And that i got this error
Warning: require_once(./include/fg_membersite.php): failed to open stream: No such file or directory in /home/a1a4a/www/account/account_info.php on line 10 Fatal error: require_once(): Failed opening required './include/fg_membersite.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/a1a4a/www/account/account_info.php on line 10
What exactly have i done wrong ? How you can fix . I've full permissions ( sudo chown -R www-data ).
Thanks and Happy Holidays :)
Always employ the complete path or else you will face errors with respect to the calling script.
should really be