For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > March 2004 > How to send a file to shell account









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to send a file to shell account
Marcin Zmyslowski

2004-03-31, 4:31 pm

Could anybody be so kind and write a function (in file:
"upload_single.phtml") who will send a local file to server (I mean shell
account, where I have to login and give password).
I would like to use such a method to get the file name:

$VARIABLE="<form action=\"upload_single.phtml\" method=\"post\"
enctype=\"multipart/form-data\">
Sent a file: <input type=\"file\" size=\"80\" name=\"thefile\">
<input type=\"submit\" name=\"Submit\"
value=\"Sent\"></form>";

print($VARIABLE);

Thank you in advance
Marcin


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com