I have the following code:
$fisier = file_get_contents('urlproxy'); // Read the file with the proxy list
$linii = explode("
", $fisier); // Get each proxy
$fisier = fopen("bune.txt", "a"); // Here we will write the good ones
I need every time I run the script it rewrites the txt file only with the new proxy.
Can someone help me?