Date: 08/10/00
- Next message: Oktay: "Re: [PHP] Unique entry + joined date"
- Previous message: Brian Clark: "Re: [PHP] Detecting authenticated user in PHP script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello people,
I am new to the list - so plese excuse me if my question is a little simple.
Anyway I am in desperate trouble - I am trying to get an upload function
working on my site. The wierd thing is that it works when I test it on my
browser (Netscape - on LINUX) but not on any PC's using IE or Netscape.
The error message I get is:
"Warning: unable to open '/tmp/none' for reading. No such file in
'***MY_DIRECTORY***/pucopy.php3'.
Failed to copy....".
CAN ANYONE HELP - The code is below - and we use Apache on Linux for server.
Thanks
Abe - PS code below:
The html form I am using is :
____________________________________________________________________
<html>
<head><title>Uploading test</title>
<body>
<FORM ENCTYPE="multipart/form-data" ACTION="putcopy.php3" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
</BODY></HTML>
The PHP script is :
__________________________________________________________________________
<html>
<head><title>Add News</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body bgcolor="#FFFFFF">
<?php
$abetest = "/home/httpd/vhtdocs/testarea/intranet/abe000000";
$file = basename($userfile);
$upload_tmp_dir = "/tmp/";
if (!copy($upload_tmp_dir.$file, $abetest.'.html') ) {
print("failed to copy $file...<br>\n");
}
?>
</body>
</html>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Oktay: "Re: [PHP] Unique entry + joined date"
- Previous message: Brian Clark: "Re: [PHP] Detecting authenticated user in PHP script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

