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 .
<?php
mysql_connect("localhost","root","");
mysql_select_db("oops");
?>
The above Php script allow you to connect your Database and Php script that you developed .
error_reporting(0);
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 .
<?php
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;
    }
    else
    {
        $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 .
<?php
    date_default_timezone_set("Asia/Calcutta");
    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 .
<?php
        $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

2 comments:

  1. Hi muhsin

    just want to know how to fix popular post, comments and archive template tsb in blogger.

    I am using ur template on my blog http://webtutos.gq

    ReplyDelete
    Replies
    1. please let me know your email address or send me a mail from your mail to my mail address , I can send you the full documentation ....

      Please add a link back from your site to mine ... It will help me ..

      My mail address is : admin@howi.in

      Delete

Wapmaster or Webmaster can Comment Us with the following Comment Box . Don't add Links to your site for Spamming our Blog .. Once you add Comment with Link . It will be deleted immediatly by our Admins .

 
Top