Re: [PHP] Even more text document stuff!!

2001-09-24 Thread Philip Olson

look into the following functions (in the manual), play with the
examples then eventually implement the concepts into your script :

  file()
  fopen()
  fread()
  fgets()

the manual entries for the above functions contain examples that
essentially do what you want.  most likely you'll use file().  you should
get comfortable with arrays too.  also, look into stristr().

regards,
Philip Olson


On Mon, 24 Sep 2001, Kyle Smith wrote:

 Is i possible to make PHP CUT all of the contents of a text document out of it and 
make it into a variable?
 
 (yes i know, i havnt got to the mySQL section of the book yet!!!)
 
 
 
 -lk6-
 http://www.StupeedStudios.f2s.com
 Home of the burning lego man!
  
 ICQ: 115852509
 MSN: [EMAIL PROTECTED]
 AIM: legokiller666
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Even more text document stuff!!

2001-09-24 Thread Matthew Loff


Read the manual.  (Déjà vu?)

http://www.php.net/manual/en/function.fread.php

Even has an example that says -- get contents of a file into a string


-Original Message-
From: Kyle Smith [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 24, 2001 7:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Even more text document stuff!!


Is i possible to make PHP CUT all of the contents of a text document
out of it and make it into a variable?

(yes i know, i havnt got to the mySQL section of the book yet!!!)



-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!
 
ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]