[PHP] Parse error: parse error, unexpected '='

2004-04-20 Thread Lasse Motroen
I have received some code and am trying to run it. However, I get the following error: *Parse error*: parse error, unexpected '=', expecting ')' It happens on this line when $args=array() is reached: function array_key_remove($args=array(), $keys=array(),$replacement=NULL) I have php-4.2.2-17

[PHP] mysql_connect

2004-04-20 Thread Lasse Motroen
Help again please. Im trying to connect to MySQL server, using the PHP function: mysql_connect('localhost', 'someuser', 'somePword'); I run it, and what I get is: *Fatal error*: Call to undefined function: mysql_connect() What do I have to do in order to make it work? Im using php-4.2.2-17.

[PHP] mysql_connect

2004-04-20 Thread Lasse Motroen
(I sent this message earlier but I got a message saying that it was not sent, if you did receive it, I appologize for sending it again) Help again please. Im trying to connect to MySQL server, using the PHP function: mysql_connect('localhost', 'someuser', 'somePword'); I run it, and what I get