you can check this by either creating a file containing this:
<?php phpinfo(); ?>
and putting it up on your webserver, then open in with your browser,
or you could look at the output of "php -i | less" on the command
After you enabled the mysqli extension on your host, you might change
mysqli_connect('$var', '$var2', ...); to
mysqli_connect($var, $var2, ...)
One side node.. you should apply addslashes() also to
$_SERVER['REMOTE_ADDR'), because an evil person could manipulate the
value of that variable to execute SQL-Injections.
2009/3/14 Gary <gwp...@ptd.net>:
> Thanks for your quick reply, but I do not know what that means... Where
> would I find this out and how would I accomplish this if it is not done?
> Thanks again.
> "Per Jessen" <p...@computer.org> wrote in message
> Gary wrote:
>> I am recieving a fatal error trying to connect to my server/mysql.
>> This is my first attempt at connecting to a remote server, have been
>> successful with localhost (apache). I had the variation of not putting
>> the hostname & others into a variable, but that did not work either.
>> I have also genericised the username and password for this post. Host
>> name is correct.
>> Can anyone enlighted me as to what I am not doing correctly?
>> Fatal error: Call to undefined function: mysqli_connect() in
> Check if the mysqli extension has been loaded.
> Per Jessen, Zürich (10.9°C)
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php