[PHP] fscanf syntax

2001-03-30 Thread Patrick Brown
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

Re: [PHP] fscanf syntax

2001-03-30 Thread Patrick Brown
Nessus[$i]); $hostname = $aryNessusFields[0]; $protocol = $aryNessusFields[1]; $number = $aryNessusFields[2]; $severity = $aryNessusFields[3]; $description + $aryNessusFields[4]; // Save the data into the database here } Regards Chris Patrick Brown wrote: I want to pars

[PHP] error handling

2001-02-14 Thread Patrick Brown
How can I disable the display of error to the browser window from within the script? I want to do a redirect based on the error and cannot because header info has already been sent. Thanks, Pat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] error handling

2001-02-14 Thread Patrick Brown
} "CC Zona" [EMAIL PROTECTED] wrote in message 96fcv5$2o0$[EMAIL PROTECTED]">news:96fcv5$2o0$[EMAIL PROTECTED]... In article 96faad$h9k$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Patrick Brown") wrote: How can I disable the display of error to the browser window from wi

[PHP] Form submision probs with Javascript and PHP

2001-02-09 Thread Patrick Brown
Here's my script. This is a known working script when I use ASP. Why won't is wotj with PHP. function submitForm(f, strPage) { errormsg = ""; if (f.login.value.length == 0) { errormsg = errormsg + "Please enter a login name.\n"; } if (f.email.value.search("@") == -1 ||