Good day, please help, when i transfer my phpcode in ubuntu I am getting this error * Warning: include(includes/sidebar.php) [function.include]: failed to open stream: Permission denied in /opt/lampp/tg/index.php on line 47*
but when I'm using Windows vista my pages are okey... please help thank You..
9 Months Ago
Related Article:Move_uploaded_file failed to open stream
is a PHP discussion thread by rfrapp that has 2 replies, was last updated 10 months ago and has been tagged with the keywords: failed, open, stream.
Just my guess since I am not using Ubuntu but Fedora. I think scripts and web pages should be in a directory that is defined in a webserver configuration (in Fedora and some other distros the config file is /etc/httpd/conf/httpd.conf and the web pages are in /var/www/html). The directories and files should be owned by either a webserver user (apache in Fedora) or just the normal user that created them. The directories on my webserver have permissions rwxr-xr-x and the files are rw-r--r-- and everything works OK. So check your Apache config file and the permissions.