I am looking for the correct way to open a text file to upload the content to a
Delete the first line and save the content in the same text file again.
without the deleted line I use this example:
<?php $ra= file("datos.txt"); $s = unset($ra); $file = fopen("datos.txt", "w"); fwrite($file,$s); fclose($file); ?>
The problem is that the result is a text file without content.
I hope some idea.