FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » part 2 - file exists not working
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: part 2 - file exists not working [message #182898 is a reply to message #182894] Tue, 24 September 2013 19:10 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Tue, 24 Sep 2013 12:17:23 -0400, richard wrote:

> I will change when my host changes.
> As the host is responsible for maintaining the server side, I can't do a
> damn thing until they do.

Have you tested to see if mysqli is available on your host?

If it is, why are you not using it? mysqli is not something that your
hosting server will expect to announce the roll out of, indeed it's quite
possible that it's been on the server for several years already.

mysql is the internal php name for the old deprecated set of interface
functions to the mysql database.
mysqli is the internal php name for a similar but better set of interface
functions to the mysql database.

It is quite possible for both these sets of interface functions to be
installed in the same php build. Certainly this is the case in eg PHP
Version 5.3.10-1ubuntu3.8 on my server.

If you wait until your hosting provider upgrades to a php version that
obsoletes mysql, then all your php files that use mysql_* functions will
stop working until you rewrite them to use mysqli.

If you check now and discover that yes, your server does in fact also
support mysqli_* functions already, then you can start migrating your
code from mysql_* functions to mysqli_* functions now so that you won't
get caught out in a future upgrade.

Note that checking doesn't mean you look to see if the database has
changed from mysql to mysqli, because that's not what happens. Checking
means creating a page called something like sysinfo.php that contains the
following code:

<?php
phpinfo();

and then putting that page in your website, and then going to the url:

http://your_website_name_here/sysinfo.php

Then scroll down the output until you come to the mysqli section. The
presence of this section means that the mysqli interface modules are
installed in the servers php code.

Hostgator support PHP 5, so their PHP build includes mysqli_* functions.
The only thing stopping you using mysqli_* functions instead of mysql_*
functions is *YOU*!

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [urgent] need solution of Questions, in context of PHP5
Next Topic: Host recommendations (slightly OT)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 08:50:57 GMT 2024

Total time taken to generate the page: 0.03445 seconds