Navigation IAS Home Page IEEE Presentation Archives Search |
Welcome to Industry Applications Society, Atlanta Section
|
©IEEE 2010 if(file_exists("counter.dat")) { $exist_file = fopen("counter.dat", "r"); $new_count = fgets($exist_file, 255); $new_count++; fclose($exist_file); print("$new_count people have visited this page"); $exist_count = fopen("counter.dat", "w"); fputs($exist_count, $new_count); fclose($exist_count); } else { $new_file = fopen("counter.dat", "w"); fputs($new_file, "1"); print("1 person have visited this page"); fclose($new_file); } ?> |