On Monday 09 June 2003 14:10, John Coggeshall wrote: Hello John,
> I was playing around with mysqli and was quite annoyed having to have > both the mysqli and mysql extensions installed in order to have my old > PHP4 scripts working under PHP5.. As one solution, I put together a > script[*] which basically emulates all of the old mysql_* functionality > using strictly mysqli_* functions in user space. I don't think it's a good idea, it's confusing people: a) when you need ext/mysql this solution doesn't work. b) you will have mixed calls mysql_ for the old functions, mysqli for the new functions. If you want to have mysql_ for all functions, you have to update it frequently when new functions of functionality comes out. c) you will run in several problems, when you have functions which became optional parameters in 4.1, cause you have to support optional parameter link also. >From my view this solution looks inconsistent. I think the best solution would be too add a documentation on how to migrate. For most scripts which work with a default link, this is done in a few seconds: $mysql = mysqli_connect("localhost", "foo", "bar"); then just change mysql_ to $mysql-> $mysql->query("USE foo"); Regards Georg -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php