Hi,<br><br>I need some help in uploading large files to twisted server.<br>I
want to upload large files on twisted server using php.But as php has
limit of 24MB, I decided to use ftp functions of php to upload large
files.I am running ftp server written in twisted.When i try to upload a
file using any ftp client then its working fine but when i use a php
script for ftp file upload then it is not working.Initially when i
tried to upload file using same php script but without passive mode ,
it created a file on server but the size of file was 0 bytes.When i
added a line to switch to passive mode now it doesn&#39;t go beyond a
function to switch passive mode and connection to server gets timed
out.Here is my php code<br>
<br><br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">&lt;?php<br>$ftp_server=&#39;localhost&#39;;<br>$ftp_user_name=&#39;chetan&#39;;<br>

$ftp_user_pass=&#39;chetan&#39;;<br>$file = &#39;av.jpg&#39;;<br>$remote_file = &#39;av.jpg&#39;;<br><br>$conn_id = ftp_connect($ftp_server, 8002);<br><br>$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);<br>

<br>ftp_pasv($conn_id, true);<br><br>if (ftp_put($conn_id, $remote_file, $file, FTP_BINARY)) {<br> echo &quot;successfully uploaded $file\n&quot;;<br>} else {<br> echo &quot;There was a problem while uploading $file\n&quot;;<br>

}<br><br>ftp_close($conn_id);<br>?&gt;<br><br></blockquote><br> Or is there any other way i can upload large files on twisted server ?