Google Chrome 3rd popular browser defeting Safari
From a recent survey by Net Applications Google's Chrome browser become the third most popular web browser by overtaking Apple's Safari browser.
Chrome and Firefox being open source, while Internet Explorer and Safari are proprietary.
Chrome's market share reaches 4.63 percent compared to Safari's 4.46 percent. Microsoft's Internet Explorer leads at top with 62.19 percent, followed by Firefox with 24.61 percent.
- Add new comment
- 233 reads
What is VPS hosting
A virtual private server (VPS, also referred to as Virtual Dedicated Server or VDS) is done by splitting a server so that each virtual server can run their own full-fledged operating system, and main thing is each server can be independently rebooted. Since a VPS runs its own copy of its operating system, so user can have superuser-level access to the operating system instance, and can install almost any software that runs on the OS.
Virtual private servers bridge the gap between shared web hosting services and dedicated hosting services, providing independence from other users of the VPS service in terms of software but at a lower cost than a physical dedicated server.
- Add new comment
- Read more
- 252 reads
Different ways of running PHP
According to my knowledge, there are many ways to write a PHP application:
1. FastCGI : In this case, the interpreter is loaded during boot time; so the
application itself might also be compiled and loaded once.
2. mod_php : This is same as FastCGI?
3. CGI: The most usual way, there are some PHP code embedded into the web pages, and the PHP interpreter is loaded each time a PHP page is called.
4. application server : The application is compiled and loaded once and the application can either have its own web server, or use a web server as front end, and only handle its own part.
- Add new comment
- 252 reads
PEAR ERRORS - PHP
PEAR has its own error-reporting mechanism based around the principle of errors as types, and the ability to pass around errors as values. Many extras were built around this principle, to the point where PEAR errors almost function like a poor man’s (in this case, PHP 4 users’) exception.
Where PHP’s built-in error mechanism typically displays a message and a function returns false, a function returning a PEAR error gives an object back that is an instance of PEAR_Error or a subclass:
require_once 'DB.php';
$dbh = DB::connect('mysql://test@localhost/test');
if (PEAR::isError($dbh)) {
die("DB::connect failed (" . $dbh->getMessage() . ")\n");
}
print "DB::connect ok!\n";
?>
- Add new comment
- Read more
- 823 reads
Error Reporting in PHP
Several php.ini configuration settings control which errors should be displayed and how.
error_reporting (Integer)
This setting is the default error reporting for every script. The parameter
may be any of the constants listed here, E_ALL for everything or a logical
expression such as E_ALL & ~E_NOTICE (for everything except notices).
display_errors (Boolean)
This setting controls whether errors are displayed as part of PHP’s output.
It is set to On by default.
display_startup_errors (Boolean)
This setting controls whether errors are displayed during PHP startup.
It is set to Off by default and is meant for debugging C extensions.
error_prepend_string (String)
This string is displayed immediately before the error message when displayed
in the browser.
error_append_string (String)
This string is displayed immediately after the error message when displayed
in the browser.
track_errors (Boolean)
- Add new comment
- Read more
- 454 reads













