Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Reply
 
Thread Tools Search this Thread Display Modes
Old 03-04-2008, 03:41 AM   #1
AssistantX
Smurf
 
AssistantX's Avatar
 
Join Date: Apr 2006
Posts: 2
AssistantX will become famous soon enough
Default Help with PHP Filesystem

I believe that PHP's filesystem will fit what I want to do but I am having trouble finding the appropiate items to do the following:

-Delete a selected line from a text file (For Example: Remove line 40 of a 100 line text file. Therefore, what was line 41 is now line 40 and there are now 99 lines in total)

-Add a line to a preexisting text file (For Example: A string is added to the end of the file [A 98 line text file becomes 99 line] or a string is inserted at a selected line of in the file[The string is made line 45 and what was previously line 45 becomes line 46])

-Edit/replace a certain line in a preexisting text file (For Example: Line 34 which says "Hello I am sam" is changed to say "This is John")

If any of you know a function or a method that can do either of these, do tell.
AssistantX is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old Yesterday, 07:15 AM   #2
stada
Smurf
 
stada's Avatar
 
Join Date: Apr 2007
Posts: 8
stada is on a distinguished road
Default Re: Help with PHP Filesystem

I've try this before, but no success, I think this hard to do. One think can do is to load all content then rewrite it, but that is will take high resource if the file is large.

I suggest you to use Flat Database like SQLite.
__________________
http://www.totalarticle.com
stada is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Reply



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Fusion Script Installation. [HELP Required] hemanthjava PHP 1 05-23-2007 05:45 PM
error. ionCube PHP loader - PLEASE HELP CircleOfLinks PHP 2 03-04-2007 06:28 PM
php help please mani Programming 2 12-19-2006 04:35 PM
php help required midlandi PHP 3 12-17-2006 01:48 PM
Downloading HELP (PHP + URL Referal Services) neophyte Programming 1 01-29-2006 01:18 AM


All times are GMT. The time now is 08:03 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.