/    Sign up×
Community /Pin to ProfileBookmark

How to read TXT file within folder on server?

I have TXT file on server and would like to read this file and modify in the following way:remove duplicate phrases from large list.
There will be many criteria how to modify. This sample is only one. I need also
sort keyword lists alphabetically or based on word count…

How to do in correct way?

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@svidgenMar 21.2009 — Take a look at the PHP documentation for dealing with the filesystem: http://us.php.net/manual/en/ref.filesystem.php. You'll probably be able to get away with using [I]file_get_contents()[/I] and [I]file_put_contents()[/I].
×

Success!

Help @toplisek spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...