Upload file form
| From: | Jeff McKeon | Date: | Tue, 20 Apr 2004 14:20:57 +0000 |
| Subject: | Upload file form | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-183993@lists.php.net to get a copy of this message | ||
Ok, not exactly pure PHP problem but I hope someone here has seen this
before..
I'm got an upload form on a webpage, here's the code:
****SNIP****
?>
Select the file type and browse for that file. The press 'Upload'. The
file will be uploaded to the server.
No changes in the database are done during this step.
<FORM METHOD="POST" ENCTYPE="multipart/form-data" ACTION="<?php echo
$_SERVER['PHP_SELF'] ?>">
Form action: <?php echo $_SERVER['PHP_SELF'] ?><br>
Select CDR file type: <select size="1" name="ftype">
<option value='1:Stratos'>Stratos</option>
<option value='2:MVS'>MVS</option>
<option value='3:Xantic'>Xantic</option>
</select></p>
<P>
Browse for the file<P>
<INPUT TYPE="HIDDEN" NAME="MAX_FILE_SIZE" VALUE="200000000">
<INPUT TYPE="HIDDEN" NAME="action" VALUE="1">
<INPUT TYPE="HIDDEN" NAME="uid" VALUE="[OpSup]jsm">
CDR File: <INPUT TYPE="FILE" NAME="file1"
SIZE="80"><BR><BR>
<INPUT TYPE="SUBMIT" VALUE="Upload">
</FORM>
<?php
****SNIP****
I'm running this page on Redhat Linux 9 with an Apache ver 2 webserver.
The site itself is a virtualName site (All virutal sites share the same
IP address).
When I browse for the tile and select it, then press the submit button,
Instead of getting a delay as the file uploads, I get an instant error
page from the browers:
The page cannot be displayed: Cannot file server or DNS Error
Any ideas?
Thanks,
Jeff