Dear All,
I'm having a nightmare here. I've just finished my site and it's ready to upload. It is reliant on the move_uploaded file function. Unfortunately, I have my webspace with Webfusion who are running PHP Version 4.01. Apparently I need at least version 4.02 to use move_uploaded_file.
I'm fairly new to PHP and I'm wondering if anybody knows how I could rewrite the following code to be compatible with Version 4.01 of PHP...
$uploadpath=$samplesbasedirectory."$category\\";
$final_destination="$uploadpath".$samplefilename;
$sampledbaselink = "$category";
$source = $HTTP_POST_FILES['samplefile']['tmp_name'];
if ( move_uploaded_file( $source, $final_destination) ) {
echo 'File successfully stored.<BR>';
} else {
echo 'File could not be stored.<BR>';
}
If anybody can help, I'd be really greatful! Cheers,
Alex.