Visitor Counter in PHP

Visitor Counter in PHP

15CSL77
WEB TECHNOLOGY LABORATORY WITH MINI PROJECT


program

Write a PHP program to keep track of the number of visitors visiting the web page and to display this count of visitors, with proper headings.

Viva Question

  1. fopen("filename.txt","mode"):- Used for opening file in desired mode, it takes 2 attribute, file name and mode(reading,writing).
  2. fread(filename,no of character):- Used to read file takes two attribute file name and number of character we want to read.
  3. fclose(filename):- Used to close file.
  4. fwrite(filename,writing content):- Used to write file 

Basic steps required

  1. Create a file with .php extension in wamp(inside www directory ) & xamp(inside htdocs directory)
  2. Run the file in PHP environment like localhost

Visitor Counter in PHP code


Output:

Visitor Counter in PHP Video Tutorial


1 comment:

For Query and doubts!

Powered by Blogger.