Monthly Archives: May 2010
Foreach Statement in PHP – Full Tutorial
PHP 4 introduced a foreach construct, much like Perl and some other languages. This simply gives an easy way to iterate over arrays. foreach works only on arrays, and will issue an error when you try to use it on … Continue reading
include_once difference between PHP 4 and PHP 5
The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, … Continue reading
How to uploads Multiple files using PHP
Multiple files can be uploaded using different name for input. It is also possible to upload multiple files simultaneously and have the information organized automatically in arrays for you. To do so, you need to use the same array submission … Continue reading
Handeling File Uploads in PHP
This feature lets people upload both text and binary files. With PHP’s authentication and file manipulation functions, you have full control over who is allowed to upload and what is to be done with the file once it has been … Continue reading
HTTP Authentication with PHP
The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI version. In an Apache module PHP script, it is possible to use the header() function … Continue reading
Cookies in PHP
PHP transparently supports HTTP cookies. Cookies are a mechanism for storing data in the remote browser and thus tracking or identifying return users. You can set cookies using the setcookie() or setrawcookie() function. Cookies are part of the HTTP header, … Continue reading
How to Install Linux on Iphone?
I’m pleased to announce that the Linux 2.6 kernel has been ported to Apple’s iPhone platform, with support for the first and second generation iPhones as well as the first generation iPod touch. This is a rough first draft of … Continue reading
Some Linux Programming questions
If you don’t do any Linux programming then you may want to skip this posting! I’m trying to do some basic game stuff under Linux and don’t really know what a reasonable way is to do them, and the cost … Continue reading
How to Crop Multiple images in the same manner
Sometimes you’ll want to crop the same area from multiple images (think of taking the contents of the same window from a load of screenshots). Of course, you could fire up your favourite image editor to select and crop over … Continue reading
How to Prevent damage after system lockup?
No matter how stable the Linux kernel is, things like hardware failures can still lock up your system quite effectively. If you ever encounter a case like that, rebooting is pretty much the only option. However, there is rebooting and … Continue reading

