Re: [PHP-DB] Renaming a file uploaded by a form.

2003-01-04 Thread Jeffrey_N_Dyke
t;[EMAIL PROTECTED]> cc: 01/04/2003 Subject: Re: [PHP-DB] Renaming a file uploaded by a form.

Re: [PHP-DB] Renaming a file uploaded by a form.

2003-01-04 Thread [EMAIL PROTECTED]
Thanks for all your help. I got the file OK and I figured out how to rename it and make it an attachment to an email. But one thing is not working for me. When I look for the mime type I get the following error: Fatal error: Call to undefined function: mime_content_type() When I call it to de

Re: [PHP-DB] Renaming a file uploaded by a form.

2003-01-01 Thread Jeffrey_N_Dyke
copy($_FILES['userfile']['tmp_name'],"/real/path/to/$_FILES['userfile'] ['name']"); what you really want is... http://www.php.net/manual/en/features.file-upload.php hth jeff

Re: [PHP-DB] Renaming a file uploaded by a form.

2003-01-01 Thread Jason Wong
On Thursday 02 January 2003 07:25, [EMAIL PROTECTED] wrote: > I have a script that uploads form data to a MySQL server then emails the > form data to alert people that an upload occurred. > > I am having trouble getting the form to upload my file with the actual > filename. The filename seems to b