Archive for the ‘Programming & IT’ Category

C++ Language Tutorial

These tutorials explain the C++ language from its basics up to the newest features of ANSI-C++, including basic concepts such as arrays or classes and advanced concepts such as polymorphism or templates. The tutorial is oriented in a practical way, with working example programs in all sections to start practicing each lesson right away.

View->C++ Language Tutorial 

Bambalam PHP EXE Compiler/Embedder

Bambalam PHP EXE Compiler/Embedder is a free command line tool to convert PHP applications to standalone Windows .exe applications. The exe files produced are totally standalone, no need for php dlls etc. The php code is encoded using the Turck MMCache Encode library so it’s a perfect solution if you want to distribute your application while protecting your source code. The converter is also suitable for producing .exe files for windowed PHP applications (created using for example the WinBinder library, or with PHP-GTK). It’s also good for making stand-alone PHP Socket servers/clients (the php_sockets extension is included in the static build).

It’s NOT really a compiler in the sense that it doesn’t produce native machine code from PHP sources, but it works!

How does it work?
The converter embeds encoded PHP source files as resources in a generic statically compiled PHP launcher executable. It also has an option to compress the final exe using the UPX executable compressor. Simple console applications end up with an executable at a size of 500-600kb.

Does “compiled” PHP applications run faster?
Theoretically it should. Having libraries linked statically and encoding files (Turck MMCache encodes PHP sources as PHP bytecode, I think) should contribute to faster applications. But I haven’t done any decent tests on it.

What about PHP applications with more than one source file?
No problem, the converter is able to embed a whole project directory.

What about accessing the embedded files from php?
You can access the embedded files just as you’re used to. The PHP runtime used has been modified so that when you’re accessing a file it first tries to access it the usual way (by looking in the path outside the .exe) and if the files aren’t found there it looks for it in the embedded filelist.

So the INCLUDE statement works just as it should?
Yes, as long as you include stuff using relative paths.

What PHP version is supported?
Currently, the converter uses a PHP runtime based on PHP 4.4.2

What about PHP 5 support?
I haven’t got around to it, but I probably will! But PHP 4.4.2 works in most cases, and the PHP 4 runtimes produces alot smaller standalone exe files than PHP 5 would do. But as I said, just wait for it.

What libraries are included?
The following libraries are included in this version:
Turck MMCache, bcmath, calendar, com, ctype, ftp, mysql, odbc, pcre, win32std, xml, zlib, winbinder, sockets.

What about PHP.INI? Can I embed that as well?
Yes, just include the php.ini in your project directory. That way, you can add extensions to your application. The dll files for the extra extensions can’t be embedded though. Make sure you set the extension_dir setting to something relative, extension_dir = “” works fine.

What about PHP-GTK applications?
PHP-GTK apps should work just fine as long as you supply all the needed GTK extensions and libraries. Make sure you have the libraries for the correct PHP version (currently 4.4.2). PHP-GTK isn’t statically included (it’s way too complex), if you’re developing for the windows platform only then maybe you should have a look at WinBinder instead.

What about license? Just how free is this utility?
Well, I guess that the tool is released as open source under the PHP License. Sources are available on the website. I don’t really know much about licensing :), let’s just say that it’s free, and I don’t want to get sued. Ok?

Click here to download 

Things You Didn’t Know You Could Do with PHP!


  • The first two ideas discuss take what should be familiar code and use it in novel ways.
  • The third example shows how to more easily debug and improve the professionalism of your sites through just a few lines of code.
  • After that, a definite “I didn’t know that existed!” function is given its due.
  • The final item is a quick introduction to an interesting thing you can now do with PHP (not to ruin the ending for you, but PHP still can’t mow your lawn). Naturally, see your friendly neighborhood PHP manual for more information about any of the functions covered.

To save the document click on the link below:

Five things you didn’t you could do with PHP!.doc

NetBeans C/C++ Pack

The NetBeans C/C++ Development Pack brings C/C++ support to the NetBeans platform. C/C++ developers can now use the NetBeans IDE, in conjunction with their specified set of compilers and tools, to build native applications for supported platforms, including Microsoft Windows, Linux, and Solaris Operating Systems. A sophisticated language-aware editor, project templates, dynamic class browser, makefile support, and debugger are some of the features included to provide a complete edit-compile-debug integrated development environment. In addition, pack has been designed to be highly extensible for those developers who would like to provide unique or additional functionality.

To downlaod NetBeans C/C++ Pack 

Command line reference for Oracle, Windows, Linux and OS X

Bash is the shell, or command language interpreter, that will appear in the GNU operating system. Bash is an sh-compatible shell that incorporates useful features from the Korn shell (ksh) and C shell (csh). It is intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard. It offers functional improvements over sh for both programming and interactive use. In addition, most sh scripts can be run by Bash without modification. The improvements offered by BASH include:

Command line editingUnlimited size command historyJob Control
Shell Functions and Aliases
Indexed arrays of unlimited size
Integer arithmetic in any base from two to sixty-four

Downloading BASH –
BASH can be found on or one of the mirrors. You can also order a CD-ROM from the FSF or use other methods to obtain a copy.

Download the command line reference by clicking the link below –

For more information click here