Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>
- </title>
- </head>
- <body>
- </form>
- <?php
- if (!file_exists("odwiedziny.txt"))
- {
- $ilosc=1;
- $plik=fopen("odwiedziny.txt","w+");
- fwrite($plik, $ilosc);
- fclose($plik);
- }
- else
- {
- $plik=fopen("odwiedziny.txt","r+");
- $ilosc=fgets($plik);
- $ilosc++;
- fclose($plik);
- }
- $plik=fopen("odwiedziny.txt","r+");
- fwrite($plik, $ilosc);
- echo($ilosc);
- fclose($plik);
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement