Difference Between Include And Require in PHP

The include or require statement copies all text/code from a specified file into a file that uses require/include statement. Where to use These statements are useful when you want to include same PHP/HTML etc. pages on multiple pages. Example: Header and footer are written in a sperate file, and are included in various pages. Why […]

Continue reading
type of intent

All about Intent

An Intent is an abstract description of an operation to be performed.

It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service.

Continue reading

PHP code Snippets

Send Mail using mail function in PHP

Short verison for mail function in PHP

Get Remote IP Address in PHP

The above code will not work in case your client is behind proxy server. In that case use below function to get real IP address of client.

Email validation snippet in […]

Continue reading