GeneralHow to find the PHP binary's filenameat 2008-01-07 in General by friebeIn some situations, it can be necessary to find out the filename of the PHP interpreter running the current script from inside this script. Although PHP provides a getmypid() function, it doesn't provide a possibility to query the executable name directly. Continue reading to find out how to get this done for multiple environments. (more) XP on Windows Vistaat 2007-04-11 in General by friebe![]() Wow (more) XP going mobileat 2007-01-15 in General by kieselMobile computing has become a major topic in the last years, especially for programming languages and their applications. XP taken the initial step on Jens' Nokia 770: Fix for the fix - bug #1 revisitedat 2006-05-24 in General, Homepage by friebeWhile searching for the origins of an SQLException which was occuring in our corporate Intranet, we discovered it had been caused by the numval() method introduced into the rdbms.StatementFormatter class a couple of weeks ago. The problem was that numval() was being passed an empty string and was producing an empty string in return, causing "select ... from news where parent_id= %d" to be formatted to "select ... from news where parent_id= ", resulting in the afforementioned exception with the message "Incorrect syntax near ...". The problem was that sscanf() returns -1 for empty input values and has been fixed now (see http://bugs.xp-framework.net/show_bug.cgi?id=1#c7 for details). Numeric arrays revisitedat 2005-06-12 in General by kieselIn Numeric arrays Timm has compared various array access methods in regard to their speed for quite a common task. While that was really interesting and certainly will have affect on the different connectors we have to other languages (SOAP, xmlrpc, ...), I missed one special method: the fastest (more) Numeric arraysat 2005-05-29 in General by friebePHP's handling of arrays is superb: It's easy to create them. It's easy to manipulate them (there's about a gazillion functions over here). It's easy to access them. Their hashing algorithm is fast as a lightning. Aah: Hashing. Hashes and arrays are indistinguishable in PHP. And that's where the problem lies when communicating with languages where this is not the case. Hrm, you may think: $a= array(1, 2, 3); is numeric and $a= array("key" => "val"); is a hash, for sure. But how do we find out programmatically? (more) strtok() considered evilat 2005-01-18 in General by kieselWhile experimenting with tokenizing of strings today, Christian Lang and me came to one point where code using strtok() silently failed: reason to this was the nested use of strtok() in different places on different strings. (more) Getters and setters evil?at 2004-12-15 in General by friebeVia "PHP is not Python is not Java": They are a waste of CPU time, but more important, they are a waste of programmer time. Not just for the people writing the code and tests, but for the people who have to read and understand them as well. I tend to disagree:
XP framework news siteat 2004-11-21 in General by alexkieselThe XP framework's site network has grown: this is the opening for the XP framework news site. This site will offer recent updated and annoucements around the XP framework, on topic is almost anything that has to do with the framework:
To say it in short words: read this to keep up-to-date with the XP framework. I wish you much fun reading this. (more) New releaseat 2004-11-12 in General, Releases by friebehttp://xp-framework.net/downloads/xp-2004-11-12.tar.gz 1025.47 KB [ MD5: ae4ff8e34ed183819b59bf7836491206 ] (more) |
|