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
- fopen("filename.txt","mode"):- Used for opening file in desired mode, it takes 2 attribute, file name and mode(reading,writing).
- fread(filename,no of character):- Used to read file takes two attribute file name and number of character we want to read.
- fclose(filename):- Used to close file.
- fwrite(filename,writing content):- Used to write file
Basic steps required
- Create a file with .php extension in wamp(inside www directory ) & xamp(inside htdocs directory)
- Run the file in PHP environment like localhost
Visitor Counter in PHP code
Output:
Visitor Counter in PHP Video Tutorial
we can use fopen to create file too.
ReplyDelete