PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am tring to install a topsites database but there is an error.
Warning: fopen(./config.php): failed to open stream: Permission denied in /home/gaogier/public_html/top100sites/install.php on line 185
You do not have permission to write to ./config.php Make sure you CHMOD 666 config.php
\$CONFIGї'version'] = '4.2.2 (2005-01-10)';
\$TMPLї'version'] = \$CONFIGї'version'];
?>
EndHTML;
$file = $FORMї'path']."e;/config.php"e;;
$fh_config = fopen($file, "e;w"e;) or die("e;You do not have permission to write to
"e;.$FORMї'path']."e;/config.php Make sure you CHMOD 666 config.php."e;);
fwrite($fh_config, $newconfig);
fclose($fh_config);
Via FTP you issue the same command but if you use an FTP program with a GUI like WS_FTP you right click the folder and choose CHMOD, then type 666 in the value field.
CHMOD is just the command for changing file permissions (i.e. read/write/execute)
-
See help/support of your webhosting company... (sometimes it's just your domainname, ftp.yourdomain.com or yourdomain.com, or some server address of the company userXY.companyname.com)
Warning: Cannot modify header information - headers already sent by (output started at /home/gaogier/public_html/topsites2/config.php:55) in /home/gaogier/public_html/topsites2/out.php on line 68
There must be at least 100 posts on this topic alone on this forum... look at lines above that one. If anything sends output back to the browser then the header can't be sent since headers come before page content.