wapmaster useful php scripts

Introduction :

It is very easy to create wapsite using Php script , Because by using Php script we can make wapsite with advanced functions such as Auto-File Listing , Automatic Header and Footer function , Etc . Also many of the Php developers where developed Wap CMS for creating wapsite such as Master-Land Auto-index - Djmaol Auto-index - Appzmob Auto-index - Etc . Here on this article you are going to learn some of the Useful Php script for designing your wapsite .

Wap CMS Scripts to Create Wapsite :

WAP CMS Description
Djamol Djamol is an Autoindex script which allow you to create wapsite simply with just 3 Step installation - You need php server for creat wapsite using Djamol Autoindex
Master-Land Master-Land is also an Autoindex script like Djamol but the difference between Master-Land and Djamol are , Master-Land have the function to edit Template direct using TPL Editor .
Appzmob Appzmob is also an autoindex script which allow you to create wapsite like Google Play or Ovi Store . Appzmob also have the same function like Djamol and Master-Land

Some Useful Php Scripts :

<?php include 'header.php';?>
The above Php script will allow you to show or run the function of a Php page which located in your server . With the above script , You can also set Auto-header and Footer option .
<?php echo "it is just a message" ?>
The above Php script allow you to show messages in Php page .
The above Php script allow you to connect your Database and Php script that you developed .
The above Php script allow you to hide the errors which comes on your Php page . This code is very much useful when you have errors on your Php page which you can't find out and solve .
function getUserIP()
    $client  = @$_SERVER['HTTP_CLIENT_IP'];
    $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
    $remote  = $_SERVER['REMOTE_ADDR'];

    if(filter_var($client, FILTER_VALIDATE_IP))
        $ip = $client;
    elseif(filter_var($forward, FILTER_VALIDATE_IP))
        $ip = $forward;
        $ip = $remote;
    return $ip;
$user_ip = getUserIP();
echo $user_ip; 
The above Php script will allow you to show the IP Address of the visitor which currently browsing your website .
    echo date('d-m-Y H:i:s'); 
The above Php script which allow you to show current Date & Time , You can add this script directly on your website . Which will help your visitor very much .
        $start = microtime(true);
 $end = microtime(true);
 printf("Page was generated in %f seconds", $end - $start);
The above Php script which will show the time taken for load a page . This code will help you to show your visitor that your website was too fast .

Suggested Article For Wapmasters :

I hope that you well enjoyed this article , If you have any kind of doubt's about this article , Please let us know by using the comment box given below . Thanks