Does php 4.4.8 support mysqli (object-oriented style)? - mysqli

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?

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.

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

Related

Intall php5.2 on WHM 58 Cpanel EasyApache 4

I needs to install php5.2 version on my server. Right now php 5.4 is the oldest version installed. Since 2 days. I searched a lot over google but didn't find appropriate guidance yet. Tried a lot of tutorials no works at all. Any suggestion or guidance will be appreciated. thanks
I don't think there is any proper or easy way to revert to php-5.2.x from php-5.4.x; at least not using WHM interface or as an automatic process. Even if you have EasyApache3 you will not be able to downgrade from php-5.4.x to php-5.2.x
Your only option might be CloudLinux which comes with a php selector which allows you to select any php version from php-5.1.x to php-7.x.
You must know that Cloudlinux is not free and the license is around $10/month. They offer a 15 day trial so if you do all the necessary setting within that period you can just use it as much as you want. You won't be able to update it though and some of the functionality might not work as expected after the trial ends.
The PHP versions that you have mentioned are completely outdated and using them would be risky. Cpanel is never going to support it with their newer version. So your best deal would be to update your application/website to latest PHP and host with the latest PHP only

Does DotNetNuke 6 support Ajax Control Toolkit?

Does anybody have successfully working module in DNN 6 with the Ajax Control Toolkit?
My modules stopped working when we migrated from DNN 5.x to to 6.x.
Modules compile without errors but I am getting client side script error:
'AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll'
Seems like this is conflict with Telerik's controls, according to information that I have found. But I didn't find any info how to fix it.
You should be able to use older versions of the ASP.NET AJAX Control Toolkit, but once they start requiring the ToolkitScriptManager, you're out of luck with DNN (though you'll be out of luck with any version of DNN, since there's not a way to override the type of ScriptManager it uses.
Starting with DNN 6, they use Telerik's RadScriptManager. Previously, you could modify the core code to switch out for the ToolkitScriptManager, but now switching out might cause other issues.
It could work together, but you'll need do some modifications to the core of DNN.
Here the list of things to do:
Check that you're using latest version of .Net 4.0 binaries of AjaxControlToolkit (I was able to let it work for DNN 6.0.1 with Telerik 2011.01.519 and ACT September 2011 v4.1.50927)
Check that in your web.config you have assembly binding redirects for System.Web.Extensions and System.Web.Extensions.Design to the version 4.0
Take DNN source package, find Library\Framework\AJAX.cs, locate method AddScriptManager, instantiation of RadScriptManager in it, for the version 6.0.1 look into line 54. Add one more property initializer:
EnableScriptCombine = false. Compile it (in Release configuration, of course), take DotNetNuke.dll and drop into your DNN installation.
You should be done.
Credits goes to Telerik support, despite it's stated there that it should work out of the box starting from 2010.1.625. Not sure, did I get them wrong, or they just reintroduced this bug.
P.S. DNN support promises to release version 6.1.0 in November with updated Telerik controls, which should fix this issue, at least on their opinion.
Just checked with nuke 6.1 and the last version of jaxcontroltoolkit - still the same error.
It looks like it's not supported anymore. Sad:(

How can I use MySQL 5.x with PHP 4.x?

I am requested to support a legacy system. I needed to install PHP4 on my computer for that and also MySQL 4.x. I couldn't find a MySQL 4.x version that installs on my computer so I thought I'd upgrade the system to MySQL 5.x. The problem is, PHP4 does not seem to work with MySQL 5.x.
I've read somewhere that something called mysqli is needed in PHP for it to be able to work with MySQL 5.x. I just couldn't quite understand whether it's something that is included in PHP5 or something I can add to PHP4.
If it's something I can add to PHP4, how?
Thanks.
PHP4 should work mostly fine with MySQL 5. Note I'm just talking from experience, sometimes it seems the technical stuff I read on the official MySQL and PHP sites have conflicted with what I observe. For what I've done, the only thing I really needed to worry about for compatibility between the two is authentication. Make sure the MySQL account you're trying to connect with from PHP4 uses the old password encoding. You can see this yourself in the mySQL user table. I can't remember the exact numbers but passwords stored under the old format are around 16 characters hashed whereas under the new format they are significantly longer.
More info here:
http://dev.mysql.com/doc/refman/5.5/en/old-client.html

Reverse Engineer to get UML with PostgreSQL

Are there are any tools available for use with Postgres so that I can generate UML for the database that I have already created.
Visual Paradigm has some nice products, check http://www.visual-paradigm.com/ Most of their products work on Linux, OS X and Windows.
You can adapt this script for MySQL
http://askuml.com/blog/list-all-fields-of-all-mysql-db-tables-in-yuml-class-diagrams/
by just changing the driver from Mysql to Postgress found here http://softinnov.org/rebol/pgsql.shtml
This is a sample reverse enginiering for Wordpress DB:
ppstgres_autodoc is the standard open source tool. http://www.rbt.ca/autodoc/
I have used SQL Power Architect which has a free version to do most of the tasks you need with reverse engineering and stuff like that. I found it to be easy to use and simple.

Are there any other good graphical administration tools for SQLite on the mac, instead of the Firefox Extension?

Are there any other good graphical administration tools for SQLlite on the mac, instead of the Firefox Extension?
I use this SQLite Database Browser it works fine, is lightweight and free (as in beer). And no complaints about it at all, however its not actively maintained anymore, which is a pity. But the code is free (as in speech) and it also can be used on Windows and Linux.
Take a look here: http://www.sqlite.org/cvstrac/wiki?p=ManagementTools
Base
SQLiteStudio
SQLiteManager
SyBrowser
If you are familiar with Java and JDBC setups you could use Squirrel SQL together with a SQLite JDBC Driver E.g.
I've used Squirrel for a while now and its pretty good.