This is a discussion on "Edit a specific line of a file???" within the PHP Forum section. This forum, and the thread "Edit a specific line of a file??? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Edit a specific line of a file???
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Edit a specific line of a file???
Is there a way to edit a certain line in a file with PHP?
Maybe use fopen() and insert new POST data into, say, line 5 replacing what's there? |
|
|
|
||||
|
Re: Edit a specific line of a file???
Maybe this:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Edit a specific line of a file???
Like this?
|
|
||||
|
Re: Edit a specific line of a file???
This should work:
<font color="#000000">
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
||||
|
Re: Edit a specific line of a file???
Shouldn't it be \r\n instead of just \n? Just \n has never worked for me.
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: Edit a specific line of a file???
Depends what OS you are on.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| reading a log file one line at a time depending on timestamp | eon201 | PHP Forum | 1 | Dec 4th, 2007 05:54 |
| Edit one file, that changes the column on all pages. | Dark[Devil] | Web Page Design | 16 | Aug 25th, 2007 20:47 |
| Loading specific flash movies for specific pages | koonkle | Flash & Multimedia Forum | 3 | May 22nd, 2007 17:23 |
| Trying To Edit A Template But Missing psd File...Please Help | fst2006 | Web Page Design | 5 | Nov 18th, 2006 18:50 |
| display folder contents + specific text for a particular file type | magnum | Classic ASP | 1 | Aug 17th, 2006 13:02 |