PHP reserves all function names starting with __ as magical.
__sleep :- This function is executed …
Trending Story
Difference between include and require
It’s how they handle failures. If the file is not found by require(), it will cause a fatal error and …
Changing fieldset tag line color
This can be done by using the style property of <fieldset> tag
Code Sample :
<fieldset style=”border-color: #ff0000;”>
MySQL Reconnect In PHP
Can use the inbuilt function mysql_ping(), which will check whether or not the connection to the server …
Autoloading Classes In PHP
Many developers writing object-oriented applications create one PHP source file per-class definition. One of the biggest …
Microsoft DOS expand command
The expand command is use to take a compressed Windows file and “expand” it to its original format.Expands one or …
Install SciTE On Ubuntu
To install SciTE editor on Ubuntu.
sudo apt-get install scite
Show Desktop Shortcut for the Gnome Desktop
To Show Desktop Shortcut for the Gnome Desktop by default is CTRL+ALT+D. If you are familiar with windows, don’t be …
To Find Your Current Shell Type
Tip: To find your current shell type following command
Shell Command
$ echo $SHELL
To Find All Available Shells In Your System
Tip: To find all available shells in your system type following command:
Shell Command:
$ cat /etc/shells
Get File Path Info Using PHP pathinfo Function
The pathinfo file returns the informations about a given path, like filename,basename,extension. No need of playing around with string positions, …
PHP Magic Methods
PHP reserves all function names starting with __ as magical. It is recommended that you do …
Building a desktop application with Ext, AIR, Aptana and Red Bull
I found an article for Build Desktop applications using Extjs and Adobe AIR. You can find more informations from the …
http_build_query function usage
Generate URL-encoded query string from an array of argument variables. The separator is & by default and for changing that with …
PDO Connection And DNS Settings For Different Databases.
PDO(PHP Data Objects) is one of main feature of PHP 5.1 to managing databases. It is developed to provide a …
Get Bible Verse of day Using JSON
Following it a simple code snippet with uses JSON (Javascript Object Notation) to fetch the Bible Verse of the Day from …
