Here is the exact way I got file uploads to work.

In php.ini make sure path looks like this:

C:\path\to\uploads\

Note the \ at the end of the path

Find the line below, its about line 871
// Doesn't support it, so we write our own function

else {
$filename = $userfile;
if (!$tmp_file = get_cfg_var('upload_tmp_dir')) {
$tmp_file = dirname(tempnam('', ''));
}
$tmp_file .= '/' . basename($filename);
$validfile = (ereg_replace('/+', '/', $tmp_file) == $filename);
if ($validfile) {
$goodfile = "yes";
}
}

if ($goodfile == "yes") {

Comment the above block of code out. You will be commenting out roughly from lines 872 to 884

Then at line 897 you should see:

$dbh -> do_query($query);

Just below it comment out the } should be on line 898 by itself.

The line numbers might be off. My copy of w3t is hacked up pretty much so that's why I posted the block of code to comment out.

It took me a lot of time to find the problem and it isn't a problem with the forum code but is a problem with php for windows. I found it by adding some error checking to output any errors that I wasn't seeing when posting a message with attachments. If you need any more help finding the code to comment out let me know. Like I said my line numbers might be off because of the amount of changes I made.

[b]Extreme VB Forums -[/b] Visual Basic Help

[This message was edited by Extrm Bob on 21 Oct 01 at 07:47 PM.]