ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-windows
php-windows
[PHP-WIN] Problems with fscanf
by extremdur2 other posts by this author
Sep 25 2006 11:47PM messages near this date
Re: [PHP-WIN] Re: Problems with fscanf [WORKAROUND] fgetc | [PHP-WIN] Problems with fscanf
Hello.

I'm trying to parse some XML files to get all in only one file, deleting the
first and last tag when needed. But when i try to read a line like this:


<ARTIST> The Communards</ARTIST>

with the code line:

fscanf($fr,"%s")

the output is the following:

<ARTIST> The

And i want to retrieve all the line without doing something like this:

fscanf($fr,"%s/t%s")

Because I have to adapt this line to the maximum spaces existing in a line
of the file... There isn't another better solution? Thank you :)
Thread:
extremdur2
extremdur2
Niel Archer

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved