Found 1046 Articles for PHP

ezmlm_hash() function in PHP

Samual Sam
Updated on 30-Jul-2019 22:30:24

66 Views

The ezmlm_hash() function calculates the hash value needed when keeping EZMLM mailing lists in a MySQL database.Syntaxezmlm_hash(addr);Parametersaddr − The email address being hashed.ReturnThe ezmlm_hash() function returns the hash value of addr.ExampleThe following is an example −

ftp_systype() function in PHP

Samual Sam
Updated on 30-Jul-2019 22:30:24

36 Views

The ftp_systype() function returns the system type identifier of the FTP server.Syntaxftp_systype(con);Parameterscon − The FTP connectionReturnThe ftp_systype() function returns the system type on success, or FALSE on failure.ExampleThe following is an example −

ftp_ssl_connect() function in PHP

Samual Sam
Updated on 30-Jul-2019 22:30:24

229 Views

The ftp_ssl_connect() function opens a secure SSL-FTP connection.Syntaxftp_ssl_connect(host,port,timeout);Parametershost − The FTP server address. Can be a domain address or an IP address.port − The port to connect to. Here the default is 21.timeout − The timeout for network operations.ReturnThe ftp_ssl_connect() function returns a SSL-FTP stream on success or FALSE on error.ExampleThe following is an example −

ftp_size() function in PHP

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

43 Views

The ftp_size() function is used to get the size of a particular file on the FTP server.Syntaxftp_size(conn, myfile)Parametersconn − The FTP connectionmyfile − The server fileReturnThe ftp_size() function returns the size of the particular file in bytes on success.ExampleThe following is an example to get the size of file “new.txt” −

ftp_site() function in PHP

Samual Sam
Updated on 30-Jul-2019 22:30:24

31 Views

The ftp_site() function sends an FTP SITE command to the FTP server.Syntaxftp_site(conn,command);Parametersconn − The FTP connectioncommand − The SITE command. These commands vary from server to server and used in handling OS specific features such as file permissions and group membership.ReturnThe ftp_site() function returns TRUE on success or FALSE on failure.ExampleThe following is an example −

ftp_set_option() function in PHP

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

64 Views

The ftp_set_option() function sets runtime options for the FTP connection.Syntaxftp_set_option(conn,option,value);Parametersconn − The FTP connectionoption − The runtime option to set. The following are the possible values:- FTP_TIMEOUT_SEC- FTP_AUTOSEEKvalue − The value of the option parameter set aboveReturnThe ftp_set_option() function returns TRUE if the option could be set, or FALSE.ExampleThe following is an example −

ftp_rmdir() function in PHP

Samual Sam
Updated on 30-Jul-2019 22:30:24

41 Views

The ftp_rmdir() function deletes a directory on the FTP server. Remember that the directory to be deleted should be empty.Syntaxftp_rmdir(conn,dir);Parametersconn −The FTP connectiondir − The empty directory to be deleted.ReturnThe ftp_rmdir() function returnsTRUE on success or FALSE on failure.ExampleThe following is an example −

ftp_rename() function in PHP

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

219 Views

The ftp_rename() function renames a file or directory on the FTP server.Syntaxftp_rename(conn,oldname,newname);Parametersconn − The FTP connectionold_name − The file or directory to rename.new_name − The new name of the file or directoryReturnThe ftp_rename() function returns TRUE on success or FALSE on failure.ExampleThe following is an example −

ftp_rawlist() function in PHP

Samual Sam
Updated on 30-Jul-2019 22:30:24

55 Views

The ftp_rawlist() function displays the list of files with file information from a specified directorySyntaxftp_rawlist(conn,dir,recursive);Parametersconn − The FTP connectiondir − The directory pathrecursive − Sends a "LIST" command to the server by default.ReturnThe ftp_rawlist() function returns an array where each element corresponds to one line of text.ExampleThe following is an example to get a list of files with file information −

ftp_raw() function in PHP

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24

41 Views

The ftp_raw() function is used to sends raw command to the FTP server.Syntaxftp_raw(con, command)Parameterscon − The FTP connectioncommand − The command to executeReturnThe ftp_raw() function returns the server's response as an array of strings.ExampleThe following is an example −

Advertisements