06-27-2010
If it consumes lots of resources it's been tuned to consume lots of resources. This is configurable.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello All,
I have a new HPUX system going into production and it will be used by 2 projects. One of the contract requirements is the 2 groups can not have access to the others work or data. I believe I have the system pretty well locked up using groups and permissions and selective mounting of... (2 Replies)
Discussion started by: DanL
2 Replies
2. UNIX for Advanced & Expert Users
We have a shared development box, running Solaris 10 that is an NIS client, all the developers have local root password. If they know the NIS uid of another user, they can just do
% useradd -u <uid> login
And then log in as that user and have full access to his files in his home directory. ... (3 Replies)
Discussion started by: nfw
3 Replies
3. Solaris
Dear
i have installed Solaris 10 on SUN V240
after installation i can not access system through root user
if i access system through any other user it conects but root is not connecting through LAN
if i connect through SC and then access root though cosole -f command it also works
kindly... (6 Replies)
Discussion started by: rizwan225
6 Replies
4. Cybersecurity
Dears
I want to prevent users from doing spesific command "history -c" or "history" in general
How can I do ? (4 Replies)
Discussion started by: reaky
4 Replies
5. UNIX for Dummies Questions & Answers
I have just set up a user on our system HP-Thru64. The user needs to be able to su to root after they login and this works fine. Users cannot login from root externally so you have to first connect as a user and then su. I am wondering is it possible for me to prevent the user from having telnet... (4 Replies)
Discussion started by: peragin
4 Replies
6. IP Networking
I have three PCs in a LAN network.
1. Solaris 10 10/09 x86 ip adres: 192.168.30.120 netmask:255.255.255.0
2. Solaris 10 10/09 x86 ip adres: 192.168.30.48 netmask:255.255.255.0
3. LINUX Suse 11 ip adres: 192.168.30.50 netmask:255.255.255.0
The heading for Suse Linux UDP packets to... (3 Replies)
Discussion started by: Lubo3D
3 Replies
7. Shell Programming and Scripting
Hi could some let me know how to prevent user from changing his home directory.......
Thanks in advance.... (1 Reply)
Discussion started by: Revanth547
1 Replies
8. Shell Programming and Scripting
Hi could some let me know how to prevent user from changing his home directory.......
Thanks in advance.... (6 Replies)
Discussion started by: rahul547
6 Replies
9. AIX
Hi Folks,
Any system admin did provide AIX file system control to prevent user/ admin accidentally remove database files ?
Thanks. (4 Replies)
Discussion started by: ckwan
4 Replies
10. UNIX for Advanced & Expert Users
Hi Experts,
Need your support
Redhat 6.5
I want to create a user with all(read, write, execute) privileges except that user should not be able to create any new user from his login
to perform any task. (10 Replies)
Discussion started by: as7951
10 Replies
LEARN ABOUT PHP
ftp_nb_fget
FTP_NB_FGET(3) 1 FTP_NB_FGET(3)
ftp_nb_fget - Retrieves a file from the FTP server and writes it to an open file (non-blocking)
SYNOPSIS
int ftp_nb_fget (resource $ftp_stream, resource $handle, string $remote_file, int $mode, [int $resumepos])
DESCRIPTION
ftp_nb_fget(3) retrieves a remote file from the FTP server.
The difference between this function and ftp_fget(3) is that this function retrieves the file asynchronously, so your program can perform
other operations while the file is being downloaded.
PARAMETERS
o $ftp_stream
- The link identifier of the FTP connection.
o $handle
- An open file pointer in which we store the data.
o $remote_file
- The remote file path.
o $mode
- The transfer mode. Must be either FTP_ASCII or FTP_BINARY.
o $resumepos
-The position in the remote file to start downloading from.
RETURN VALUES
Returns FTP_FAILED or FTP_FINISHED or FTP_MOREDATA.
EXAMPLES
Example #1
ftp_nb_fget(3) example
<?php
// open some file for reading
$file = 'index.php';
$fp = fopen($file, 'w');
$conn_id = ftp_connect($ftp_server);
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
// Initate the download
$ret = ftp_nb_fget($conn_id, $fp, $file, FTP_BINARY);
while ($ret == FTP_MOREDATA) {
// Do whatever you want
echo ".";
// Continue downloading...
$ret = ftp_nb_continue($conn_id);
}
if ($ret != FTP_FINISHED) {
echo "There was an error downloading the file...";
exit(1);
}
// close filepointer
fclose($fp);
?>
SEE ALSO
ftp_nb_get(3), ftp_nb_continue(3), ftp_fget(3), ftp_get(3).
PHP Documentation Group FTP_NB_FGET(3)