Jump to content

PHP downloading instead of compliling


benjam

Recommended Posts

I have a user who is using a script I edit, and this user is having troubles with php files being downloaded instead of parsed and output to the browser screen.

 

I have opened the page in several browsers, so it is not a browser problem, but it is very odd because some files are parsed as normal, and then others are not.  And it's not file specific, meaning that at one moment one file parses fine and another gets downloaded, and then at another time, the problem is the reverse.

 

I have many other users who use this same script and have no problems with the page being downloaded, so it must be box specific, but I have no idea what might be causing this extremely odd error.

 

Any thoughts?

 

The site in question is: http://www.re-al-schule.de/webchess-new/webchess/

there is a user in the system with login info: test - test

 

And another site where the script works as it should:  http://www.iohelix.net/webchess/

there is also a user in this system with login info: test - test

 

the error occurs when a user tries to make a move, and again when the user tries to return to the menu page.

Link to comment
https://forums.phpfreaks.com/topic/53870-php-downloading-instead-of-compliling/
Share on other sites

Is the file chess.php, as i think you may have a infintive loop,

or a problem with the SQL server

 

Warning: fopen(./mysql.err) [function.fopen]: failed to open stream: Permission denied in /srv/www/web1/html/webchess-new/webchess/includes/mysql.class.php on line 630

 

Warning: fwrite(): supplied argument is not a valid stream resource in /srv/www/web1/html/webchess-new/webchess/includes/mysql.class.php on line 631

 

Warning: fclose(): supplied argument is not a valid stream resource in /srv/www/web1/html/webchess-new/webchess/includes/mysql.class.php on line 633

There was a database error. An email has been sent to the system administrator.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.