I am trying to create a text file with PHP in fopen("test.txt","a"). I have also tried with fopen("test.txt","w+").
The text file is created but I want to check for some string in test.text, that it exist or in test.txt it will not create duplicate entry. Can someone help me out?
Use this code: