Learning to program a computer is somewhat of a difficult task but if mastered can be a very rewarding skill to possess. Not only are programmers in high demand but being able to program means that you can take on your own projects. PHP is a language normally used for web programming and its...
There are at least 2 ways you can set your PHP include_path.
Edit your /etc/php.ini file. Inside that file is a directive section for “Paths and Directories.” By default it is set to “.:/usr/local/lib/php”. You can change that value to whatever you like or add to (or eliminate) the ...
PHP5 comes with a complete reflection API that adds the ability to reverse-engineer classes, interfaces, functions and methods as well as extensions. Additionally, the reflection API also offers ways of retrieving doc comments for functions, classes and methods.
The reflection API is an...
The incredible new TerranTribune template features a lightning fast and clean news / magazine style design with one of the most versatile layouts we’ve ever assembled. An amazing 32 module positions allow for up to 7 columns of content as well as built in support for multiple standard advertising...
Rasmus Lerdorf is undoubtedly the most famous Greenlandic geek alive. Having created PHP as a bunch of hackish scripts to support his website in 1995, he turned it into a powerful, fully fledged language that's now used by millions around the world.
Linux Format magazine caught up with him...
This amazon script was originally developed by Uioreanu Calin in 2002, in this version we have adapted it for easier reading and editing, we always found the original version a great help but such a chore to find your way around with redundant files often getting in the way.
The Amazon Web...
Posted under Article, PHP on Monday, 21 September 2009 by rueben
The #debian IRC channel on freenode very often sees people who don’t know how to get PHP running with Apache. This is nearly always caused by missing packages – particularly the Apache mod_php module.
It is very simple to get a basic setup running – depending on the version of Apache and...
PHP and C# common encryption and decryption function class, Use of 3DES encryption and decryption:
PHP encryption and decryption functions:
[code lang="php"]
function encrypt($string) {
//Key
$key = "xxxxxxxx";
//Encryption
$cipher_alg = MCRYPT_TRIPLEDES;
$iv =...
Very quickly, another thing that I typically like to do on my server boxes is allow root access to my Mysql database from remote computers. I don’t forward the port through my router and I use a very secure password (doesn’t everyone?). I don’t want to create a security risk, I just want to...
Posted under Article, PHP on Thursday, 3 September 2009 by rueben
Hi there peoples,
This is a currency converter, built with a combination of javascript and php, which uses an XML feed from http://www.ecb.int/ to get up to date exchange rates. I know the xml handling is not very elegant, but it is functional Additions/comments/corrections welcome
[code...