@MSJ
Ye, I have set it up to display errors according to the guide:
max_execution_time = 30
memory_limit = 128M
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
display_errors = On
log_errors = On
error_log = /var/log/php.log
register_globals = Off
and this is the very simple code I am running:
<?php
mysql_connect("localhost", "lol", "lol");
?>
On another server I get the message in the browser:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'lol'@'localhost' (using password: YES) in /var/www/web10/html/timtherobot/mysqlconnect.php on line 2
But the problem is I dont get that on my own webpage. It is like its not even trying to connect.
@Vance
Ye I got database and users etc.. But the problem is my, atleast I think, is that it does not execute the code, all I want it to say is the same error as mentioned above. Just to indicate that it at least trying to connect to mysql. But my browser just says "Server fail" (roughly translated)
I can retrieve from the error_log
PHP Fatal error: Call to undefined function mysql_connect() in /root/public/sqdejan.com/public/mysqlconnect.php on line 2
But I have installed php5_mysql on my server.
I am so lost
