note 6044 deleted from function.fgetss by sniper

From: Date: Sat, 03 Jan 2004 02:47:31 +0000
Subject: note 6044 deleted from function.fgetss by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-62839@lists.php.net to get a copy of this message
Note Submitter: dragonzap1@aol.com ---- fgetss() doesn't quite work right on HTML files with tags spanning more than one line. I'm assuming that this is because it only takes the file one line at a time. If you want to strip all HTML tags from a file, use $file_text = strip_tags(join('',file($filename))) instead. (You may also wish to split()/explode() it by "\n" after.)

« previous php.notes (#62839) next »