PHP ftp_raw() Function
Complete PHP FTP Reference
Definition and Usage
The ftp_raw() function sends a raw command to the FTP server.
Syntax
ftp_raw(ftp_connection,command)
|
Parameter |
Description |
ftp_connection |
Required. Specifies the FTP connection to use |
command |
Required. Specifies the command to execute |
Tips and Notes
Note: This function returns the server response as an array of strings.
No parsing is performed, and ftp_raw() does not check if the command was
correct.
Example
<?php
$conn = ftp_connect("ftp.testftp.com") or die("Could not connect");
print_r (ftp_raw($conn,"USER admin"));
print_r (ftp_raw($conn,"PASS ert456"));
ftp_close($conn);
?>
|
The output of the code above will be:
Array ([0] => 331 User admin, password please)
Array ([0] => 230 Password Ok, User logged in)
|
Complete PHP FTP Reference
Make your web applications look like a million bucks
|
|
Most web applications today use boring methods to present data to their viewers using grids or simple HTML tables. FusionCharts induces "life" into the web applications by converting monotonous data into lively charts, gauges & maps.
FusionCharts works with all technologies like ASP, ASP.NET, PHP, ColdFusion, Ruby on Rails, JSP, HTML pages etc.
and connects to any database to render animated & interactive charts. It takes less than 15 minutes and no expertise
whatsoever to build your first chart and just a glance of it to captivate your audience. This fact is endorsed by our
12,000 customers and 150,000 users which include a majority of the Fortune 500 companies.
And yeah, your applications could look like a million bucks by spending just $69.
So go ahead, download your
copy of FusionCharts and start "wow-ing" your customers now!
|
|