Re: POPUP window in PHP

From: Date: Mon, 09 Oct 2006 13:36:31 +0000
Subject: Re: POPUP window in PHP
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-242842@lists.php.net to get a copy of this message
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

« previous php.general (#242842) next »