All Entries Tagged With: "php"
Guide to MySQL database Engine.
Share I recently got a mail asking about MYSql database Engine. So i planned to put an article on it. Let’s put it in a simple way . Say for example your automobile runs on LPG, Petrol and Diesel and it would be pretty interesting if you can switch to different engines just by a [...]
Image Protection Code using PHP | HTML | Javascript
Share Hai All , I implemented image protection in one of my latest work. Its pretty simple and effective so i am sharing with you. Check out the demo and try the following :- 1. Try dragging the image to the Navigation Bar. 2. Right Click and Try viewing the image. 3. Take the source [...]
Rewrite .php extension with .html using .htaccess | URL rewriting using .htaccess.
Share I had to implement URL rewriting in my last project . After some browsing found that it can be implemented using .htaccess file . Ok fine . we can start from the basics of creating a .htaccess file . In windows one cannot create .htaccess file directly . You can either create a “htaccess” [...]
Thumbnail Creation using uploadify.php
Share Hello friends i came across a good jquery flash file up-loader here . Do use it its simple and powerful . The next main thing was generation of thumbnail using the same flash uploader after some homework found a solution for it . Do some simple updations in your existing code . 1. Create [...]
Pagination | Using Pager with Doctrine | sfDoctrinePager | Symfony | PHP | MVC Framework
Share As symfony is updated frequently i decided to update my skills too . I have been into many symfony project but the ORM used was Propel but the latest version supports Doctrine , so planned to do a project using doctrine . As i like yml than xml , wrote schema using in yml [...]
Symfony | Doctrine | Error | SQLSTATE[HY000]: General error: 1005 Can’t create table XXX.#sql-818 _1′ (errno: 121). Failing Query:” ALTER TABLE xxx ADD CONSTRAINT …. FOREIGN KEY (xyz) REFERENCES XXX(id) ON DELETE CASCADE”
Share Symfony is a web application framework written in PHP which follows the model-view-controller (MVC) paradigm . A symfony developer may use Object-Relational Mapping (ORM) – Propel or Doctrine . The earlier version of symfony supported propel and i was using it . But in updated versions symfony supported Doctrine and was forced to update [...]
Post on wordpress remotely with xmlrpc in PHP
Share Recently i have been working on some wordpress blogs that required frequent addition of post . Coding an automated post generator was not a big task but didn’t know how to post it using php . After a research found that we can post on wordpress remotely using xmlrpc . I am sharing you [...]
Google Map Integration using Javascript | PHP
Share Many of you would have wondered how we can integrate google maps to your web application . This tutorial would help you to do the same in a simple way using javascript and php . I am providing you a detailed description of Google Map Integration . Your First Map You need to get [...]
Credit Card Number Validation using PHP
Share I am sharing you a php function that would help you to validate credit card number . Its a ready made function thus can be used directly in any of your web projects . php function function is_valid_credit_card($s) { $s = strrev(preg_replace(‘/[^\d]/’,”,$s)); $sum = 0; for ($i = 0, $j = strlen($s); $i < [...]
Add Gravatar support to your web sites using PHP
Share Gravatar – An abbreviation for Globally Recognized Avatar – Its a service created by Tom Preston-Werner for providing globally unique avatars . Register your gravatar here . Many would have wondered how we can integrate Gravatar with web project . So i have written a php function that would solve your doubt . Implementing [...]






