elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » Optimising a PHP (symfony 1.x/Doctrine 1.x) application
http://elephpants.blog.redpill-linpro.com/2011/10/07/optimising_a_php_symfony_doctrine_application-2
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. Optimising a PHP (symfony 1.x/Doctrine 1.x) application. That said, being aware of some of the case studies I will present to you now may help you to optimise old code, but may also allow you to think twice when you are working with new code – as the things I will describe do not take too much time to implement first time round. Case study: Working with large resultsets and array merge. This logic was used to generate a report...
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » bjori
http://elephpants.blog.redpill-linpro.com/author/bjori
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. Practising the fundamentals: Function of the week/month. When you need to see if any of the chars in $chars is in another string. Whats the simplest way to search for them? Hopefully none of the libraries have such functionality, so you need to go “a bit lower”. The answer is, ofcourse, trivial:. False) { $found = true; break; } } if ($found) { /* Do stuff */ }. Browsing through the string section in the PHP manual. With the r...
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » Practising the fundamentals: Function of the week/month
http://elephpants.blog.redpill-linpro.com/2011/11/01/tip
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. Practising the fundamentals: Function of the week/month. When you need to see if any of the chars in $chars is in another string. Whats the simplest way to search for them? Hopefully none of the libraries have such functionality, so you need to go “a bit lower”. The answer is, ofcourse, trivial:. False) { $found = true; break; } } if ($found) { /* Do stuff */ }. Browsing through the string section in the PHP manual. Practising...
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » Practicing the fundamentals: Timezone handling
http://elephpants.blog.redpill-linpro.com/2012/02/28/practicing-the-fundamentals-timezone-handling
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. Practicing the fundamentals: Timezone handling. Timezone handling can sometimes be a bitch. Turns out, using a couple of PHPs classes and functions, it’s quite easy. Let’s say you have a web application with the following scenario:. Users from around the planet, and your server is located in the UK. You would initialize your DateTime object like this:. For an international user, seeing his or her local time would be nice.
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » CSS crazy – or why we haven’t learnt anything from IE6 (part 1)
http://elephpants.blog.redpill-linpro.com/2012/05/07/css-crazy-or-why-we-havent-learnt-anything-from-ie6-pat1
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. CSS crazy – or why we haven’t learnt anything from IE6 (part 1). Disclaimer: This isn’t going to be about php, so if that doesn’t tickly your fancy feel free to skip this entry. It’s also a bit of a rant. Background: url(/images/navbar top.png) repeat-x; /* legacy background image */ background: linear-gradient(to bottom, #434A50 0%,#2B3036 80%); /* W3C */. Achieving this effect across all browsers is not at all trivial.
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » Uncategorized
http://elephpants.blog.redpill-linpro.com/category/uncategorized
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. CSS crazy – or why we haven’t learnt anything from IE6 (part 1). Disclaimer: This isn’t going to be about php, so if that doesn’t tickly your fancy feel free to skip this entry. It’s also a bit of a rant. Background: url(/images/navbar top.png) repeat-x; /* legacy background image */ background: linear-gradient(to bottom, #434A50 0%,#2B3036 80%); /* W3C */. Achieving this effect across all browsers is not at all trivial. Inclu...
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » web browsers
http://elephpants.blog.redpill-linpro.com/tag/web-browsers
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. CSS crazy – or why we haven’t learnt anything from IE6 (part 1). Disclaimer: This isn’t going to be about php, so if that doesn’t tickly your fancy feel free to skip this entry. It’s also a bit of a rant. Background: url(/images/navbar top.png) repeat-x; /* legacy background image */ background: linear-gradient(to bottom, #434A50 0%,#2B3036 80%); /* W3C */. Achieving this effect across all browsers is not at all trivial.
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » Viggo Normann
http://elephpants.blog.redpill-linpro.com/author/viggo
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. Practicing the fundamentals: Timezone handling. Timezone handling can sometimes be a bitch. Turns out, using a couple of PHPs classes and functions, it’s quite easy. Let’s say you have a web application with the following scenario:. Users from around the planet, and your server is located in the UK. You would initialize your DateTime object like this:. For an international user, seeing his or her local time would be nice.
elephpants.blog.redpill-linpro.com
Redpill Linpro PHP Competence Group » Fake php time on your ubuntu server
http://elephpants.blog.redpill-linpro.com/2011/12/18/fake-php-time-on-your-ubuntu-server
Redpill Linpro PHP Competence Group. Monkeys and elephpants take on the world. Fake php time on your ubuntu server. Some time it is necessary to fool your PHP application to test functionality related to a “current date”. Fooling php cli is simple using faketime. Say you have this PHP script:. Php print date( 'F j. Y [H:i]' ). n;. Rendering this script with php through faketime will give you results like this:. Faketime 'last Friday 5 pm' ./time.php December 9. 2011 [17:00]. Now I create a file in my hom...
SOCIAL ENGAGEMENT