content top

Get a UNIX timestamp using Javascript.

The Javascript Date object has a number of functions for working with dates and times. The getTime() method returns the millisecond representation of the Date object. In this tiny little post I going to show you how to convert Date object to UNIX timestamp. In php we mostly use timestamp representing date and I think this will help you whenever you need to deal with both time and date functionality. To convert the current date and time to a...

Read More

Get started with Zend Framework.

Get started with Zend Framework.

Hands on Zend Framework is about a year or so. But earlier of my career I was confused about Frameworks. I’ve started with CodeIgniter then Symfony and now Zend Framework (ZF). At this stage of my career I’ve now decided to go with ZF. I don’t wanna argue here about frameworks but CodeIgniter is fine for get started, ZF is like supershop where you can find anything for your cook and Symfony was a bit complex for me but it...

Read More

Get started with symfony1.4

Get started with symfony1.4

Symfony is a web application framework for PHP projects. It aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure. If you passion is coding and if you like MVC then symfony is the best choice for you. Don’t know how to start? Symfony has plenty of documentations. Practical symfony will guide you through the hole process of development. So...

Read More

Forgot root password of MySQL ?

Forgot root password of MySQL ?

Today I will show you how to modify the existing root password of MySQL, to be able to do it you must firstly be connected to it. If you already know the root password and just want to reinitialize it, you can skip this part. If you don’t have the root password then follow the steps below. It is possible to bypass the authentication process and to access MySQL. By the way I’m on a Linux PC and the command will work on Ubuntu...

Read More

42 Tips for optimizing PHP code

42 Tips for optimizing PHP code

1. If a method can be static, declare it static. Speed improvement is by a factor of 4. 2. 1 echo is faster than print. 3. Use echo’s multiple parameters instead of string concatenation. 4. Set the maxvalue for your for-loops before and not in the loop. 5. Unset your variables to free memory, especially large arrays. 6. Avoid magic like 1__get, __set, __autoload 7. 1require_once() is expensive 8. Use full paths in includes and...

Read More
content top
 
#CSS3 pattern collection http://t.co/Gzhh3SCm2 days ago