Posts tagged php

Nov05

Twitter Archiving with PHP and Ruby

twitter php ruby | comments

Really rough, but easy to drop in and get working with something else, either as an external script or by integrating directly into a larger code base.

The code:

PHP: Gist 214887

Continue reading »

Sep21

CodeIgniter & SQLite3

codeigniter pdo php sqlite sqlite3 | comments

I hope to save some other poor saps from suffering the same ill experience I just went through trying to use SQLite3 with CodeIgniter 1.7.2. I’m going to contribute to the wiki page on this topic as well, but it’s a mess and my contribution may become lost in the noise.

Continue reading »

Aug15

Learning Java After PHP

java php | comments

My interest in smartphone development finally breached a level where I felt compelled to download the Android SDK and buy the Hello, Android book.

Continue reading »

Jan30

PHP 5 Abstract Classes and Interfaces

oop php | comments

I wanted to create an interface that would be implemented by a group of classes all extending the same abstract class. Curiosity led me to try implementing the interface in the abstract class alone, forcing the interface’s requirements down to descendants by way of abstract functions fulfilling the interface’s requirements and in turn obligating descendant classes to implement them.

Continue reading »

Sep30

PHP Class Member Declarations

php oop | comments

When declaring members of a class in PHP, only the most basic of value assignments may be immediately made.

HTML parse error: 
<pre class="brush: php;">private $var = 'test'; // will work

private $var2 = $var; // will not work
Continue reading »

Sep26

PHP Operators - '00' is not false

gotchas php | comments

A PHP string will be considered false only under two conditions: either when it is empty or when it contains the single character 0 (zero).

A string of multiple zeros will result in a return value oftrue.