Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001032

[PHP] fscanf syntax From: Patrick Brown (pbrown <email protected>)
Date: 03/30/01

I want to parse a file with the following syntax.

hostname|protocol|number|severity|description

Each record is on it's own line and have the fields delimited by the pipe
character |. The file may have thousands of records and I would like to
bring them into a database for reporting.

Some of you may recognize this a the file format of a Nessus security scan
file.

What function should I use and what would the syntax be?

Thanks,
Pat

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>