Category Archives for PHP

Parse Emails Using IMAP

Recently I have worked on project where I had to parse incoming emails and find out who send it and depending on the message run certain DBMS tasks. PHP’s IMAP Functions are quite efficient. You can can retrive emails using … Continue reading

23. November 2012 by Zakir Hyder
Categories: PHP | Tags: , , | Comments

Customize CakePHP’s Error Messages With Component

CakePHP has wonderful way to show error messages after validating Form fields. It shows two types of error messages. One is at the top which says some thing liek this “User can not be saved. Please try again.”. another type … Continue reading

08. November 2012 by Zakir Hyder
Categories: CakePHP, Component | Tags: , , , , | Comments

Citrix’s GoToWebinar PHP Library

Update: My “Citrix GoToWebinar PHP Library” was considered notable by www.phpclasses.org Citrix’s GoToWebinar is revolutionary product for online marketing. It has wonderful email management system and custom tempting system for the front end. You can find out more about http://www.gotomeeting.com/fec/webinar. … Continue reading

03. November 2012 by Zakir Hyder
Categories: Library, PHP | Tags: , , , , | Comments

CakePHP Helper To Generate Two Different Link For Canvas APP And Web App Depending On signed_request

I am developing a Facebook App for Canvas and Web. When a user comes to canvas app all of the link of app will start with “https://apps.facebook.com/appname/” and when users comes web app all link start with the web url. … Continue reading

27. June 2012 by Zakir Hyder
Categories: CakePHP, Facebook | Tags: , , , , , , | Comments

Implementing MySql View in CakePHP For Typeahead Search

View works like a table, but it is not a table. It never exists; it is only a prepared SQL statement that is run when you reference the view name. A programmer can write VIEWs that limit the dataset both … Continue reading

23. March 2012 by Zakir Hyder
Categories: CakePHP, MySql, PHP, Web Development | Tags: , , , , , , , , | Comments

afterSave: A Great Callback Method for Soft Deleting Related Model Data( hasOne, hasMany, belongsTo)

Update: Here is model file to download Download Code I never like to “Hard Delete” data. Some one will make mistake deleting something. Then they will tell you retrive it. So “Soft Delete” can save you time telling you clients/boss … Continue reading

01. March 2012 by Zakir Hyder
Categories: CakePHP, PHP, Web Development | Tags: , , , , , , , | Comments

Add Your Own Validation in model On CakePHP

Update: Here is model file to download Download Code CakePHP has many validation rules that can make model data validation much easier. There are 26 core validation rules. You can see here. These 26 rules almost covers all the validation. … Continue reading

26. October 2011 by Zakir Hyder
Categories: CakePHP, Web Development | Tags: , , , , | Comments

← Older posts

Newer posts →