Re: [PHP] fscanf syntax

2001-03-30 Thread Patrick Brown
=$intNumRecs;$i++) { > $aryNessusFields = explode("|", $aryNessus[$i]); > $hostname = $aryNessusFields[0]; > $protocol = $aryNessusFields[1]; > $number = $aryNessusFields[2]; > $severity = $aryNessusFields[3]; > $description + $aryNessusFields[4]; > // S

[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 you

[PHP] Novell LDAP and PHP?

2001-02-20 Thread Patrick Brown
Has anyone done any LDAP work with Novell's LDAPv3 server? --Pat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Getting LDAP attribute values

2001-02-20 Thread Patrick Brown
I'm trying to read some LDAP entries from a Novell LDAPv3 server on NetWare 5.1. Here's a piece of my code. $base = "ou=Corp, o=PMX"; $filter = "sn=*"; $attrib = array("lastLoginTime", "sn", "mail", "telephoneNumber", "homeDirectory"); // Search surname entry $sr=ldap_search($ds, $base, $filte

Re: [PHP] add user to ldap using php

2001-02-20 Thread Patrick Brown
This is code from a working script to add a user account to a Novell NDS database via Novell's LDAPv3. Hope this helps. //connect to LDAP $ds=ldap_connect("172.17.20.10"); // must be a valid LDAP server! if (!$ds) { echo "Connection to LDAP server failed"; exit(); } //bind to LDAP $r=ldap_bi

Re: [PHP] error handling

2001-02-14 Thread Patrick Brown
t;); } "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 d

[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 add

[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 || f.email.value.search(