php – Open-Source Forum with API-ThrowExceptions

Exception or error: Does anyone have suggestions for a PHP, Python, or J2EE-based web forum that has a good API for programmatically creating users and forum topics? How to solve: phpBB would be the first that comes to mind as open-source, simply because it’s free. In reality almost all forum platforms have some sort of …

php – PHPUnit getMock() with namespace-ThrowExceptions

Exception or error: My quest of starting to use namespaces in PHP keeps continuing. This time PHPUnit gives me problems. My setup() method is like this: $test = new \MyNamespace\NonPersistentStorage(); // works $mock = $this->getMock(‘\\MyNamespace\\NonPersistentStorage’); // doesn’t work The getMock() method only results in PHP looking for a NonPersistentStorage class. Not within the namespace. Q: …

c – Is there anything like Python's ctype for PHP? Accessing libraries without the need to write an extension?-ThrowExceptions

Exception or error: Python has ctypes to access libraries. In PHP you write extensions for everything. Popular extensions like the one for libgd are available almost everywhere. Is there any extension which works like Python’s ctypes, letting you access libraries without the need to write an PHP extension? How to solve: You’re looking for ffi. …

php – Obscuring database id's-ThrowExceptions

Exception or error: I have a table with a primary key that is auto increment. I want to have an image associated with the primary key but I don’t want the primary key to be revealed. Would naming the images something like: $filename = md5($primarykey + $secret_string) . ‘.jpg’; be a good solution? I am …