Multiple targets with fscanf

From: Date: Fri, 01 Aug 2003 08:37:41 +0000
Subject: Multiple targets with fscanf
Groups: php.general 
Request: Send a blank email to php-general+get-157906@lists.php.net to get a copy of this message
Hello! I'll get strait to the point: I want to include a header from another site ($fp = fopen("www.something.info/news.html", "r")) using the fscanf command, The headers are in "<li>..." tags and I'm usign $a = fscanf($fp, "<li>%s"). the problem is, that if I use this, I get only the first word in the header, but I would like to get the whole line until the next <li>. Thanks in advance Denis 'Alpheus' Cahuk P.S: I am not suscribed to the ML so reply to the mail directly please.

« previous php.general (#157906) next »