=$intNumRecs;$i++) {
> $aryNessusFields = explode("|", $aryNessus[$i]);
> $hostname = $aryNessusFields[0];
> $protocol = $aryNessusFields[1];
> $number = $aryNessusFields[2];
> $severity = $aryNessusFields[3];
> $description + $aryNessusFields[4];
> // S
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
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]
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
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
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
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
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(
8 matches
Mail list logo