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
On Sat, Mar 14, 2009 at 13:41, Per Jessen p...@computer.org wrote:
Check if the mysqli extension has been loaded.
Also check this page:
http://us.php.net/manual/en/mysqli.connect.php
For some of the mirrors, trying to hit
http://php.net/mysqli_connect erroneously takes you to
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
news:gpgq8i$h5...@saturn.local.net...
Gary wrote:
I am recieving a fatal error trying
Gary wrote:
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.
Hi Gary
see what phpinfo() says - if the extension is loaded, it'll show up
there. To load the extension, add
Ok, I know how to access the php.ini for the local host, is this the same
file that would control the remote server? Or do I need to look for it on
my remote host?
Again, thanks for your help.
Per Jessen p...@computer.org wrote in message
news:gpgr6o$hc...@saturn.local.net...
Gary wrote:
Gary wrote:
Ok, I know how to access the php.ini for the local host, is this the
same file that would control the remote server? Or do I need to look
for it on my remote host?
The php.ini you need to look at is the one one the server where you're
running your PHP code. The remote host is
I had the code written the way you suggested, but changed it to the way the
hosting company suggested.
I am unclear. I have php 5.2.8.8 on my local machine, I also have MySQL
5.1.30 set up locally as well.
I am using godaddy.com as a host. I assumed that the php was running on the
host
Gary,
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
line.
After you enabled the mysqli extension on your host, you might change
2009/3/14 Jan G.B. ro0ot.w...@googlemail.com:
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.
forget that part - i didn't see that this var is only used in the
email,
Gary wrote:
I had the code written the way you suggested, but changed it to the
way the hosting company suggested.
I think your hosting company might be smoking something they shouldn't
be. Your way is the right one.
I am unclear. I have php 5.2.8.8 on my local machine, I also have
MySQL
Ok.. I have added
[MySQL]
;Gary, this is the code from the forum.
extension=mysqli.so
to the php.ini file on my machine, I saved the file. Is there anything else
I need to do?
Thanks again.
Per Jessen p...@computer.org wrote in message
news:gpgu1t$ho...@saturn.local.net...
Gary wrote:
Ok.. I have added
[MySQL]
;Gary, this is the code from the forum.
extension=mysqli.so
to the php.ini file on my machine, I saved the file. Is there anything else
I need to do?
Thanks again.
Per Jessen p...@computer.org wrote in message
news:gpgu1t$ho...@saturn.local.net...
Gary wrote:
Thanks again to everyone.
I have just checked the servers phpinfo, and turns out they are running PHP
Version 4.3.11 while I have verstion 5.2.8, could this change any of the
advice?
Jan G.B. ro0ot.w...@googlemail.com wrote in message
Gary wrote:
Thanks again to everyone.
I have just checked the servers phpinfo, and turns out they are running PHP
Version 4.3.11 while I have verstion 5.2.8, could this change any of the
advice?
Yes, the mysqli extension is only available for PHP5. Use the mysql_x()
functions or move to
On 3/14/2009 10:36 AM, Gary gwp...@ptd.net wrote:
Can anyone enlighted me as to what I am not doing correctly?
Hi Gary,
I am hosted using a basic cpanel interface ... There's a button = Remote
MySQL which brings up a page: Remote Database Access Hosts
And I put in my HOME IP and all works
15 matches
Mail list logo