Re: fopen, how do i use it?
| From: | Martin A. Marques | Date: | Wed, 05 Jul 2000 21:46:53 +0000 |
| Subject: | Re: fopen, how do i use it? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5083@lists.php.net to get a copy of this message | ||
On Wed, 5 Jul 2000, Bart wrote:
> I tried to parse an externel html file into a string, but it only replies
> showing a single 1
> what am i doing wrong ?
>
> <?
> $fp = fopen("http://192.168.1.20/", "r");
> printf("%s",$fp);
> ?>
$fp is a int, not a string. Change your printf to make it look like this
printf(%d,$fp),
Bye!! ;-)
"And I'm happy, because you make me feel good, about me." - Melvin Udall
-----------------------------------------------------------------
Martín Marqués email: martin@math.unl.edu.ar
Santa Fe - Argentina http://math.unl.edu.ar/~martin/
Administrador de sistemas en math.unl.edu.ar
-----------------------------------------------------------------