cowuser
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by cowuser
-
-
In some posts before i fould out how i can add stuff inside a text file in a specific place... the thing is i now want to find a way to erase specific things from that file. i have put in special tags to everything i have put inside ( like # 120 is here and # 120 ends here ). I need a way to erase the lines with these comments and the lines between them.
Also is there a way i can erase only one line of these? let's say the line that says allow 120 ? i know what that line says. -
ok ... the stupid cow is back again ...
Well... i have a table in the db that has usernames and websites... i want to write only the websites of a certain user to a file... i can view the results for the user for example 120 ( i get the user by ?user=120 ) but i can not put them i a file one in a row. How can i go on with that?
Remove stuff from a txt file
in PHP Coding Help
Posted
Well you don't need comments or anything on the lines to be able to erase only certain lines, but my question is do you want to keep the line in the file blank or remove it completely? I have the solution for your problem, I think, but the code will be slightly different depending on your desired effect.
[/quote]
Well remove it completely. it's better because i don't want the file to grow very large with junk