After so long time, I was coding in PHP to write certain user inputs in a text file (.txt). Here are the codes that may find it helpful also. To check if text file is empty $text15_file = ‘text15.txt’; $i = 0; if (trim(file_get_contents($text15_file)) == true) { $i = 1; } //Based on $i value,…
I’m Lucas Brey, a travel blogger sharing practical guides, hidden gems, and honest tips from the road. Follow along for smart itineraries, great food finds, and stories worth bookmarking.