Posted on June 8th, 2007 by Jans
This is a continuation to my post PHP Magic Constants.
Here I would like to demonstrate a real time example of magic constants.
I am going to write a user function for generating a user-level error/warning/notice message.
function myErrorFunction($error_message,$line,$file)
{
if($error_message!=”)
{
$error_string = “User Error : {$error_message} in
{$file} on line number {$line}”;
echo $error_string;
die();
}
}
myErrorFunction(‘test error message’,__LINE__,__FILE__);
Now, you can call this function [...]
Filed under: PHP | No Comments »
Posted on June 5th, 2007 by Jans
Imagine being able to actually touch your digital photos and drag them around by hand, or use your finger as a Photoshop paint brush. You can do that and much more with Microsoft’s first surface computing product, imaginatively named Microsoft Surface.
Microsoft recently unveiled Surface, a tabletop computer with an amazing multi-touch interface. There’s no [...]
Filed under: Announcements, Gadgets | No Comments »
Posted on June 5th, 2007 by Jans
Damien Seguy published the PHP usage statistics for May 2007 over at nexen.net. Some points of interest in the stats:
* PHP is found on 33,24 % of web sites, stable from last month. PHP market share is stable.
* All versions of PHP 5.2x are gaining new users
* PHP 5.2 is now 3rd most popular version
* [...]
Filed under: PHP | 1 Comment »
Posted on June 4th, 2007 by Jans
Recently, google launched the beta version of there new product “Google Gears”.
The goal of Google Gears is to allow rich, AJAX – heavy web applications to become fully functional both on and offline. Delivering this capability would be a substantial step toward Google’s aspirations of becoming the dominant application platform.
To solve this problem, Google Gears [...]
Filed under: Announcements | No Comments »
Posted on June 3rd, 2007 by Jans
An include is a section of HTML that isn’t a full HTML document by itself. Instead, it is a portion of another page that can be included in complete Web pages using programming.
Unfortunately, this is not something that is supported by HTML, so you need to have some type of program or script to add [...]
Filed under: HTML, JavaScript | 1 Comment »