0

Does PHP 4.4.8 version support mysqli object-oriented style? I have made ready this project on PHP5 and when I got online hosting, I came to know that the online version is 4.4.8.

How can I make my mysqli project work on this domain?

ThiefMaster
  • 310,957
  • 84
  • 592
  • 636
Parag
  • 4,754
  • 9
  • 33
  • 50
  • 2
    There's only one solution: cancel your contract with that hosting provider **as soon as possible**. First of all, PHP4 is horribly outdated. Besides that, the most recent PHP4 version is 4.4.9 which fixed **security holes** - and it way released **three years ago**. So your hosting provider doesn't seem to care about security AND uses ancient versions. – ThiefMaster Jun 19 '11 at 08:44

2 Answers2

4

According to wikipedia, everything below PHP 5.2.17 (inclusively) is not supported any more (read: from PHP's point of view, it's history).

Thus you should urge your hosting company to upgrade. Use this argument. If they don't understand, they're not professional and you should change your hosting.

When you start using PHP 5.3, and if it's not too much effort, switch over to PDO.

Flavius
  • 13,566
  • 13
  • 80
  • 126
2

Try writing a mysqli-compliant wrapper around the mysql_* functions.
Either that, or refactor your project to either use mysql_* your own db library.

Flavius
  • 13,566
  • 13
  • 80
  • 126
dkruythoff
  • 361
  • 1
  • 3