You are here

PHP

Why OpenAtrium sucks

Submitted by Druss on Sat, 2014-08-16 20:17

OpenAtrium is a Drupal "distribution", a pre-packaged Drupal installation which targets a particular niche. I was told to consider it when I went looking for a support ticket package a couple of years ago. That project fell by the wayside but I did have a demo installation on my system and now that I do need to install a ticket management system again, I looked at resurrecting this installation and updating it for some snazzy new features.

Drupal: PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY'

Submitted by Druss on Sat, 2012-07-07 23:38

While setting up Drupal on a friend's Ubuntu server, I ran into the following error message:

PHP Fatal error: Undefined class constant 'MYSQL_ATTR_USE_BUFFERED_QUERY' in /var/www/mysite/includes/database/mysql/database.inc on line 42

This basically simply means that the PHP PDO extension has not been installed. It can be installed via something along the lines of:
sudo aptitude install php5-mysql

While you are at it, make sure that all the other PHP extensions that Drupal requires are also installed.

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so'

Submitted by Druss on Tue, 2012-05-08 14:39

After an upgrade from Lucid to Precise, my PHP install started complaining about a library:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/gd.so'

While I've got a hunch that the actual problem is related to issues I had during the upgrade, turning this error (and other similar ones) off is as simple as going into /etc/php5/conf.d and renaming the file, in this case gd.ini to something like gd.ini.bak.

Choosing the right PHP version for Windows

Submitted by Druss on Sun, 2011-04-24 12:00

PHP provides a number of different versions for install in Windows. There are versions which are tagged with VC6 and other with VC9. There are also thread-safe and non-thread-safe versions of the installer available for download. After some digging and trial & error fiddlery, my conclusion is that VC9 and non-thread-safe are for the Microsoft IIS webserver while the VC6 and thread-safe installers are for Apache and other non-IIS webservers.

Hope this helps :)

Parse error: syntax error, unexpected '[', expecting T_PAAMAYIM_NEKUDOTAYIM in ...

Submitted by Druss on Mon, 2007-06-04 02:23

So, what do you make of the error message in the title? I ran into this while coding in PHP and thought that I must've installed a dodgy version of PHP or might have been h4xx0r3d. But a quick google revealed that PAAMAYIM_NEKUDOTAYIM represents the :: operator in Hebrew.

Crazy dudes.

Subscribe to RSS - PHP