OpenCraft
Follow OC!
  • Home
  • About
  • Solutions
  • Portfolio
  • Clients
  • Blog
  • Contact

php

Mon, 2009-07-13 12:04
Tags:
  • debian
  • drupal
  • linux
  • php

Drupal performance optimization part 1

By: 
Islam Amer

Recently, we have a need for optimizing the performance of our drupal deployments, beyond the conventional mysql and apache optimization.

The first and easiest thing is to install a PHP Opcode Cache, and after some investigation I decided to try APC. Installing the version in PECL worked well on the staging environment.Read more

  • iamer's blog
  • 24 comments
Fri, 2009-06-19 09:51
Tags:
  • coding
  • php

The Automatic Resource Destructor pattern

By: 
Karim Ratib

What happens if you need to open a file with fopen, but find that your function can exit at multiple points? It is tedious and error-prone to call fclose at each exit point. Alternatively, you could re-structure your code to only exit at the bottom, thereby calling fclose only once, but you would end up with many nested blocks that hamper readibility and are generally considered bad programming style.Read more

  • kratib's blog
  • 3 comments
Wed, 2008-10-08 00:37
Tags:
  • coding
  • drupal
  • php

Beware PHP $_REQUEST!

By: 
Karim Ratib

I recently came across an interesting bug that I thought to share with you PHP/Drupal heads.Read more

  • kratib's blog
  • 21 comments

OpenCraft

  • About
  • Team
  • Process
  • Community
  • Media Kit
  • Portfolio
  • Clients
  • Industries
    • Social economic development
    • Multimedia culture
  • Services
    • Drupal development
    • Information architecture
    • Open source software development
    • Social network engineering
  • Request quote
  • Contact
  • Search
Blog

Our profiles at:

Drupal Google
rss

Creative Commons License
search