![]() |
Delete lines from txt file
Hopefully someone can help. I have a text file the data is for for example
line1 line2 line3 How can I make a php script (edit.php) that will make something like this line1 - delete line2 - delete line3 - delete I currently only have is so it shows the data of the text file but that's it. Code:
<?php |
I suppose you could use PHP's file() function which reads in a file into an array with each line being a new element of the array.
PHP Code:
So overall, what you could do is this: PHP Code:
|
| All times are GMT. The time now is 05:34 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0