MyFunnyDev

web, coding and beyond

Archive for the ‘PHP’ Category

how to remove .svn from all folders – command line

without comments

find . -name ".svn" -exec rm -rf '{}' \;

Written by Michał Kuklis

October 15th, 2008 at 8:20 pm

Posted in PHP, Uncategorized

Tagged with

Recognize Ajax Request (XMLHttpRequest)

without comments

To recognize Ajax Request (Prototype/JQuery) in PHP you can use following code:

function xhr() {
 return isset($_SERVER['HTTP_X_REQUESTED_WITH']) &&
 $_SERVER ['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest';
}

Written by Michał Kuklis

August 28th, 2006 at 10:40 am

Posted in PHP

PHP Frameworks

without comments

If you’re wondering which PHP framework will work for you or you’re getting headache by just thinking about them you should take a look on this article. There is also quick overview of 10 most popular frameworks here. I personally like Symfony.

Written by Michał Kuklis

March 21st, 2006 at 10:27 am

Posted in PHP

Symfony javascript helpers doc

without comments

There is new doc about javascript (AJAX) helpers on Symfony website. Also if you’re an AJAX fan you should see how Symfony plays with JSON. You can read more about JSON format here.

Written by Michał Kuklis

March 19th, 2006 at 6:47 am

Posted in PHP