Send file to linux server
<p>I'm kind of new to php, and i'm trying to send a file through ftp to a computer that's runs 
"Centos 6" (Linux server). 
My code is :</p>

<pre><code>&lt;?php
$ftp_server = "XX.XXX.XXX.XXX";
$ftp_user = "user";
$ftp_pass = "password";

//set up a connection or die
 $conn_id = ftp_connect($ftp_server,22) or die("Couldn't connect to $ftp_server"); 
 ftp_pasv($conn_id, true);

 //try to login
 if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) {
    echo "Connected as $ftp_user@$ftp_server\n";
 } else {
    echo "Couldn't connect as $ftp_user\n";
 }

  //close the connection
 ftp_close($conn_id);  
?&gt;
</code></pre>

<p>I'm running the latest versions of Mysql and Apache, and also disable the firewall in the server. I can get to the server with Filezilla but only if i use port 22.</p>

<p>Thanks in advanced</p>
