Archive for May, 2010

 

jQuery synchronous Ajax request

Doing asynchronous Ajax request in jQuery is easy and can be achieved using the code posted below.
Synchronous request are a bit different. Why would you want to make such request? Because your code will wait for the result before executing rest of your code which can be very useful in some situations.

How to reset admin password in Magento, Wordpress, Joomla…?

Getting admin password is a complicated task, because different websites use different hashing algorithms.
So- here’s a nice application which does the trick- it allows you to generate new admin password for websites powered by: Mantis, Joomla, Wordpress, Mambo, vBulletin, Typo3, phpBB, Drupal, Prestashop or Magento.

PHP class: Fast duplicate finder

This class can be used to quickly find file duplicates. It can scan subdirectories recursively and is only comparing files with the same size, which makes it really fast.

PHP Error: Fatal error: Unable to read X bytes in Y.php on line 0

“Fatal error: Unable to read X bytes in Y.php on line 0″ is an error I got once after moving a site to another server. The file was encoded with Zend Optimizer so I could not check what is happening on line 0 that could make any problems.

What SQL queries PHP scripts execute (without looking in the code)?

Sometimes I need to check what SQL queries is PHP script executing, but when code is quite complex (or encoded with Zend Guard or IonCube) it is extremely hard or even impossible to get this information from php files.
So- here’s a nice solution for this problem. It will log all the SQL queries send to the MySQL server in a MySQL table.

Wordpress error: File not readable.

A few days ago I tried to create a new Wordpress theme based on Kubrick theme. So I made a copy of the themes/default directory and did some changes. Then I tried to enable this theme in Wordpress and I got this error: “File not readable” next to my new theme’s CSS file.

 
TopOfBlogs Web Development & Design Blogs