I use a script to access my mySql database (Apache/1.3.22 Server). It works OK if it is my documentroot (/var/www/html ) but if I store it to /var/www/cgi-bin it gives "500 Internal Server Error" and in log file it says "Premature end of script headers". Any ideas? Thanks in advange.
how do you access the database? trought another php file with require?? if so check the path of the file.
Most of the time, when I get this kind of error, it's because I forgot to closea certain PHP code with "}"