View unanswered posts | View active topics It is currently Tue Nov 20, 2018 8:57 am

Reply to topic  [ 2 posts ] 
 What to do? 
Author Message
Junior Member

Joined: Sun Nov 07, 2004 12:22 am
Posts: 8
How could i take 1 word out of a list of words in a TXT Document and make it into a variable

Heres an example:

Someone types in "Cat"

And a reply will come up (almost like a search engine)

The TXT doc would be like:
I want to just take "cat" out of the list.


Mon Feb 21, 2005 5:46 pm
Report this post
Junior Member

Joined: Wed Mar 24, 2004 9:05 pm
Posts: 5
Location: Canton, NY
This sort of thing can be done using PHPs file access tools. With these you can read a file line by line, word by word, etc. You could use any number of methods. For some detailed examples, you should consider purchasing Sterling Hughes' book, PHP Cookbook

I hope this helps.


Tue Feb 22, 2005 7:00 am
Report this post
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
© Copyright 2003-2008 The ultimate PHP Editor and PHP IDE site.