Re: Client script problem



Yes u r right the "opendir" function returns FALSE. Now I am on the
right track, Thanks.
The scenario is like this I want to upload a file on FTP site in a
perticular directory, for this I am giving browse button at client
script, when the user submits then I want this selected file is to be
uploaded on FTP server. Now please guide me.


As far as I know you can't do it this way (allow user to select
file and upload it via FTP).
PHP is working on the webserver, so it is unable to list files available
on user machine and it's unable to get the file from the user machine.
You can create HTML form and place <input type="file" ... /> field
in it to allow user to select and upload (via HTTP protocol) the file
to the webserver (it has to be configured to allow HTTP file upload)
by submiting the form. The script which gets the form submission results
has to move the file to target location (maybe via FTP to some other
server or simply move it to other webserver folder). You will have
no control over user actions, so the user can select file from any
folder on his/her computer.


There's also something wrong with the webserver configuration if "opendir" returns FALSE and you get no warning message even with error_reporting set to E_ALL.


Hilarion .



Relevant Pages

  • Re: Publisher and 1&1
    ... In other words, clean up the folder. ... change the FTP proxy settings to allow ... To use Publisher read the following ... this is your root directory and where you upload your Publisher ...
    (microsoft.public.publisher.webdesign)
  • Re: hmt will not load in FTP client after proxy server problems.
    ... what things you have to format differently when you build a webpage. ... Now as per the FTP issue. ... off the server, and upload new ones. ... index.htm file and the index_files folder that contain the supporting ...
    (microsoft.public.publisher.webdesign)
  • Re: hmt will not load in FTP client after proxy server problems.
    ... Publisher is a DTP with limited web building capability. ... Now as per the FTP issue. ... off the server, and upload new ones. ... index.htm file and the index_files folder that contain the supporting ...
    (microsoft.public.publisher.webdesign)
  • Re: Publisher and 1&1
    ... change the FTP proxy settings to allow access ... To use Publisher read the following article: ... I do that the destination menu greys out. ... 1&1 is not really clear about how and where to upload your files. ...
    (microsoft.public.publisher.webdesign)
  • Re: hmt will not load in FTP client after proxy server problems.
    ... Now as per the FTP issue. ... the free FTP client FileZilla: ... off the server, and upload new ones. ... index.htm file and the index_files folder that contain the supporting ...
    (microsoft.public.publisher.webdesign)