Current location: Hot Scripts Forums » Programming Languages » PHP » PHP and TXT file


PHP and TXT file

Reply
  #1 (permalink)  
Old 07-09-03, 10:02 PM
Vyrus Vyrus is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
PHP and TXT file

I have a we page that is built on PHP, and i would like it to grab certain words from a .txt file and display it on that php web page when people view it.

EXAMPLE:
-------------
The web page need to look for X2 in a txt file that will display HELLO on the web page.





Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 07-09-03, 10:11 PM
Cagez's Avatar
Cagez Cagez is offline
Eeew, dirty!
 
Join Date: Jun 2003
Location: Toronto, Ontario
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
What do you mean "certain" words? You want to filter through the file and only get certain words?
Reply With Quote
  #3 (permalink)  
Old 07-09-03, 11:03 PM
Vyrus Vyrus is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
yes like if the text has:

-----------------------------------
hello i am testing for now
-----------------------------------

I want the php on the web page to take HELLO out and display it on the site
Reply With Quote
  #4 (permalink)  
Old 07-10-03, 08:57 PM
Vyrus Vyrus is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
no help?
Reply With Quote
  #5 (permalink)  
Old 07-10-03, 09:50 PM
BdSBB BdSBB is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Georgetown, TX
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
I don't think anyone understands what you want. Could you clear it up anymore?
__________________
-- BdSBB
Reply With Quote
  #6 (permalink)  
Old 07-11-03, 12:21 AM
Cagez's Avatar
Cagez Cagez is offline
Eeew, dirty!
 
Join Date: Jun 2003
Location: Toronto, Ontario
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, you want the first word out of the file, first few words, only the words you want... What?
Reply With Quote
  #7 (permalink)  
Old 07-11-03, 09:19 PM
Steven Steven is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Singapore
Posts: 81
Thanks: 0
Thanked 0 Times in 0 Posts
I think he wants some specific words in a text file to be taken out and printed on his web.
Reply With Quote
  #8 (permalink)  
Old 07-11-03, 10:58 PM
Vyrus Vyrus is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally posted by Steven
I think he wants some specific words in a text file to be taken out and printed on his web.
exactly, sorry i didnt know it wasn't clear enough, my bad.
Reply With Quote
  #9 (permalink)  
Old 07-12-03, 12:20 AM
Man Down Man Down is offline
HS Staff
 
Join Date: Jun 2003
Location: Maryland
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
If you know what word you want printed on the website why not just make it print it on the website automatically?
__________________
Man Down
Reply With Quote
  #10 (permalink)  
Old 07-12-03, 12:28 AM
Vyrus Vyrus is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
*EDIT* Nevermind using PHP and TXT files. please close this thread, i'm gonna start a new one with just php.

Last edited by Vyrus; 07-12-03 at 12:53 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:22 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.