If you have ever wondered how to include another PHP file into a PHP script, this simple one line code sample will show you how. <?php // Place this into your PHP page // and edit the file name
if (isset($var)) { echo “the var is set, and equals $var. It may be empty though.”; } http://www.php.net/isset isset() will tell you is a varaible has been defined.
Put the following code at the top of your page. <? $URL="http://www.yourdomain.com"; header ("Location: $URL"); ?><? $URL="http://www.yourdomain.com"; header ("Location: $URL"); ?>
The following characters are recognized in the format parameter string format character Description Example returned values Day — — d Day of the month, 2 digits with leading
With each new version PHP is getting more and more object oriented. In version 5.x we get two useful classes for date and time handling. Many programmers are
Here, how you can display total number of online user in your webpage you want. Just include file name, which I have given file name as online-user.php here.
This article explains about sending a simple mail using PHP mail function. Creating a Email Form using HTML 1 2 3 4 5 6 7 <form method="post" action="">
Nepali Time application is fixed now. There was problem with IE 8 in current nepali time application. Now it is compatible with any browser. If you want to
How to encrypt the passwords and other important information in your site say cookies,password, etc…well it is very simple md5 them so that nobody will be able to