Month: December 2010

  • Write the text on image using GD Library

    What is the GD library? GD is an open source code library for the dynamic creation of images by programmers. GD is written in C, and “wrappers” are available for Perl, PHP and other languages. GD creates PNG, JPEG and GIF images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and…

  • How to find Server time in magento

    Many times developer gets the time problem during project development. Because he works on date function which provides by PHP but site works on different server which time is different from developer country. So for this case you can use magento time which priovides by Magento self. It Manage the server time. This line will…

  • How can I build variable at run time in PHP?

    Mostly time we need to create some variables at run time. because we do not want to write same line. For example you have an array like : $user_details = array( ‘name’ => ‘test1′, ’email’ => ‘test@example.com’, ‘phone_number’ => ‘1234567890’ ); and you want to make run time variable like : $name = ‘test1’; $email…

  • Translate english to hindi by google api

    Sometimes we need to develop a website with Hindi font. But main problem is how to insert content in Hindi in admin panel. so here is a solution by this admin can enter content in Hindi font. It will work like: When admin type any word like ‘welcm‘ and then type space it will automatically…