Compdigitec Labs

Archive for August, 2008

Using UTF-8 in PHP-GTK2

Monday, August 18th, 2008

When trying to use a string that has characters that are non-English (Asian and middle east characters) or characters that have accents for PHP-GTK’s widgets, you may possibly encounter a situation like the image to the right. This bug or glitch is caused by the fact that you are trying to use a regional encoding […]

Changing the application name of a GtkAboutDialog in PHP-GTK2

Sunday, August 17th, 2008

For those of you who have never heard of it, a GtkAboutDialog is a convience GtkDialog to display application credits. However, the documentation (archive at 2008-08-17) for it does not specify a way to change the application’s name, and as a result ends up using the script name for the application, which is very ugly […]

Stopping the “PHP Fatal error: Internal object missing in” error in PHP-GTK2

Saturday, August 16th, 2008

In PHP-GTK2, if you build your own class of an existing PHP-GTK2 class, you may encounter one of the following errors: “PHP Fatal error:  Internal object missing in YourclassName wrapper in /path/to/your/script on line *” “Fatal error: Internal object missing in YourclassName wrapper in /path/to/your/script on line *” This is somehow (not documented) caused by […]

Embeder – a free PHP to EXE solution

Friday, August 15th, 2008

If you’re looking for a PHP to EXE solution that supports PHP5, Embeder is one rarely mentioned application that will convert your PHP applications into a Windows executable file, although it will only work with PHP 5.0.3. Below are the steps to set it up on your system. (Will run under Linux with Wine, too.) […]

How to use dd to copy, move and erase disks

Thursday, August 14th, 2008

Often, you may encounter the need to move a partition, copy a partition or copy a CD/DVD. The easiest and most user-friendly way to do this is with GParted. However, in a server environment or a command line environment where the GUI is not available, GNU dd is an good way to perform these simple […]

Parsing text files in PHP with FlatfileTools

Wednesday, August 13th, 2008

Compdigitec FlatfileTools is a API written in PHP to manipulate, read and modify plain text databases. It can also manipulate existing databases, such as CSV files. It is released under the GNU General Public License and therefore is free software. To use it, download Compdigitec FlatfileTools. Then include_once it like this: <?php include_once(‘flatfiletools.lib.php’); // The rest of your code goes here… ?> […]

Create and extract tarballs in Windows

Tuesday, August 12th, 2008

For those of you who want to extract and create tarballs (tgz, tbz) on the Windows platform, there are many commercial tools to extract tarballs. If you want an graphical app, you can use the open-source 7-zip archiver for Windows. However, there are also not many tools extract tarballs from the command line (cmd.exe or […]

Install bcompiler for PHP on Ubuntu Linux

Sunday, August 10th, 2008

The PHP bytecode compiler is a useful way to convert PHP to bytecode, which can then be converted to binaries. However, the Ubuntu packaging team has not yet made a binary package of bcompiler available. However, you can install this bytecode compiler yourself with these 9 easy to follow steps. A binary build is availible, […]

Simple way to read bzip2 compressed files in PHP

Saturday, August 9th, 2008

If you are looking for a way to read quick way to read a compressed bzip2 file’s contents, look no further. We have made a function that works similar to the way file_get_contents works. The code is released under the GPL v2 or later license.

Unofficial Bigloo 3.1a Build for Windows

Friday, August 1st, 2008

If you’re looking for a prebuilt build of Bigloo 3.1a, you’re in luck! We have made a Bigloo 3.1a build for Windows, ready to be installed and in various formats. You can download the builds here . Bigloo 3.1a is required to build Roadsend PHP for Windows. If you want to compile Bigloo 3.1a yourself […]

Next Entries »