<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-29509873</id><updated>2011-11-27T16:54:03.063-08:00</updated><category term='php5'/><category term='php security'/><category term='apache'/><category term='phptek'/><category term='debug'/><category term='design patterns'/><category term='mysql'/><category term='php'/><category term='security'/><category term='firefox addons'/><category term='Zend Framework'/><category term='web3.0'/><category term='Sybase'/><category term='Caching'/><category term='curl'/><category term='IIS'/><category term='links'/><category term='coding standard'/><category term='strategy pattern'/><category term='php5.3'/><category term='firefox'/><category term='Algorithm'/><category term='SEO'/><category term='web2.0'/><category term='optimization'/><category term='web scrapting'/><category term='https'/><category term='load testing'/><category term='Facebook application'/><category term='pear'/><category term='xss'/><category term='benchmarking'/><category term='php international conference'/><category term='architecture'/><category term='wamp'/><category term='php compiler'/><category term='PHAR'/><title type='text'>&lt;?Ansar's Blog</title><subtitle type='html'>php, ajax, mysql, javascript, javascripts, linux, apache, lamp, html, dhtml, xml, xhtml, SEO,
web2.0, optimization, useful links, PHP tips, Mysql tips, Apache, .htaccess, benchmarking</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>82</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-29509873.post-4679155715990526347</id><published>2010-04-25T00:39:00.000-07:00</published><updated>2010-04-25T00:40:24.934-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Get duplicates values from values table</title><summary type='text'>Create tableCREATE TABLE IF NOT EXISTS `emp1` (`first_name` varchar(20) NOT NULL,`last_name` varchar(20) NOT NULL)InsertionINSERT INTO `emp1` (`first_name`, `last_name`) VALUES (‘roy’, ‘raj’), (‘joy’, ‘josh’);SELECT `first_name`FROM emp1GROUP BY `first_name`HAVING COUNT(*) = NChange the HAVING condition to &gt;=2It outputs roy and joy are duplicates having more then one record wirh same value.Change</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4679155715990526347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4679155715990526347&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4679155715990526347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4679155715990526347'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2010/04/get-duplicates-values-from-values-table.html' title='Get duplicates values from values table'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-662487280234595776</id><published>2010-04-25T00:34:00.000-07:00</published><updated>2010-04-25T00:39:29.201-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>INSERT IGNORE</title><summary type='text'>Create tableCREATE TABLE IF NOT EXISTS `emp` (`first_name` varchar(20) NOT NULL,`last_name` varchar(20) NOT NULL,PRIMARY KEY (`last_name`))InsertionINSERT INTO `emp` (`first_name`, `last_name`) VALUES (‘roy’, ‘raj’), (‘joy’, ‘josh’);Useful QueriesINSERT IGNOREIf a record doesn’t have duplicate date then MySql inserts usual.If a record have duplicate data, the IGNORE keyword instructs MySql to </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/662487280234595776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=662487280234595776&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/662487280234595776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/662487280234595776'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2010/04/insert-ignore.html' title='INSERT IGNORE'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2757977404449456884</id><published>2009-10-05T01:09:00.000-07:00</published><updated>2009-10-05T01:17:16.295-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Sitepoint's twitaway experience for choosing right MySQL engine</title><summary type='text'>Hi All,Posting after a two month break sorry busy with new addition to our family my daughter(Manha). Here we go:There is an interesting article about the experience Sitepoint developers had with twitaway application while distributing Free PDF who followed them. How they found the importance of choosing right MYSQL engine is how important :) please go through the full article for more details.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2757977404449456884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2757977404449456884&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2757977404449456884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2757977404449456884'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/10/sitepoints-twitaway-experience-for.html' title='Sitepoint&apos;s twitaway experience for choosing right MySQL engine'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8049172193053692037</id><published>2009-07-22T07:07:00.000-07:00</published><updated>2009-07-22T07:13:35.255-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>INSERT ON DUPLICATE KEY UPDATE and REPLACE INTO</title><summary type='text'>While reading and article came across one of powerful feature REPLACE INTO,I had used INSERT ON DUPLICATE KEY UPDATE but never used REPLACE INTO.REPLACE works in a way that if the ID column(Primary Column) doesn't have the given value it will create a new entry in the table, however, IF the value exists already then it updates the existing entry in the table.REPLACE INTO sessions VALUES ('$id', '</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/8049172193053692037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=8049172193053692037&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8049172193053692037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8049172193053692037'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/07/insert-on-duplicate-key-update-and.html' title='INSERT ON DUPLICATE KEY UPDATE and REPLACE INTO'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-469592562210561975</id><published>2009-07-19T23:59:00.000-07:00</published><updated>2009-07-20T00:04:56.188-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP: exceptions vs errors?</title><summary type='text'>Was just reading twitts got the nice link about the exceptions handling the post basically explains about handling errors in PHP nice one check out the code how the fatal error are handled and customize message is displayed for user. I have not tested the code but looks ok :) . Click for post here</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/469592562210561975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=469592562210561975&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/469592562210561975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/469592562210561975'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/07/php-exceptions-vs-errors.html' title='PHP: exceptions vs errors?'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-5646729044235720183</id><published>2009-07-15T02:56:00.001-07:00</published><updated>2009-07-15T03:15:23.520-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Debug message in PHP?</title><summary type='text'>I am using PHP from past 4 year and used to debug my code using die and echo statement and will log the debug message in file if running backend job(Cron) while using PHP 4 and then we started using Zend Framework and use Zend_log. But for those who won't use Zend Framework here is the function which will be useful in debug debug_backtrace  this function is available from PHP4 didn't know i just </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/5646729044235720183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=5646729044235720183&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5646729044235720183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5646729044235720183'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/07/debug-message-in-php.html' title='Debug message in PHP?'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4464143177581601503</id><published>2009-07-13T23:46:00.000-07:00</published><updated>2009-07-13T23:50:40.084-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php5.3'/><title type='text'>What's new in PHP V5.3?</title><summary type='text'>IBM's "What's new in PHP V5.3" series covers new and exciting features in PHP V5.3.PART 1: Changes to the object interfacePART 2: Closures and lambda functionsPART 3: NamespacesPART 4: Creating and using Phar archives</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4464143177581601503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4464143177581601503&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4464143177581601503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4464143177581601503'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/07/whats-new-in-php-v53.html' title='What&apos;s new in PHP V5.3?'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4826072711354776816</id><published>2009-07-06T12:19:00.001-07:00</published><updated>2009-07-06T12:23:18.004-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wamp'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Install PHP 5.3 on WAMP Server</title><summary type='text'>Just installed PHP 5.3.0 on WAMP, Nice addon facility in WAMP now can switch between 5.2.x and 5.3.0. It was so simple that even a person with little knowledge can do it.First install WAMP.Then download version of php you want and install from here.Done.Now go to the wamp server icon in tray and switch to the version you want :)</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4826072711354776816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4826072711354776816&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4826072711354776816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4826072711354776816'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/07/install-php-53-on-wamp-server.html' title='Install PHP 5.3 on WAMP Server'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-113564513535382959</id><published>2009-07-06T03:14:00.000-07:00</published><updated>2009-07-06T03:18:51.342-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php security'/><category scheme='http://www.blogger.com/atom/ns#' term='xss'/><title type='text'>PHP Security</title><summary type='text'>Good article written by Joel Reyes about PHP Security, Author has explained some of the security holes we have to take care also given link for security tool download. Go through the article worth reading.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/113564513535382959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=113564513535382959&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/113564513535382959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/113564513535382959'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/07/php-security.html' title='PHP Security'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7390357353587737093</id><published>2009-06-11T00:52:00.000-07:00</published><updated>2009-06-11T01:03:08.931-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><title type='text'>Keywords in the URL</title><summary type='text'>Reading the post 8 Tips to Get Domain Diversity came across important tips about keywords in the url. As most of us uses tinyurl or bit.ly for making our long url to short url we forget the feature tinyurl and bit.ly provide "Optional custom name/alias" this is important for SEO.E.g., for the page http://ansarahmed.blogspot.com/2009/06/fingerprinting-to-dynamically-enable.html, you should </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7390357353587737093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7390357353587737093&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7390357353587737093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7390357353587737093'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/06/keywords-in-url.html' title='Keywords in the URL'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-6317562008964933046</id><published>2009-06-09T03:43:00.000-07:00</published><updated>2009-06-09T03:53:02.002-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='Caching'/><title type='text'>Fingerprinting to dynamically enable caching/ Caching dynamic content</title><summary type='text'>While reading the caching tutorial from google came across with the section about using fingerprinting concept for caching content which changes regularly. Below is the explanation from google team."For resources that change occasionally, you can have the browser cache the resource until it changes on the server, at which point the server tells the browser that a new version is available. You </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/6317562008964933046/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=6317562008964933046&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6317562008964933046'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6317562008964933046'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/06/fingerprinting-to-dynamically-enable.html' title='Fingerprinting to dynamically enable caching/ Caching dynamic content'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-1665618847201381264</id><published>2009-06-05T03:56:00.000-07:00</published><updated>2009-06-05T04:04:55.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='coding standard'/><title type='text'>Coding Standard</title><summary type='text'>While going through the post from Lukas Kahwe Smith on coding standard came across the link for coding standard of various other project and framework.Horde ProjectPEARZend FrameworkPHP Team</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/1665618847201381264/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=1665618847201381264&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1665618847201381264'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1665618847201381264'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/06/coding-standard.html' title='Coding Standard'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8402426575186781254</id><published>2009-06-02T02:08:00.000-07:00</published><updated>2009-06-02T02:22:50.485-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='benchmarking'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='optimization'/><title type='text'>include_path in php</title><summary type='text'>I was just going through the post of Sam Hennessy about Zend Framework Location, I found a section which really surprised me about the include_path(performance). I know that what include_path is and how to modify it, i remember we used .htaccess way to change the include path in my previous organization, but didn't know about the performance effect if we didn't use it correctly, ok my old pal </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/8402426575186781254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=8402426575186781254&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8402426575186781254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8402426575186781254'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/06/includepath-in-php.html' title='include_path in php'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-1654894850624166728</id><published>2009-05-30T11:31:00.000-07:00</published><updated>2009-05-30T11:35:18.843-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Zend Framework'/><title type='text'>Built in Breadcrumb in Zend Framework</title><summary type='text'>Wenbert Del Rosario has posted a tutorial explaining how to use build in breadcrumb(Zend_navigation) facility in zend framework.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/1654894850624166728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=1654894850624166728&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1654894850624166728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1654894850624166728'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/built-in-breadcrumb-in-zend-framework.html' title='Built in Breadcrumb in Zend Framework'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-685704079319360673</id><published>2009-05-29T13:01:00.000-07:00</published><updated>2009-05-29T13:09:32.249-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><category scheme='http://www.blogger.com/atom/ns#' term='https'/><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Managing Secure Protocol in Apache-Based Websites using PHP</title><summary type='text'>In this post author explain of https protocol, how to effectively manage it, he is helping you to have good rank from google. Nice, see about use of rel="canonical" tag. He helps how to avoid your content being duplicated by googlebot as it will index your both http and https version of your website which will cause you to loss the page rank more details.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/685704079319360673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=685704079319360673&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/685704079319360673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/685704079319360673'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/managing-secure-protocol-in-apache.html' title='Managing Secure Protocol in Apache-Based Websites using PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-723675600804446197</id><published>2009-05-29T11:49:00.000-07:00</published><updated>2009-05-29T11:51:36.834-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='strategy pattern'/><category scheme='http://www.blogger.com/atom/ns#' term='design patterns'/><category scheme='http://www.blogger.com/atom/ns#' term='php5'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Strategy pattern  in PHP</title><summary type='text'>Very nice post explaning strategy pattern, i don't have much idea about it, But reading the post i liked it. Also see the way he has used interface in php.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/723675600804446197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=723675600804446197&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/723675600804446197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/723675600804446197'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/strategy-pattern-in-php.html' title='Strategy pattern  in PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7036537489232875262</id><published>2009-05-27T11:31:00.000-07:00</published><updated>2009-05-28T11:18:12.749-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php international conference'/><title type='text'>Slides from international php conference(IPC) 2009</title><summary type='text'>Will update the list as i get more.IPC09 - Why Architecture in Web Development matters by Lars JankowfskyEvil WebDAV, XML and XPath at IPC SE 2009 by Tobias Schlitt</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7036537489232875262/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7036537489232875262&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7036537489232875262'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7036537489232875262'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/slides-for-international-php.html' title='Slides from international php conference(IPC) 2009'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-5718082992279274376</id><published>2009-05-27T11:06:00.000-07:00</published><updated>2009-05-27T11:10:04.916-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php compiler'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP Compiler Internals</title><summary type='text'>Sebastian Bergmann explaining about php internal in the slides he goes in depth how the php code is compiled by zend engine and other step, if wanted to know how internally php code is worked on take a look at his slides</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/5718082992279274376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=5718082992279274376&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5718082992279274376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5718082992279274376'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/php-compiler-internals.html' title='PHP Compiler Internals'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3533964433427402440</id><published>2009-05-25T11:50:00.000-07:00</published><updated>2009-05-27T11:10:43.040-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phptek'/><title type='text'>Slides for php|tek talk 09</title><summary type='text'>Below are few slides i got will update if found more:Ben Ramsey as he takes you on a journey through RFC 2616 to discover some of the gems of HTTP Linux-Fu for PHP Developers by Lorna Mitchell“No Really, It’s All About You” by Chris CornuttGetting IT Done by Wez FurlongVideo Interviews at php|tek 2009</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3533964433427402440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3533964433427402440&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3533964433427402440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3533964433427402440'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/slides-for-phptek-talk.html' title='Slides for php|tek talk 09'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2906135526145132000</id><published>2009-05-15T11:40:00.000-07:00</published><updated>2009-05-15T11:44:19.405-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Facebook application'/><title type='text'>Build a Facebook application with Zend Framework</title><summary type='text'>Thanks Madarco, Nice post i faced lot of problem while developing facebook application earlier in my previous company. This tutorial is really nice for new bies who wants to develop facebook application.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2906135526145132000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2906135526145132000&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2906135526145132000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2906135526145132000'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/build-facebook-application-with-zend.html' title='Build a Facebook application with Zend Framework'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-5019739711557653854</id><published>2009-05-14T23:27:00.000-07:00</published><updated>2009-05-15T11:40:23.494-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web3.0'/><category scheme='http://www.blogger.com/atom/ns#' term='web2.0'/><title type='text'>Web Evolution</title><summary type='text'>Picked this slide from Michael Sutton(VP, Security Research, Zscaler) presentation. Very nice explaining briefly about web evolution Web 1.0 to Web 3.0.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/5019739711557653854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=5019739711557653854&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5019739711557653854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5019739711557653854'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/web-evolution.html' title='Web Evolution'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_3TEs6cecdV4/Sg0MEdg95wI/AAAAAAAAAX8/lT5_vz-7GLU/s72-c/web_evol.GIF' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-1302182379730402636</id><published>2009-05-14T07:43:00.000-07:00</published><updated>2009-05-14T07:53:00.030-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><title type='text'>URL Rewrite Module in IIS</title><summary type='text'>When i was giving TecHTalk in my previous company on .htaccess,SEO were i explaned about url rewriting(Short URL/Search Engine Friendly URL), one of miscosoft team member asked me is there a apache like mod_rewrite module for IIS. Today while reading blog in reader came across this and posting this for all IIS lovers here is a IIS URL rewrite module.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/1302182379730402636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=1302182379730402636&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1302182379730402636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1302182379730402636'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/url-rewrite-module-in-iis.html' title='URL Rewrite Module in IIS'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-1893681064646380121</id><published>2009-05-13T04:58:00.000-07:00</published><updated>2009-05-13T05:10:39.036-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><category scheme='http://www.blogger.com/atom/ns#' term='debug'/><category scheme='http://www.blogger.com/atom/ns#' term='firefox addons'/><title type='text'>How To Debug Web Applications With Firefox</title><summary type='text'>I used firefox plugin like web developer, live http header earlier now i love httpfox and colorzilla for debugging and used it lot of time, all this are my favorite can't leave without it. I found this interesting post which will explain you the short cut and example with more details how to debug the web application with firefox.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/1893681064646380121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=1893681064646380121&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1893681064646380121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/1893681064646380121'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/how-to-debug-web-applications-with.html' title='How To Debug Web Applications With Firefox'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7816740794155728179</id><published>2009-05-12T06:05:00.000-07:00</published><updated>2009-05-12T06:28:02.431-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>MySQL PROCEDURE ANALYSE</title><summary type='text'>It examines the result from a query and returns an analysis of the results that suggests optimal data types for each column. To obtain this analysis, append PROCEDURE ANALYSE to the end of a SELECT statement.For Example: SELECT col1, col2 FROM table1 PROCEDURE ANALYSE();SELECT * FROM table1 PROCEDURE ANALYSE();Quite common task during schema review is to find the optimal data type for the column </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7816740794155728179/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7816740794155728179&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7816740794155728179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7816740794155728179'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/mysql-procedure-analyse.html' title='MySQL PROCEDURE ANALYSE'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-9209542546555956082</id><published>2009-05-12T05:15:00.000-07:00</published><updated>2009-05-12T06:16:15.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='pear'/><title type='text'>Search &amp; replace in files using php</title><summary type='text'>Very nice post from Sameer, in his blog code-diesel explaining how to search and replace in file using PEAR library File_SearchReplace. Below are link explaining how to install PEAR.Install PEAR on WindowsInstall PEAR on LINUXRead more about File_SearchReplace with example here</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/9209542546555956082/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=9209542546555956082&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/9209542546555956082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/9209542546555956082'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/search-replace-in-files-using-php.html' title='Search &amp; replace in files using php'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-519279807574641292</id><published>2009-05-08T04:56:00.000-07:00</published><updated>2009-05-08T06:33:55.793-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP 5.3 upgrading notes</title><summary type='text'>Hi all upgrading to php 5.3 just go through the php 5.3 upgrading notes on wiki.php.net, lots of changes done, lots of new classes,method also function added and extension added and removed. List of upgrading notes is huge go through it. Below are few quick notes:Reserved word: GOTO,NAMESPACE,CLOSURE are now reserved word in PHP, Make correction to your programs or else php will trow Fatal Error </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/519279807574641292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=519279807574641292&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/519279807574641292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/519279807574641292'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/php-53-upgrading-notes.html' title='PHP 5.3 upgrading notes'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-211746355361359133</id><published>2009-05-05T07:55:00.000-07:00</published><updated>2009-05-05T07:58:32.996-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SEO'/><title type='text'>Submitting Sitemaps using robots.txt</title><summary type='text'>What are Sitemaps?Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling. In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/211746355361359133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=211746355361359133&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/211746355361359133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/211746355361359133'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/submitting-sitemaps-using-robotstxt.html' title='Submitting Sitemaps using robots.txt'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8052793413644790195</id><published>2009-05-05T07:39:00.000-07:00</published><updated>2009-05-05T07:42:36.657-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Read file in php</title><summary type='text'>Really nice post with example explaining how we can read large size file using php.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/8052793413644790195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=8052793413644790195&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8052793413644790195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8052793413644790195'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/read-file-in-php.html' title='Read file in php'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-9039092238014881332</id><published>2009-05-05T07:05:00.000-07:00</published><updated>2009-05-05T07:08:58.765-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='curl'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Retrieving original url from short url using PHP and CURL</title><summary type='text'>Good post explaining how to get back original url from short url. expanding short url to original url using PHP and CURL</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/9039092238014881332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=9039092238014881332&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/9039092238014881332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/9039092238014881332'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/retrieving-original-url-from-short-url.html' title='Retrieving original url from short url using PHP and CURL'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-5246598537253042732</id><published>2009-05-04T06:55:00.000-07:00</published><updated>2009-05-04T06:56:27.500-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Algorithm'/><title type='text'>Luhn algorithm for validating credit cards</title><summary type='text'>The Luhn algorithm also known as the “modulus 10″ or “mod 10″ algorithm, is a checksum formula which can be used to validate credit card numbers. Developed in the 1950’s by IBM scientist Hans Peter Luhn and described in U.S. Patent 2,950,048. A PHP implementation is shown below.&lt;?php function LuhnCheck($strDigits){    $sum = 0;    $alt = false;    for($i = strlen($strDigits) - 1; $i &gt;= 0; $i--)</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/5246598537253042732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=5246598537253042732&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5246598537253042732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5246598537253042732'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/luhn-algorithm-for-validating-credit.html' title='Luhn algorithm for validating credit cards'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-870881262442535099</id><published>2009-05-04T06:42:00.000-07:00</published><updated>2009-05-04T07:07:10.166-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='web scrapting'/><title type='text'>Web scraping tutorial</title><summary type='text'>Web scraping (or Web harvesting, Web data extraction) is a computer software technique of extracting information from websites. I got a freelance work to extract all the hotel information in UK of some city from yellow pages, I wrote a simple php script which uses curl to get the data and parse it using regular expression and extract the require data and populate db, sorry was not aware probably </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/870881262442535099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=870881262442535099&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/870881262442535099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/870881262442535099'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/web-scraping-tutorial.html' title='Web scraping tutorial'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3489803400052981574</id><published>2009-05-04T05:59:00.000-07:00</published><updated>2009-05-04T07:07:39.929-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='coding standard'/><title type='text'>Checking coding standards with PHP_Codesniffer</title><summary type='text'>PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP and JavaScript code to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.I was really behind this in my previous company, i want to make sure everyone follows the coding </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3489803400052981574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3489803400052981574&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3489803400052981574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3489803400052981574'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/checking-coding-standards-with.html' title='Checking coding standards with PHP_Codesniffer'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2582289806279587309</id><published>2009-05-04T05:05:00.000-07:00</published><updated>2009-05-04T07:06:47.721-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='benchmarking'/><category scheme='http://www.blogger.com/atom/ns#' term='load testing'/><title type='text'>Load testing</title><summary type='text'>http_load is a simple load testing tool.http_load is a useful HTTP benchmarking utility that lets you run multiple http fetches in parallel to test the throughput of your web server. It gives you a rough idea of how many bytes a server can serve in a predetermined time. Detailed information with example and download link can be found here.Note: I didn't test it.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2582289806279587309/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2582289806279587309&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2582289806279587309'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2582289806279587309'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/05/load-testing.html' title='Load testing'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7733364532526865523</id><published>2009-04-28T06:39:00.000-07:00</published><updated>2009-04-28T07:36:05.573-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PHAR'/><category scheme='http://www.blogger.com/atom/ns#' term='architecture'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP 5.3 features</title><summary type='text'>I was just going through the interview of Lukas Kahwe Smith(Release manager php.net), He was explaining the key features we need to look out in PHP 5.3. In all the feature i am keen to use the feature lambda functions and closures and also PHAR. About lambda function and closure i have already posted. In this post lets look at PHAR, In the interview Lukas didn't explain in depth about it just </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7733364532526865523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7733364532526865523&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7733364532526865523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7733364532526865523'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/php-53-features.html' title='PHP 5.3 features'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-811102864747901374</id><published>2009-04-27T01:07:00.000-07:00</published><updated>2009-04-27T01:13:02.448-07:00</updated><title type='text'>Where is the include coming from?</title><summary type='text'>This is the post if you are interested to know how the flow of code is which file is included from were, here is a post with example of few of framework. I like it interesting post :)Here a link.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/811102864747901374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=811102864747901374&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/811102864747901374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/811102864747901374'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/where-is-include-coming-from.html' title='Where is the include coming from?'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3446824846215198135</id><published>2009-04-23T23:49:00.000-07:00</published><updated>2009-04-24T02:10:26.727-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='security'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>How to improve PHP session security</title><summary type='text'>Nice article about session security, I never tried any of session hacking technique but its true as session id is stored in cookies and cookies are stored in user side and also it is passed to server directly anyone in between can sniff or hijack it :)Go through the article how to protect it.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3446824846215198135/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3446824846215198135&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3446824846215198135'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3446824846215198135'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/how-to-improve-php-session-security.html' title='How to improve PHP session security'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3549443066335584681</id><published>2009-04-22T05:46:00.000-07:00</published><updated>2009-04-22T07:13:55.416-07:00</updated><title type='text'>Useful links</title><summary type='text'>Miscellaneous listi) 5 cool things you can do with windows and phpii) 5 great code highlighting plugins for wordpressiii) 5 sins of PHPiv) 5 great firefox extensions for twitterv) Top 5 firefox extensions (for web developers)vi) 5 ways to optimize mysql insertsvii) 10 tips for optimizing mysql queriesviii) 5 ways to get more twitter followersix) 5 things ie8 got rightx) 5 ways to speedup </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3549443066335584681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3549443066335584681&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3549443066335584681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3549443066335584681'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/useful-links.html' title='Useful links'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4312314612700189255</id><published>2009-04-21T02:27:00.000-07:00</published><updated>2009-04-22T07:01:54.816-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Embedding PHP In CSS</title><summary type='text'>Very interesting tutorial just check it out Embedding PHP In CSS</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4312314612700189255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4312314612700189255&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4312314612700189255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4312314612700189255'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/embedding-php-in-css.html' title='Embedding PHP In CSS'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7480968695420473805</id><published>2009-04-21T02:06:00.000-07:00</published><updated>2009-05-04T05:02:44.384-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='links'/><title type='text'>Useful PHP links</title><summary type='text'>This list will be growing, please comment or send me a mail to add more link :)i) Useful PHP Classes and Componentsii) Open-source PHP applicationsiii) How to Install PHP on Windowsiv) A-Z PHPv) Useful PHP + jQuery Components &amp; Tuts for Everyday Projectvi) The ABC's of PHPvii) Top 5 php template enginesviii) 10 Advanced PHP Tips To Improve Your Programmingix) 6 books to master PHP</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7480968695420473805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7480968695420473805&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7480968695420473805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7480968695420473805'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/useful-php-links.html' title='Useful PHP links'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-6764648236325789582</id><published>2009-04-21T01:54:00.000-07:00</published><updated>2009-04-22T07:04:23.640-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sybase'/><title type='text'>Auto Increment in Sybase</title><summary type='text'>I had to use auto increment column in Sybase, I found we can use column as identity for it. Then I had a problem as I wanted to know last inserted value or id but I didn’t get answer today I was browsing to find how we can do so I found we can do it using Sybase global variable @@identity. Example:An easy way to insert a row into salesdetail after inserting a row into sales is to use the @@</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/6764648236325789582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=6764648236325789582&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6764648236325789582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6764648236325789582'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/auto-increment-in-sybase.html' title='Auto Increment in Sybase'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7574102425450647230</id><published>2009-04-21T01:50:00.000-07:00</published><updated>2009-04-22T07:03:24.698-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP 5.3, Lambda Functions, and Closures</title><summary type='text'>PHP 5.3 will have a lot of exciting new features. One of the most important one for me is the introduction of lambda functions and closures support.For more information click</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7574102425450647230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7574102425450647230&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7574102425450647230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7574102425450647230'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2009/04/php-53-lambda-functions-and-closures.html' title='PHP 5.3, Lambda Functions, and Closures'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8138282475096393708</id><published>2008-11-07T05:18:00.000-08:00</published><updated>2008-11-07T05:25:01.587-08:00</updated><title type='text'>Meta Refresh and Referrer Problem</title><summary type='text'>Hi All,Just came around the problem that when meta refresh is used referrer is cleared by Firefox, IE and some other browser. Just tested on firefox it cleared. The scenario for me is i have to redirect the user after few second, so i used meta refresh, but client complaint he is not getting referrer. So came up with the quick small javascript code.// delay parameter is in sec.// url paramter </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/8138282475096393708/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=8138282475096393708&amp;isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8138282475096393708'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8138282475096393708'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/11/meta-refresh-and-referrer-problem.html' title='Meta Refresh and Referrer Problem'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2598098128458275014</id><published>2008-10-23T05:58:00.000-07:00</published><updated>2008-10-23T06:09:58.501-07:00</updated><title type='text'>Turn OFF Caching for specific file with the help of .htaccess</title><summary type='text'>Was just searching how to turn off cache for some of the file got the code so thought of sharing with you guys.&lt;# Files ansarahmed.css #&gt;&lt;# IfModule mod_headers.c #&gt;Header set Cache-Control "must-revalidate"&lt;# /IfModule #&gt;&lt;# /Files #&gt;Note:- Please remove hashes(#). Blogger is not allowing me to post the code sorry.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2598098128458275014/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2598098128458275014&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2598098128458275014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2598098128458275014'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/10/turn-off-caching-for-specific-file-with.html' title='Turn OFF Caching for specific file with the help of .htaccess'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8085766546663959703</id><published>2008-10-13T13:45:00.000-07:00</published><updated>2008-10-13T13:46:28.919-07:00</updated><title type='text'>Outputting CSV as a Downloadable File in PHP</title><summary type='text'>Nearly every application you could write in for the business sphere in PHP probably requires some sort of data export, most likely in the CSV format.The easiest way to provide a downloadable file is by altering the headers and echo'ing the file content. In our case:&lt;?phpheader("Content-type: text/csv");header("Cache-Control: no-store, no-cache");header('Content-Disposition: attachment; filename="</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/8085766546663959703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=8085766546663959703&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8085766546663959703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8085766546663959703'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/10/outputting-csv-as-downloadable-file-in.html' title='Outputting CSV as a Downloadable File in PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3415914971414279579</id><published>2008-10-11T05:48:00.000-07:00</published><updated>2009-04-22T07:03:59.737-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Filter Extension and Function in PHP</title><summary type='text'>Was just going through the ppt and sample code of Tony Bibbs talk on about injection flaws, Cross Site Scripting (CSS) and Cross Site Request Forgeries (CSRF) given by him in Information Security Office (ISO), Came to know about useful Filter Function and Extension(This extension serves to validate and filter data coming from some insecure source, such as user input. ) in PHP.Find the code and </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3415914971414279579/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3415914971414279579&amp;isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3415914971414279579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3415914971414279579'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/10/filter-extension-and-function-in-php.html' title='Filter Extension and Function in PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-372104179811002583</id><published>2008-09-19T06:14:00.000-07:00</published><updated>2008-09-19T06:16:38.360-07:00</updated><title type='text'>Kogan Page Widget by Impelsys</title><summary type='text'>new loadWidget('71','56');</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/372104179811002583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=372104179811002583&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/372104179811002583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/372104179811002583'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/09/kogan-page-widget-by-impelsys.html' title='Kogan Page Widget by Impelsys'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4268608834865588227</id><published>2008-09-15T06:25:00.000-07:00</published><updated>2008-09-15T06:28:59.529-07:00</updated><title type='text'>History of the browser user-agent string</title><summary type='text'>By Aaron Andersen..In the beginning there was NCSA Mosaic, and Mosaic called itself NCSA_Mosaic/2.0 (Windows 3.1), and Mosaic displayed pictures along with text, and there was much rejoicing.And behold, then came a new web browser known as “Mozilla”, being short for “Mosaic Killer,” but Mosaic was not amused, so the public name was changed to Netscape, and Netscape called itself Mozilla/1.0 (</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4268608834865588227/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4268608834865588227&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4268608834865588227'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4268608834865588227'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/09/history-of-browser-user-agent-string.html' title='History of the browser user-agent string'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4411813354514723383</id><published>2008-09-01T01:39:00.000-07:00</published><updated>2008-09-01T01:46:41.847-07:00</updated><title type='text'>Fast server-side rejection of large image uploads using $_FILES</title><summary type='text'>Recently on his blog Cormac has posted a quick little tutorial on making things a bit faster when rejecting file uploads in PHP that are just a bit too large.Discovered today you can report to a user if the file(s) he/she is uploading is too large without having to wait for the file to finish uploading by checking $_FILES - the $_FILES array for each form input of type “file” has an element </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4411813354514723383/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4411813354514723383&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4411813354514723383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4411813354514723383'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/09/fast-server-side-rejection-of-large.html' title='Fast server-side rejection of large image uploads using $_FILES'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7862896699397944972</id><published>2008-01-11T02:14:00.000-08:00</published><updated>2008-01-11T02:24:44.301-08:00</updated><title type='text'>Use a custom php.ini with mod_php or php as a cgi</title><summary type='text'>Describes in exhaustive detail how to change configuration settings and implement a custom php.ini file for use with the Apache Web Server.PHP run as Apache Module (mod_php)Add this to your root .htaccess file.  Say your php.ini is in folder /askapache.com/ini/  &lt;!--s apache--&gt; SetEnv PHPRC /askapache.com/ini &lt;!--e apache--&gt; </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7862896699397944972/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7862896699397944972&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7862896699397944972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7862896699397944972'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/01/use-custom-phpini-with-modphp-or-php-as.html' title='Use a custom php.ini with mod_php or php as a cgi'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2974769284687268472</id><published>2008-01-11T02:08:00.000-08:00</published><updated>2008-01-11T02:12:54.495-08:00</updated><title type='text'>Caching Techniques for Apache .htaccess Gurus</title><summary type='text'>This article shows 2 awesome ways to implement caching on your website using Apache .htaccess (httpd.conf) files on the Apache Web Server.  Both methods are extremely simple to set up and will dramatically speed up your site!  Apache .htaccess caching code &lt;!--s apache--&gt; # 1 YEARHeader set Cache-Control "max-age=29030400, public"# 1 WEEKHeader set Cache-Control "max-age=604800, public"# 2 </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2974769284687268472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2974769284687268472&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2974769284687268472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2974769284687268472'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2008/01/caching-techniques-for-apache-htaccess.html' title='Caching Techniques for Apache .htaccess Gurus'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-774064400425582127</id><published>2007-12-06T05:13:00.000-08:00</published><updated>2009-04-22T07:03:59.737-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>Becoming PHP 6 Compatible</title><summary type='text'>In a new post on 'Making the Web blog', there's a new post that talks about preparing your code for PHP6 when it comes around. "If you want to make use of PHP 6 when it comes, you're going to have to write your new scripts so they are compatible, and possibly change some of your existing scripts. To start making your scripts PHP 6 compatible, I've compiled a list of tips to follow when scripting.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/774064400425582127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=774064400425582127&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/774064400425582127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/774064400425582127'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/12/becoming-php-6-compatible.html' title='Becoming PHP 6 Compatible'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7315764813534804379</id><published>2007-11-10T02:45:00.000-08:00</published><updated>2007-11-10T02:50:57.388-08:00</updated><title type='text'>How to turn a php script to an exe..for free</title><summary type='text'>There is an interesting article in jaslab go through this article  Click here.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7315764813534804379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7315764813534804379&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7315764813534804379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7315764813534804379'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/11/how-to-turn-php-script-to-exefor-free.html' title='How to turn a php script to an exe..for free'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7020948190159181895</id><published>2007-06-30T09:14:00.000-07:00</published><updated>2007-06-30T09:17:19.082-07:00</updated><title type='text'>Measuring the effective bandwidth of your users</title><summary type='text'>Its Sample javascript implementing this.. Just go through this articlehttp://www.die.net/musings/page_load_time/</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7020948190159181895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7020948190159181895&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7020948190159181895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7020948190159181895'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/06/measuring-effective-bandwidth-of-your.html' title='Measuring the effective bandwidth of your users'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3602024148341703356</id><published>2007-05-16T21:35:00.000-07:00</published><updated>2007-05-16T21:39:52.795-07:00</updated><title type='text'>How to find slow mysql queries?</title><summary type='text'>By Justin SilvertonIt has happened to all of us running a website or application using mysql as its back-end database. Performance is suddenly very sluggish and you have no idea what is causing it. Now there may be other factors that are causing the issue (overloaded CPU, harddrive running out of space, or a lack of bandwidth), but it could also be a query that is not optimized and/or is taking </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3602024148341703356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3602024148341703356&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3602024148341703356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3602024148341703356'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/05/how-to-find-slow-mysql-queries.html' title='How to find slow mysql queries?'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8231243219984628893</id><published>2007-03-29T04:25:00.000-07:00</published><updated>2007-03-29T04:27:42.584-07:00</updated><title type='text'>sorttable: Make all your tables sortable</title><summary type='text'>Do you want to sort the tabular data?Follow the Link.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/8231243219984628893/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=8231243219984628893&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8231243219984628893'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8231243219984628893'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/03/sorttable-make-all-your-tables-sortable.html' title='sorttable: Make all your tables sortable'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8978111205824322189</id><published>2007-03-27T22:48:00.000-07:00</published><updated>2007-03-27T23:11:39.478-07:00</updated><title type='text'>How to add keyboard shortcuts to your website</title><summary type='text'>By Justin Silverton The following javascript code will allow you to add keyboard shortcuts to any webpage. The code (put this on any page where you want keyboard shortcuts)I can't put the HTML code please refer:- Html Code&lt;!--  --&gt;   (put this in a file called shortcut.js and upload to the same directory as the webpage with the above code). This example will display an alert message when the </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8978111205824322189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8978111205824322189'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/03/how-to-add-keyboard-shortcuts-to-your.html' title='How to add keyboard shortcuts to your website'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-890518756903151651</id><published>2007-03-17T03:17:00.000-07:00</published><updated>2009-04-22T07:03:59.738-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>PHP Optimization Tricks</title><summary type='text'>There are a number of tricks that you can use to squeeze the last bit of performance from your scripts. These tricks won't make your applications much faster, but can give you that little edge in performance you may be looking for.1.When incrementing or decrementing the value of the variable $i++ happens to be a tad slower then ++$i. This is something PHP specific and does not apply to other </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/890518756903151651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=890518756903151651&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/890518756903151651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/890518756903151651'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/03/php-optimization-tricks.html' title='PHP Optimization Tricks'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4000010842949296524</id><published>2007-03-17T03:09:00.001-07:00</published><updated>2007-03-17T03:09:43.374-07:00</updated><title type='text'>How to use MySQL REPLACE function</title><summary type='text'>Here’s a MySQL query fuction that’s easy to forget about: REPLACE. Let’s say I have a bunch of records in a field with http://www and want to quickly change all to http://. Here’s the syntax to update:UPDATE tdurl_1 SET URL = REPLACE(URL, ‘http://www.tdurl.com/’,'http://tdurl.com/’);</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4000010842949296524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4000010842949296524&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4000010842949296524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4000010842949296524'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/03/how-to-use-mysql-replace-function.html' title='How to use MySQL REPLACE function'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3357614605360739571</id><published>2007-02-20T23:15:00.000-08:00</published><updated>2007-02-20T23:19:49.130-08:00</updated><title type='text'>Make images fly with JavaScript</title><summary type='text'>From ibzi's blogJavaScript can be quite fun, especially when you can use it on websites you don’t even own. Let me explain — If you visit a website and then clear the address bar and enter something like javascript:alert('javascript rocks'); you will see that the JavaScript actually executes. Try some of these examples (Just enter it into the address bar and Enter.):    javascript:alert(</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3357614605360739571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3357614605360739571&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3357614605360739571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3357614605360739571'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/02/make-images-fly-with-javascript.html' title='Make images fly with JavaScript'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4116076427731076034</id><published>2007-01-23T07:45:00.000-08:00</published><updated>2007-01-23T07:49:24.781-08:00</updated><title type='text'>Mysql Tip</title><summary type='text'>If you insert a row, and needs it the generated id for subsequent inserts into other tables.. i hope every body would have faced this: Here is the cool and simple example..  CREATE TABLE customers                   (custid INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,                    name CHAR(40) UNIQUE);  CREATE TABLE sales                   (salesid INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4116076427731076034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4116076427731076034&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4116076427731076034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4116076427731076034'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/01/mysql-tip.html' title='Mysql Tip'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-6611390159930592420</id><published>2007-01-12T22:56:00.000-08:00</published><updated>2007-01-12T23:05:03.914-08:00</updated><title type='text'>Which way to get the PHP self script name is the fastest?</title><summary type='text'>From the WebDevLogs.com blog today, there's some benchmarking results from  Mgcci's look at PHP's methods for grabbing some common data the script's own  name. This includes the magic call to __FILE__: The result shows that __FILE__  is the fastest, so use that when you don't have to use any other method to find  the script's self. __FILE__ is a built in constant show the location of the  running</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/6611390159930592420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=6611390159930592420&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6611390159930592420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6611390159930592420'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2007/01/which-way-to-get-php-self-script-name.html' title='Which way to get the PHP self script name is the fastest?'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-5667925192967506978</id><published>2006-12-29T23:02:00.000-08:00</published><updated>2006-12-29T23:10:18.812-08:00</updated><title type='text'>Zip Code To Location Validation</title><summary type='text'>Jason Palmer has a function which make sure the zip code entered by user matches the city and state upon verification function return true, otherwise false. Here goes the post from him..Recently, a client was interested in verifying that any inputted zip code was matched correctly with the city and state the user provided. This can be a very valuable and important thing to verify, especially if </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/5667925192967506978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=5667925192967506978&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5667925192967506978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5667925192967506978'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/zip-code-to-location-validation.html' title='Zip Code To Location Validation'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-6390770444614095660</id><published>2006-12-16T04:10:00.000-08:00</published><updated>2006-12-16T04:12:24.038-08:00</updated><title type='text'>A better RegEx pattern for matching e-mail addresses</title><summary type='text'>Posted in  Tiffany B Brown Blog.Below is a more refined version. ^[-+.\w]{1,64}@[-.\w]{1,64}\.[-.\w]{2,6}$ Just as with the previous pattern, this one will match most valid e-mail addresses including: Addresses with periods and plus signs (e.g. ‘tiffany.brown’ or ‘hotc0derch1ck+todolist’)Top-level British and Australian domain names such as ‘.co.uk’ and ‘.com.au’New top-level domains such as ‘.</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/6390770444614095660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=6390770444614095660&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6390770444614095660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/6390770444614095660'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/better-regex-pattern-for-matching-e.html' title='A better RegEx pattern for matching e-mail addresses'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-8216431284625458930</id><published>2006-12-16T03:13:00.000-08:00</published><updated>2006-12-16T03:14:21.609-08:00</updated><title type='text'>Compressing files in PHP</title><summary type='text'>by Justin Silverton Zlib compression has been built into php since version 3 and it can be used to compress the output of your php applications (which can significantly decrease the amount of bandwidth of a page), but what you can also do is compress any file accessible from your webserver. The code The following are two functions: compress and uncompress, which can compress and uncompress a </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/8216431284625458930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=8216431284625458930&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8216431284625458930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/8216431284625458930'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/compressing-files-in-php.html' title='Compressing files in PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2358422813156181534</id><published>2006-12-16T03:02:00.000-08:00</published><updated>2006-12-16T03:07:00.570-08:00</updated><title type='text'>How to randomize, return and remove numbers from a pool using PHP</title><summary type='text'>$random_numbers = range(1,100);shuffle($random_numbers);$numbers_chosen = array($random_numbers[0],$random_numbers[1],$random_numbers[2],$random_numbers[3]);print "before ";print_r($random_numbers); // first four numbers chosen$random_numbers = array_splice($random_numbers,4);print "after ";print_r($random_numbers); // first four numbers chosenprint "chosen ";print_r($numbers_chosen); // first </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2358422813156181534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2358422813156181534&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2358422813156181534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2358422813156181534'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/how-to-randomize-return-and-remove.html' title='How to randomize, return and remove numbers from a pool using PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-7362351740746412728</id><published>2006-12-09T02:25:00.001-08:00</published><updated>2006-12-09T02:25:52.537-08:00</updated><title type='text'>Network Scanning with HTTP without JavaScript</title><summary type='text'>Here’s a cool way to scan a site visitor’s network using just HTML and the user’s browser.The concept of doing network scanning via JavaScript is hardly new and is quite easy for anyone with even cursory knowledge of JavaScript. However, the assumption was that as long as you browse the web with JavaScript disabled you are safe from hostile sites from scanning your network. Alas, this was not to </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/7362351740746412728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=7362351740746412728&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7362351740746412728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/7362351740746412728'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/network-scanning-with-http-without.html' title='Network Scanning with HTTP without JavaScript'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3362182190985183176</id><published>2006-12-09T02:12:00.000-08:00</published><updated>2006-12-09T02:15:33.100-08:00</updated><title type='text'>PHP Version with the help of Javascript</title><summary type='text'>The good thing about images is that JavaScript can check if they are loaded and what size they are. With this ability it is trivial to detect if PHP is running on an URL if expose_php=On.Here is the little proof of concept:&lt;html&gt;&lt;head&gt;&lt;title&gt;Detect PHP Version by JavaScript&lt;/title&gt;&lt;script&gt; function fail() {   alert("URL is not powered by PHP or expose_php=off"); } function detect() {   if (</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3362182190985183176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3362182190985183176&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3362182190985183176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3362182190985183176'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/php-version-with-help-of-javascript.html' title='PHP Version with the help of Javascript'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-5198381285680841608</id><published>2006-12-09T01:12:00.000-08:00</published><updated>2006-12-09T02:09:45.251-08:00</updated><title type='text'>File downloads in PHP</title><summary type='text'>This is a simple code snippet. It will allow you to force the web-browser that is currently viewing your script to come up with a file-download box (and the a file on your system can be downloaded). Here is the code: //so only the data from the headers is sentob_start();//dispable cachingheader (”Cache-Control: must-revalidate, pre-check=0, post-check=0″);header (”Content-Type: application/binary</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/5198381285680841608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=5198381285680841608&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5198381285680841608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5198381285680841608'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/file-downloads-in-php.html' title='File downloads in PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2349875949764732342</id><published>2006-12-09T00:23:00.000-08:00</published><updated>2006-12-09T00:31:21.953-08:00</updated><title type='text'>PHP currently #4 language</title><summary type='text'>The TIOBE Programming Community index gives an indication of the popularity of programming languages. The index is updated once a month. The ratings are based on the world-wide availability of skilled engineers, courses and third party vendors. The popular search engines Google, MSN, and Yahoo! are used to calculate the ratings. Observe that the TPC index is not about the best programming </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2349875949764732342/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2349875949764732342&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2349875949764732342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2349875949764732342'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/php-currently-4-language.html' title='PHP currently #4 language'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-2054904336003988491</id><published>2006-12-09T00:15:00.000-08:00</published><updated>2006-12-09T00:17:06.483-08:00</updated><title type='text'>php easter eggs</title><summary type='text'>By Justin Silverton The following are some easter eggs found in various version of php.  To see these easter eggs, find any webserver installed with the respective version of php installed on it &amp; append this to any url that ends with a php script. php 4.x php image (depending on the version, either a dog or a rabbit): ?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 Note: The dog was a part of the php </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/2054904336003988491/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=2054904336003988491&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2054904336003988491'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/2054904336003988491'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/php-easter-eggs.html' title='php easter eggs'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-5192770676943362219</id><published>2006-12-09T00:14:00.000-08:00</published><updated>2006-12-09T00:15:24.540-08:00</updated><title type='text'>mysql will now support scheduled events</title><summary type='text'>   By Justin Silverton   Mysql 5.1 beta has recently been released. It is only a beta (and should not be used in a production environment), but it does show us some of the new features that will appear in future, stable, releases:  Partitioning: This capability enables distributing portions of individual tables across a filesystem, according to rules which can be set when the table is created. In</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/5192770676943362219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=5192770676943362219&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5192770676943362219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/5192770676943362219'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/mysql-will-now-support-scheduled-events.html' title='mysql will now support scheduled events'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-3085996167484365019</id><published>2006-12-09T00:08:00.000-08:00</published><updated>2006-12-09T00:14:33.156-08:00</updated><title type='text'>A new password flaw found in Firefox 2</title><summary type='text'>By Justin Silverton In a recent article, a new flaw in firefox 2 is discussed: “Mozilla’s Firefox 2.0 has long been considered a safer Web browser than Microsoft’s Internet Explorer, but a new flaw in the Firefox Password Manager, which lets users store usernames and passwords for trusted Web sites, could let hackers steal their login data. The problem, known as a reverse cross-site request, or </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/3085996167484365019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=3085996167484365019&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3085996167484365019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/3085996167484365019'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/12/new-password-flaw-found-in-firefox-2.html' title='A new password flaw found in Firefox 2'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-9161069019276514803</id><published>2006-11-04T06:41:00.000-08:00</published><updated>2006-11-04T06:43:29.688-08:00</updated><title type='text'>PHP.Hop - PHP Honeypot Project</title><summary type='text'>This Post belongs to Ruben he has posted in orkut..PHP.Hop - PHP Honeypot Project  PHP HOP is an Opensource projectApplication-based low-level interaction honeypot Dealing with web threatswidely in use toFool different kind of web attackers (audit tools, manual hax0rs...)Create real statistics about the first top10 commands used by an intruderSteal malware (PHP, C, Perl) that attackers wanted to </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/9161069019276514803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=9161069019276514803&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/9161069019276514803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/9161069019276514803'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/11/phphop-php-honeypot-project.html' title='PHP.Hop - PHP Honeypot Project'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-4796052488065936855</id><published>2006-11-04T06:15:00.000-08:00</published><updated>2006-11-04T06:22:14.988-08:00</updated><title type='text'>Upcoming changes in PHP 6.0</title><summary type='text'>The PHP world is really excited about the upcoming release of PHP 6.0. Amongst all the uncertainties in any new release, PHP 6.0 seems to be getting rid of three of the earlier troublesome features: register_globals, magic_quotes_gpc and safe_mode. The first was a big security hole, the second messed with the data and made changing environments quite difficult, while the third was usually misread</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/4796052488065936855/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=4796052488065936855&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4796052488065936855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/4796052488065936855'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/11/upcoming-changes-in-php-60.html' title='Upcoming changes in PHP 6.0'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-115944138455440991</id><published>2006-09-28T03:53:00.000-07:00</published><updated>2006-09-28T04:03:16.196-07:00</updated><title type='text'>Browser detection in PHP</title><summary type='text'>Did you know that PHP has a built in function to detect which browser your visitor is running?There is PHP’s get_browser function.Here’s how to use this function:&lt; ? $visitorbrowser = get_browser(null,true); print_r($visitorbrowser); ?&gt;The output of this function is an object which contains details about the user’s browser and looks something like the one below:[browser_name_regex] =&gt; ^mozilla/</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/115944138455440991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=115944138455440991&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115944138455440991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115944138455440991'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/09/browser-detection-in-php.html' title='Browser detection in PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-115297478835062762</id><published>2006-07-15T07:33:00.000-07:00</published><updated>2006-07-15T07:46:28.363-07:00</updated><title type='text'>Tracking Yahoo User</title><summary type='text'>Hi All,I found the way how to track the yahoo user who is  chatting with you..  Please follow the method as i have described below you can get his/her location like Country/State/City/Region and many more information..simple method 1make a simple script page in asp,php,jsp or any that logs in the remote user ip. then get the ip and do a query on whois.net.you can get the geographical ip </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/115297478835062762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=115297478835062762&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115297478835062762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115297478835062762'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/07/tracking-yahoo-user.html' title='Tracking Yahoo User'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-115174678141354670</id><published>2006-07-01T02:20:00.000-07:00</published><updated>2006-07-01T02:39:41.423-07:00</updated><title type='text'>How to Hack Yahoo ID ?</title><summary type='text'>Hi Guys,I was shocked when i heard one of my colleague yahoo id is hacked and its true we were receiving junk mails from that yahoo id and from day i was spending most of my free time to find out how they might have hacked her yahoo id. Then finally i got it how they might have hacked,The four most common ways of Hacking Yahoo ids are ..1.) Social Engineering2.) Password Crackers3.) Using </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/115174678141354670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=115174678141354670&amp;isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115174678141354670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115174678141354670'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/07/how-to-hack-yahoo-id.html' title='How to Hack Yahoo ID ?'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-115168432984272327</id><published>2006-06-30T09:16:00.000-07:00</published><updated>2006-06-30T09:18:49.850-07:00</updated><title type='text'>Global Include Trick</title><summary type='text'> As the major part in my PHP Application Architecture, this trick allows you to include a global file at the top of your scripts. It has the benefit of not keeping the file location or name inside of each individual PHP script.I was able to accomplish this by using Apache's SETENV directive. It registers a variable visible to all scripting languages through either an entry in either an .htaccess </summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/115168432984272327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=115168432984272327&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115168432984272327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115168432984272327'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/06/global-include-trick.html' title='Global Include Trick'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-115012567183082454</id><published>2006-06-12T08:16:00.000-07:00</published><updated>2006-06-12T08:21:11.843-07:00</updated><title type='text'>Creating a CAPTCHA with PHP</title><summary type='text'>You may be thinking just exactly what is a captcha? Well you are likely to have already seen them across the web. They are those little images with a code on the front that you type into a box in order to submit something. This kind of system helps to prevent automatic submitting of an operation by some kind of program or robot. In this tutorial I will show you how to make a CAPTCHA just like the</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/115012567183082454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=115012567183082454&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115012567183082454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/115012567183082454'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/06/creating-captcha-with-php.html' title='Creating a CAPTCHA with PHP'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-114994038490944109</id><published>2006-06-10T04:47:00.000-07:00</published><updated>2006-06-10T04:53:04.910-07:00</updated><title type='text'>Graphs generation using php</title><summary type='text'>Click on the image for more info</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/114994038490944109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=114994038490944109&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/114994038490944109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/114994038490944109'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/06/graphs-generation-using-php.html' title='Graphs generation using php'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-114993916397453209</id><published>2006-06-10T04:30:00.000-07:00</published><updated>2006-06-10T04:32:43.976-07:00</updated><title type='text'>File Download Security</title><summary type='text'>File Download SecurityWant to prevent people from linking to your downloads? This script will force a page to be loaded before the download starts. HTML header statements are used to trigger the download of the file. PHP is used to push the file to the browser.PrinciplesHTML headers must be sent before any output is sent to the browser. PHP uses the header function to pass raw HTML headers.&lt;?$dir</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/114993916397453209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=114993916397453209&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/114993916397453209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/114993916397453209'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/06/file-download-security.html' title='File Download Security'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-29509873.post-114993567296662547</id><published>2006-06-10T03:15:00.000-07:00</published><updated>2006-06-10T07:46:06.303-07:00</updated><title type='text'>PHP User Group for Bangalore</title><summary type='text'>We had our very first Bangalore PHP meetup last Friday. We had a bunch of PHP people join up at our company terrace, to get the momentum going on meeting up PHP professionals around Bangalore. One of the key points at the discussion was to start a PHP user group in Bangalore, since there wasn’t one existing already (yep, the IT city doesn’t yet have a PHP user group). As a first step, we’ve setup</summary><link rel='replies' type='application/atom+xml' href='http://ansarahmed.blogspot.com/feeds/114993567296662547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=29509873&amp;postID=114993567296662547&amp;isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/114993567296662547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29509873/posts/default/114993567296662547'/><link rel='alternate' type='text/html' href='http://ansarahmed.blogspot.com/2006/06/php-user-group-for-bangalore.html' title='PHP User Group for Bangalore'/><author><name>Ansar Ahmed</name><uri>http://www.blogger.com/profile/02917274954145258432</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
