How to change CSRF attack message in Symfony 1.2

July 15th, 2010

I wanted to change the symfony 1.2 CSRF attack message from “CSRF attack detected.” to “This session has expired. Please return to the home page and try again.”.

Read more…

Symfony Framework

Can Symfony programmer flip like a ninja?

July 5th, 2010

Yes…

A Symfony programmer, rekarnar, was doing a butterfly twist move

Symfony Framework

sfSimpleGoogleSitemapPlugin

June 7th, 2010

Just a thread where people can leave comments/discuss about sfSimpleGoogleSitemapPlugin, a Symfony plugin that I originally wrote more than a year ago.

Uncategorized

How to make Symfony session to never timeout

March 26th, 2010

This is for Symfony 1.2 and sfGuardPlugin, but may be relevant for newer versions (1.3, 1.4, etc).

Setting timeout to false in factories.yml should’ve worked, e.g. like this:

all:
  user:
    class: myUser
    param:
      # this should have worked, but did not
      timeout: false

But it didn’t work because I think ‘false’ did not get parsed as literal false.
Read more…

Symfony Framework

Symfony Reloaded (Symfony 2)

February 28th, 2010

Symfony Framework has a preview release (not stable yet) of Symfony version 2 (Symfony Reloaded).

At a glance, by reading the ‘read and learn‘ section, this new version will be quite different than the previous versions in terms of file and directory structure, components, etc.

Some highlights:

  • Namespace – finally PHP has namespace and Symfony will be one of the first frameworks to support it.
  • Bundles – this is kind of like plugin, but in Symfony 2, most/all the codes are organized in bundles. A bundle consists of PHP, css, javascript, images, etc.
  • View layer will be even more flexible, due to bundles. I’m guessing there’s be no more issue with trying to share codes between ‘apps’ (no more apps in Symfony 2, they are all bundles).
  • More configurable routing.yml – for example you can specify for a routing to return xml, json, and more.

Interesting comparison with other frameworks showing how fast Symfony 2 is, Symfony team claimed it is arguably the fastest!

I look forward to spend sometime to get familiar with this new version.

Happy coding!

Symfony Framework

sflive2010 – Symfony Core Dev in HD videos

February 21st, 2010

I haven’t watched these videos yet, but here they are! I hope they are in English :P

Thanks to Ben Haine for uploading those videos :)

Symfony Framework

Speed up Symfony by installing APC on Ubuntu

January 29th, 2010

APC (Alternative PHP Cache) is an open source code PHP code cache and optimizer (or code accelerator). It is a necessary companion to any Symfony project. Read more…

Linux, PHP, Symfony Framework , , , ,

Microsoft VBScript runtime (0×800A0046) Permission denied

December 5th, 2009

The answer is run ‘cacls’ from DOS command line. You can just type ‘cacls’ and see the command help.

Example of usage:

cacls C:\Inetpub\wwwroot\mypublicfile.txt /E /G Guest:F

  • C:\Inetpub\wwwroot\mypublicfile.txt is the file, but we can also specify a folder
  • Guest is the user we want to give access
  • /E means we add to existing file security settings. Without /E, the system will delete everyone else’s access.
  • /G must exists before user:access
  • F means full access, R means read, W means write

I got this info from this thread when trying to solve permission denied problem of my ASP script when trying to delete a file.

Happy coding!

asp

Linux command to recursively delete .svn folders

November 13th, 2009

find . -name .svn -print0 | xargs -0 rm -rf

Credit: http://codesnippets.joyent.com/posts/show/104

Linux ,

Popular websites powered by PHP

September 26th, 2009

Just a handy list for me and anyone else out there. Most popular high traffic websites only.

Wikipedia, Facebook, Friendster, Yahoo, Delicious, Youtube, Digg, Wordpress, Tagged, W3Counter, MyYearBook

PHP ,