Thanks to everyone who helped me figure this out.
I foolishly didn't realize that I was using the htmlspecialchars() function
on the string that I was pulling from the file, but not accounting for that
in the regexp. So, what I was getting was:
BLAH BLAH BLAH
but wh
Sent: Wednesday, November 14, 2001 11:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I suck at regular expressions!
I am trying to get the title of an html file... you know, the string
between the < title > and < /title > tags...
Here is the function I've got so
I am trying to get the title of an html file... you know, the string
between the < title > and < /title > tags...
Here is the function I've got so far:
function fileTitle($fileName) {
$myFile = fopen($fileName, "r");
$myText="";
while (!feof($myFile)) {
3 matches
Mail list logo