My top 3 vital php classes

April 20, 2009 by willcodeforfun

I decided to share some php classes, I can’t imagine my work without.

  1. ezSQL. The author says:  “ezSQL is a class that makes it ridiculously easy to use mySQL, Oracle8, SQLite (PHP), within your PHP script”. So true.
  2. TemplatePower. TemplatePower offers you the ability to separate your PHP code and your (HTML) layoutfile. When you get used to it, you cant imagine coding without it.
  3. class.upload.php. Many php applications require image upload and manipulation – like user avatars, product images, gallerys and so on. This class makes uploading, converting or resizing images really simple.

How to import large MySQL dumps through the web server

January 5, 2009 by willcodeforfun

Recently I had hard time trying to import large MySQL dump into database without direct access. The largest table was taking more than 70 MB, so it was impossible to load it trough phpMyAdmin’s Web interface in one peace. I did some search on Google and come across really great tool called BigDump by Alexey Ozerov. With this tool you can upload database dump trough FTP and the script will easily peace by peace insert it into database despite huge amount of data and high server loads.

BigDump in action

BigDump in action

I wish there were more so simple yet powerful tools.