#22008 [Opn->Bgs]: Function of fgetss
| From: | iliaa@php.net | Date: | Sun, 02 Feb 2003 20:44:05 +0000 |
| Subject: | #22008 [Opn->Bgs]: Function of fgetss | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-31901@lists.php.net to get a copy of this message | ||
ID: 22008
Updated by: iliaa@php.net
Reported By: airtravel@anet.ne.jp
-Status: Open
+Status: Bogus
Bug Type: *General Issues
Operating System: Red Hat Linux 7.2 + 7.3
PHP Version: 4.3.0
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
I think the problem you are seeing may stem from incorrect usage of the
fgetss() function. For that reason I am including a sample of a working
code for this function below
<?php
$fp = fopen("http://bugs.php.net/bug.php?id=22008",
"r");
while (($line = fgetss($fp, 4096)) !== FALSE) {
echo $line;
}
fclose($fp);
?>
Note that the output of fgetss gets compared to false, this is very
important because it is quite likely that fgetss() will return 'blanks'
if the line only contains HTML data.
Previous Comments:
------------------------------------------------------------------------
[2003-02-02 04:11:09] airtravel@anet.ne.jp
Also bug report confirmation page(report.php) doesn't show up correctly
because <TITLE> tag added in the middle of the body.
Try to submit something about 'fgetss' to reproduce this bug report
page issue.
------------------------------------------------------------------------
[2003-02-02 04:06:37] airtravel@anet.ne.jp
fgetss() funcion of PHP4.3.0 doesn't work in any way.
strip_tags(fgets()) works fine.
Scripts are working fine with <PHP4.2.3.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22008&edit=1