Re: POPUP window in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Captain wrote:
My requirement is, i want to upload one file. i am checking whether it
exists or not in Server side.

Your script will have to work in stages, generating a page and sending to the browser on each stage: 1. Make a form to upload a file for the user to submit - this is just ordinary HTML. 2. Once the form is submitted to your script, process the file: check if it already exists. If it does not, just move the file to a permanent location and go to step 4. If it does, move it a temporary location on the server, and generate a page with a second form, asking the user whether they want the file replaced. 3. Once the form from step 2 is submitted, if the file is to be replaced, move the file from its temporary location to the permanent location.
4. Generate a page saying the operation went through fine.

  For a reference on file uploads, check the online documentation:
http://www.php.net/manual/en/features.file-upload.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux