php - How to use FTP with ajax? -


Suppose I am sending an AJAX request to PHP from FAP:

  $ Connection = ftp_connect ($ server); $ Login = ftp_login ($ connection, $ ftp_user_name, $ ftp_user_pass);  

After this request I want to upload a file:

  $ upload = ftp_put ($ connection, $ dest, $ source, $ mode) ;  

Is there a way to send an AJAX request without having to keep the FTP connection on the server side and restore the FTP connection on the server side?

Thank you!

Hmm .. The only way to get to the brain is to apply the PPP process, and

But to be quite clear, you may want to reconsider your problem / however, some extra resources (file, shamme etc.) with AJAX process / tool combination here. It looks a bit like the old trash "If you've got a hammer, every problem looks like a nail". The main strength of PHP is that it is ready to clean all the resources claimed after handling a single request specifically handling the request. Other languages ​​/ platforms are more stable, and may be appropriate for what you are trying to do here. I'm thinking of the lines of Java or here on the net.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -