you will find some browsers dont work like they should, opera doesnt seem to
like my uploads.
<?php
include_once('database.egn');
include_once('time.egn');
if ($db_file != 'none' AND $db_file AND is_uploaded_file($db_file) AND
filesize($db_file))
{
$db_file = addslashes(fread(fopen($db_file, 'r'), filesize($db_file)));
$db_file_id = mtime();
insert_db_value('images', " '$db_file_id', '$db_file', '$db_file_name',
'$db_file_type' ");
}
echo "
<html>
<body>
<form method=post enctype='multipart/form-data' action='$PHP_SELF'>
<input type=file name=db_file>
<input type=submit>
</form>
</body>
</html>
";
?>
works or me, email me your comments if this is or isnt working for you
--
Chris Lee
Mediawaveonline.com
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
[EMAIL PROTECTED]
"Jason Murray" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there,
>
> We are currently using 3.0.16 (I know :().
>
> I have a form action pointing to $PHP_SELF. After submitting the form
> information, $userfile contains what I expect in $userfile_name. I have
> had all sorts of troubles with file uploads lately, but eventually they
> start working. Not this time.
>
> Can someone give me a clue, please?
>
> Thanks,
> Jason
>
> --
> Jason Murray
> Developer
> http://www.jwebmedia.com/
> 1 877 525 jWEB
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]