View unanswered posts | View active topics It is currently Thu Dec 14, 2017 2:53 am



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

Joined: Sun Nov 07, 2004 12:22 am
Posts: 8
Post 
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:
dog|^|cat|^|bird|^|ect...
I want to just take "cat" out of the list.

_________________
[url=\'http://www.zerographics.org/forums\']http://www.zerographics.org/forums[/url]


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

Joined: Wed Mar 24, 2004 9:05 pm
Posts: 5
Location: Canton, NY
Post 
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 http://www.informit.com/bookstore/product....2323257&redir=1

I hope this helps.

Harvey
http://www.designdelineations.com


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:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.