A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Tag Archives: Web Development

Zend Framework: A simple Zend_Rest_Server example

A few days back I thought of implementing a RESTful web service. I did not have any idea on how to implement one. So I searched online and found this post. Based on astrumfutura’s post, I created my own “simplified” … Continue reading

Posted in General | Tagged , , , , | 1 Comment

Mixing PHP Variables with Javascript (Zend Framework and jQuery)

Sometimes, I “mix” PHP variables with Javascript. For example, I have something like this: function deletenote(notes_id) { if(!confirm("Delete note? You will not be able to undo this action.")) return false;   $.post("< ?=$this->baseUrl?>/notes/deletenote",{ skeedl_notes_id: notes_id }, function(data){ $(’#notes_id’+data).fadeOut(); }); } … Continue reading

Posted in General | Tagged , , , | 7 Comments

All the Cheatsheets for Web Development in da World!

A few weeks back, someone sent me an email. Hi, We just posted an article “The Cheat Sheet Cheat Sheet: Top 100 Lists of Web Development Cheat Sheets “ ( http://www.virtualhosting.com/blog/2008/the-cheat-sheet-cheat-sheet-top-100-lists-of-web-development-cheat-sheets/ )I thought I’d bring it to your attention just … Continue reading

Posted in General | Tagged , | Leave a comment

Don’t use addslashes for database escapes

From jansch.nl: This is not the best way to escape data. The most important reason is security. addslashes can lure you into a false sense of security. As Chris Shiflett points out, there are situations that addslashes doesn’t escape. Use … Continue reading

Posted in General | Tagged , , | Leave a comment

Using Zend Framework for a CMS

I have just completed (well almost – but it is now fully functional) my CMS (Content Managment System) using the Zend Framework. I’m calling it “Hamburger” – after the current project I am working on, WorldsGreatestHamburgers.com. I am excited to … Continue reading

Posted in General | Tagged , | 6 Comments

File Downloads With Zend Framework

I have been handling file uploads in most of my web applications. Sometimes, I store them in databases and sometimes I feel like storing them in directories. This post will not deal with uploading files, but rather downloading them. Basically, … Continue reading

Posted in General | Tagged , , | Leave a comment

MyLyricsFinder.com: Caching MySQL Queries

It is Saturday night and it is raining like it hasn’t rained in weeks. So I decided to spend the night to work on my pet project: MyLyricsFinder.com. It uses the Zend Framework. The latest addition tonight is Zend_Cache. I … Continue reading

Posted in General | Tagged , , , , | Leave a comment

Ruby on Rails instead of Java + Google Web Toolkit

An article where a couple of guys decided to use Ruby on Rails instead of Java and Google Web Toolkit. I would encourage everyone who is learning RoR to read the entire article. Don’t skip the last part of the … Continue reading

Posted in General | Tagged , | Leave a comment

40 ways to optimize your PHP Code

A must read for PHP Programmers. Here is the first half: If a method can be static, declare it static. Speed improvement is by a factor of 4. echo is faster than print. Set the maxvalue for your for-loops before … Continue reading

Posted in General | Tagged , | 3 Comments

Getting started with: Zend Framework, symfony and CakePHP

This article was posted at IBM developerWorks a few days ago – I don’t know how I missed it. The article gets you started on three of the most popular PHP MVC Frameworks. Surprisingly, Code Igniter, which is my second … Continue reading

Posted in General | Tagged , , , , | Leave a comment