8 More Discussions You Might Find Interesting
1. Programming
Well, I think I must have this for Christmas!
Python on the Casio FX-CG50 with Data Acquisition
YT: CASIO fx-CG50 E-CON4 Movie
YT: Update Your CG50 Operating System. Now Includes Python! (OS update)
This is a great deal on Amazon!
See YT Code Tag Video (9 Replies)
Discussion started by: Neo
9 Replies
2. Shell Programming and Scripting
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
3. Shell Programming and Scripting
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Discussion started by: lowmaster
0 Replies
4. UNIX for Advanced & Expert Users
I'm trying to establish a jail on a FBSD 6.1 system and have a couple of questions on bringing up the daemon.
Under the jail man page there are two user flags that I am unclear on,
-u username The user name from host environment as whom the command
should run.
-U... (1 Reply)
Discussion started by: thumper
1 Replies
5. UNIX for Dummies Questions & Answers
FBSD 4.6
How do I colorize my konsole to see directories etc. Am able to get color in the shell with ls -GF in my .bashrc. But color does not show in KDE3 Konsole (Xwindows) for some reason.FBSD 4.6 (1 Reply)
Discussion started by: lancest
1 Replies
6. UNIX for Dummies Questions & Answers
i am running nat on my freeBSD and web/ftp server.
The rule allow ip from any to any must always be? or how? if i accept all packets to go on my ep0 which diverts all to my intranet it doesnt help, must the rule allow ip from any to any always be ?
even if many rules are between divert rule and... (3 Replies)
Discussion started by: hachik
3 Replies
7. UNIX for Dummies Questions & Answers
HI
i'm compiling my kernel with the support of this chipset.
In FreeBSD 4.2 and 4.3 I got no problem with the kernel, but with 4.4 I just can't get the kernel compiled with the soundcard support.
i added this to my kernel
device pcm
device snd
something wrong... (2 Replies)
Discussion started by: Stormpie
2 Replies
8. UNIX for Dummies Questions & Answers
hi
i got a problem. I use a fbsd box to share my (DSL)internet connection.
I got 2 networkcards in my fbsd box, but my networkcard 1 (to my modem) always go out. the led don't burn anymore and I lose my connection to the internet :(
but my networkcard2 (to my local network) doesn't go out,... (2 Replies)
Discussion started by: Stormpie
2 Replies
LDAP_CONNECT(3) 1 LDAP_CONNECT(3)
ldap_connect - Connect to an LDAP server
SYNOPSIS
resource ldap_connect NULL ([string $hostname], [int $port = 389])
DESCRIPTION
Establishes a connection to a LDAP server on a specified $hostname and $port.
PARAMETERS
o $hostname
- If you are using OpenLDAP 2.x.x you can specify a URL instead of the hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with
SSL support, configure PHP with SSL, and set this parameter as ldaps://hostname/.
o $port
- The port to connect to. Not used when using URLs.
RETURN VALUES
Returns a positive LDAP link identifier on success, or FALSE on error. When OpenLDAP 2.x.x is used, ldap_connect(3) will always return a
resource as it does not actually connect but just initializes the connecting parameters. The actual connect happens with the next calls to
ldap_* funcs, usually with ldap_bind(3).
If no arguments are specified then the link identifier of the already opened link will be returned.
EXAMPLES
Example #1
Example of connecting to LDAP server.
<?php
// LDAP variables
$ldaphost = "ldap.example.com"; // your ldap servers
$ldapport = 389; // your ldap server's port number
// Connecting to LDAP
$ldapconn = ldap_connect($ldaphost, $ldapport)
or die("Could not connect to $ldaphost");
?>
Example #2
Example of connecting securely to LDAP server.
<?php
// make sure your host is the correct one
// that you issued your secure certificate to
$ldaphost = "ldaps://ldap.example.com/";
// Connecting to LDAP
$ldapconn = ldap_connect($ldaphost)
or die("Could not connect to {$ldaphost}");
?>
SEE ALSO
ldap_bind(3).
PHP Documentation Group LDAP_CONNECT(3)