ftp site function syntax tag tutorial 2013
Alert! Connect with 10,000 Chating Online. Join Now
Php ftp site () function
Write your php code
(PHP 3>= 3.0.15, PHP 4 , PHP 5)
ftp_site -- Sends a SITE command to the server
Syntax bool
ftp_site ( resource ftp_stream, string command )
ftp_site() sends the given SITE
command to the FTP server.
SITE commands are not standardized, and vary from server
to server. They are useful for handling such things as file permissions and
group membership.
Parameters
ftp_stream
The link identifier of the FTP connection.
command
The SITE command. Note that this parameter isn't escaped so there may
be some issues with filenames containing spaces and other characters.
Return Values
Returns TRUE on success or FALSE on failure.
Examples
Example 1. Sending a SITE command to an ftp server
<?php /* Connect to FTP server */ $conn = ftp_connect ( 'ftp.example.com' ); if (! $conn ) die( 'Unable to connect to ftp.example.com' ); /* Login as "user" with password "pass" */ if (! ftp_login ( $conn , 'user' , 'pass' )) die( 'Error logging into ftp.example.com' ); /* Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server */ if ( ftp_site ( $conn , 'CHMOD 0600 /home/user/privatefile' )) { echo "Command executed successfully.\n" ; } else { die( 'Command failed.' ); } ?>
Php ftp site Function syntax tag
ftp site php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php ftp site syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.
Function index
Variables
Expressions
Operators
Control-Structures
Cookies
Array
Date & Time
Directory function
File
Image
Operators
Form data handling
Mathematics operators
Mail
Php Mysql
Network Functions
Strings
php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites