Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 87
6 members and 81 guests
add5pntrmwe4kde, lastf7vegaswebs, limehohimsrrepe, prizzwbvatejajw, ralnn7eighhoukw, sha8dxekercup6s
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - Modules

Reply
 
LinkBack Thread Tools Display Modes
PHP append
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 18
Join Date: Dec 2004
PHP append - 02-16-2005, 12:06 PM

Hi all, I am not sure if this is the correct forum, but i was wonering if someone could help me with this php add-on i have for users registering. What i need to do is append the data in an external file. THis is just php code i guess. This is all contained in an EXTERNAL TEXT file; NOT a database. THis is what i want to do:
fopen(filename);
1) look up a certain line of the file
2) edit that line
3) Save the edit.

For example, say this is the file contents i have:
Quote:
username1
username2
*username3
username4
So i want to open the file, and remove the asterick (*) from *username3 so that the final file looks like this:
Quote:
username1
username2
username3
username4
[/code]
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31