Web site utilitis লেবেলটি সহ পোস্টগুলি দেখানো হচ্ছে৷ সকল পোস্ট দেখান
Web site utilitis লেবেলটি সহ পোস্টগুলি দেখানো হচ্ছে৷ সকল পোস্ট দেখান

সোমবার, ১৯ জুলাই, ২০১০

To create a hit counter


To create a hit counter, please follow these steps:

  1. Open your site in FrontPage either locally or directly from our server using the Open Web menu option.
  2. Open the page you wish to add the counter to.
  3. Determine where on the page you would like to add the counter.
  4. From the Insert Menu, select Web Component.
  5. From the list of web components select Hit Counter.
  6. Select the Counter Style from the menu. You may add your own Counter Style (see below).
  7. Click Ok. This will add the hit counter to your page.

Make a Login System for Your Website: PHP and MySQL




  1. Run this SQL command in your MySQL database (you must have one):
    CREATE TABLE `users` (
    `id` int(3) NOT NULL auto_increment,
    `login` varchar(8) default NULL,
    `password` varchar(8) default NULL,
    PRIMARY KEY (`id`)
    ) TYPE=MyISAM AUTO_INCREMENT=3 ;
    This will create the table that will record the usernames and passwords.
  2. Then, create the LOGIN.PHP file. This page will contain the form that will submit the user´s data.

    session_name("MyLogin");session_start();session_destroy();
    if($_GET['login'] == "failed") {print $_GET['cause'];
    }
    ?>

    Login:

    Password:

  3. Now, create the LOG.PHP. This is the file that performs the action of the form.

    session_name("MyLogin");session_start();
    if($_GET['action'] == "login") {$conn mysql_connect("localhost","user","password"); // your MySQL connection data$db mysql_select_db("DATABASENAME"); //put your database name in here
    $name 
    $_POST['user'];$q_user mysql_query("SELECT * FROM USERS WHERE login='$name'");
    1. if(mysql_num_rows($q_user) == 1) {
      $query 
      mysql_query("SELECT * FROM USERS WHERE login='$name'");$data mysql_fetch_array($query);if($_POST['pwd'] == $data['password']) { session_register("name");header("Location: yourpage.php"); // success page. put the URL you want exit;} else {header("Location: login.php?login=failed&cause=".urlencode('Wrong Password'));exit;}} else {header("Location: login.php?login=failed&cause=".urlencode('Invalid User'));exit;}
      }
      // if the session is not registeredif(session_is_registered("name") == false) {header("Location: login.php");
      }
      ?>
    2. If you paid enough attention, you noticed that the login will lead the user to YOURPAGE.PHP. Add these lines of code to any webpage that you want to secure (including yourpage.php):

      require("log.php");?>
      Printing the user name in the screen is very easy. Just add this code:
      print $_SESSION["name"]; ?>

শনিবার, ১০ জুলাই, ২০১০

Hit counter code

আপনার সাইট এ হিট কাউন্টার কোড দিতে চাইলে নিচের LINK এ ক্লিক করে HTML কোড টি আপনার সাইট এ পেস্ট করুন

এখানে ক্লিক করুন

শুক্রবার, ৯ জুলাই, ২০১০

Hit counter


আপনার সাইট এর ভিসিটর কাউন্টার আপনার ব্রাউজার এর টুলবার এ দেখতে পারেন। এর জন্য আপনাকে একটা ফাইল ডাউনলোড করতে হবে। ফাইল টি সম্পুর্ন ফ্রী।
প্রথমে এখানে ক্লিক করে ফাইল টা ডাউনলোড এবং ইন্সটল করে নিন। ব্রাউজার রিস্টার্ট করুন। এখন Activate toolbar এ ক্লিক করে এক্টিভ করুন।
review http://www.carzon.tk on alexa.com