Quote:
|
Originally Posted by Strzelecki
class.php
PHP Code:
<?php
function autom($wapurl, $indexurl){ $msg = "wapurl: $wapurl\n\n"; $msg .="indexurl: $indexurl"; } ?>
|
__________________
Quote:
|
Originally Posted by HxBro
couple of things, fileid won't be random enough, i use :
$server_filename = md5(microtime() . $_FILES['upfile']['name']) . $extension;
|
can't do that, has to be a string a 4 numbers, these are entered using a mobile phone via WAP, so using a short string of numbers is easy for the user.
Quote:
|
Originally Posted by HxBro
2nd, is the directory /var/www/htdocs/prin/u1r08/wap/uploaded/ actually there and read/writeable by the user the webserver runs as
|
yep, as stated, works fine for smaller files so must be, CHMODed to 777
Quote:
|
Originally Posted by HxBro
3rd, try using move_uploaded_file($_FILES['upfile']['tmp_name'][$idx], $dst)
instead of the copy
|
Tried that, does exactly the same thing!

Sorry about this, been driving me mad, probably something simple too!