background preloader

CakePHP : the rapid development php framework

CakePHP : the rapid development php framework

Projects :: The CakePHP Herald I don’t re­mem­ber the exact day when I started using a todo list in a se­ri­ous way. It def­i­nitely hap­pened at work, but I can’t re­mem­ber when ex­actly. The point is that, once I started work­ing (and get­ting paid for what I love doing – writ­ing), I slowly turned into a real pro­duc­tiv­ity freak. I write every­thing down. I am not a paper per­son. Con­tinue read­ing → Building an RSS Feed in Code Igniter I've had a few requests asking how I built my RSS feed since I'm using a custom built Code Igniter blogging system. Actually, it was pretty straight forward, but I thought I'd take a few moments to outline step by step how I did it. Most of the inspiration (and a lot of blatant stealing) is taken from this post about RSS on the Code Igniter forums. <? An important thing to notice about the feed controller is that it sends a content-type along with it that indicates its a news feed - "application/rss+xml". function getRecentPosts (){ $this->db->orderby('post_date', 'desc'); $this->db->where('post_visible', 1); $this->db->limit(10); return $this->db->get('posts');} You'll notice reference to 'post_visible' in there. <? <dc:rights>Copyright <? <? <title><? <description><! The view uses PHP to echo out the opening <? <?

50 Extremely Useful PHP Tools | Developer&#039;s Toolbox Advertisement By Jacob Gube PHP is one of the most widely used open-source server-side scripting languages that exist today. With over 20 million indexed domains using PHP, including major websites like Facebook, Digg and WordPress, there are good reasons why many Web developers prefer it to other server-side scripting languages, such as Python and Ruby. PHP is faster (updated), and it is the most used scripting language in practice; it has detailed documentation, a huge community, numerous ready-to-use scripts and well-supported frameworks; and most importantly, it’s much easier to get started with PHP than with other scripting languages (Python, for example). This post presents 50 useful PHP tools that can significantly improve your programming workflow. You may also want to take a look at the following related posts: Debugging Tools WebgrindWebgrind is an Xdebug profiling Web front end in PHP 5. XdebugXdebug is one of the most popular debugging PHP extensions. Documentation Tools Minify!

Comparison of web application frameworks From Wikipedia, the free encyclopedia This is a comparison of notable web frameworks. General[edit] Basic information about each framework. ASP.NET[edit] C[edit] C++[edit] ColdFusion Markup Language (CFML)[edit] Common Lisp[edit] D[edit] Haskell[edit] Java[edit] JavaScript[edit] Scala[edit] Perl[edit] PHP[edit] Python[edit] Ruby[edit] Others[edit] Comparison of features[edit] C++[edit] ColdFusion Markup Language (CFML)[edit] Common Lisp[edit] Java[edit] JavaScript[edit] Perl[edit] PHP[edit] Python[edit] Ruby[edit] Others[edit] See also[edit] References[edit]

Grupos de Google: Cake PHP with IIS without mod rewrite OK My modifications:This is for IIS without mod rewrite, and document root set to the rootof the cake installation. In the wiki there is a tutorial for making itwork installing a mod rewrite (My web provider doesn't permitinstalling mod's) At the beginning of core.php, add the line: define('SERVER_APACHE',false);----------------then replace the line define('BASE_URL',xxx) by: if (SERVER_APACHE){ define ('BASE_URL', env('SCRIPT_NAME') );}else{ define ('BASE_URL', env('SCRIPT_NAME') . '? define ('APP_DIR', 'app');define ('DS', DIRECTORY_SEPARATOR);define ('ROOT', dirname(__FILE__).DS); require_once ROOT.' $uri = setUri(); /** * As mod_rewrite (or .htaccess files) is not working, we need to takecare * of what would normally be rewritten, i.e. the static files in/public */if ($uri === '/' || $uri === '/index.php'){ $_GET['url'] = '/'; require_once ROOT.APP_DIR.DS.WEBROOT_DIR.DS.' $_GET['url'] = $path; require_once ROOT.APP_DIR.DS.WEBROOT_DIR.DS.' Finally, in AppController.php , add the functions:

RSS 2.0 Specification (RSS 2.0 at Harvard Law) Internet technology hosted by Berkman Center Tuesday, July 15, 2003 Contents What is RSS? RSS is a Web content syndication format. Its name is an acronym for Really Simple Syndication. RSS is a dialect of XML. A summary of RSS version history. At the top level, a RSS document is a <rss> element, with a mandatory attribute called version, that specifies the version of RSS that the document conforms to. Subordinate to the <rss> element is a single <channel> element, which contains information about the channel (metadata) and its contents. Sample files Here are sample files for: RSS 0.91, 0.92 and 2.0. Note that the sample files may point to documents and services that no longer exist. About this document This document represents the status of RSS as of the Fall of 2002, version 2.0.1. It incorporates all changes and additions, starting with the basic spec for RSS 0.91 (June 2000) and includes new features introduced in RSS 0.92 (December 2000) and RSS 0.94 (August 2002). Change notes are here. Roadmap

Custom PHP.ini tips and tricks .htaccess code from Ultimate htaccess file ^ AddHandler application/x-httpd-php .php .htm AddHandler php-cgi .php .htm AddHandler phpini-cgi .php .htm Action phpini-cgi /cgi-bin/php5-custom-ini.cgi AddHandler fastcgi-script .fcgi AddHandler php-cgi .php .htm Action php-cgi /cgi-bin/php5-wrapper.fcgi AddHandler php-cgi .php .htm Action php-cgi /cgi-bin/php.cgi When php run as Apache Module (mod_php) ^ in root .htaccess SetEnv PHPRC /location/todir/containing/phpinifile When php run as CGI ^ Place your php.ini file in the dir of your cgi'd php, in this case /cgi-bin/ htaccess might look something like this AddHandler php-cgi .php .htm Action php-cgi /cgi-bin/php5.cgi When php is run as cgi ^ Create a wrapper script called phpini.cgi to export the directory that contains the php.ini file as PHPRC #! In your .htaccess or httpd.conf file AddHandler php-cgi .php Action php-cgi /cgi-bin/phpini.cgi When cgi'd php is run with wrapper (for FastCGI) ^ NOTE: Custom PHP.ini with FastCGI on DreamHost #! Change To #!

Introduction to Ajax Prototype enables you to deal with Ajax calls in a very easy and fun way that is also safe (cross-browser). Besides simple requests, this module also deals in a smart way with JavaScript code returned from a server and provides helper classes for polling. Ajax functionality is contained in the global Ajax object. The transport for Ajax requests is XmlHttpRequest, with browser differences safely abstracted from the user. Actual requests are made by creating instances of the Ajax.Request object. The first parameter is the URL of the request; the second is the options hash. Remember that for security reasons (i.e., preventing cross-site scripting attacks), Ajax requests can only be made to URLs of the same protocol, host and port of the page containing the Ajax request. Ajax response callbacks Ajax requests are by default asynchronous, which means you must have callbacks that will handle the data from a response. You can specify both callbacks, one or none - it's up to you. Global responders

RosSoft Simple Optimization for PHP and MySQL Saturday April 29 2006 03:23 Here is a list of a few very simple tips for optimizing your php/mysql applications. Keep these in mind while developing. MySQL MySQL is interpreted from right to left so you should put the most significant limiters as far to the right as possible. If possible it's of course always better to generate static html pages every time something is updated or as often as an update might be relevant instead of querying the database every time. Further reading: Make a comment if you have any tips that I've missed and I will add it. This article is hosted by dublish.com which is a free online publishing tool for those who have something to say but don't have their own blog.

Related: