Thread: PHP Help!
View Single Post
Old 14-03-2005, 12:03   #12
Strzelecki
Inactive
 
Join Date: Jan 2004
Location: Essex
Age: 43
Services: 80/20Mbps FTTC on Freeola
Posts: 871
Strzelecki has reached the bronze age
Strzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze ageStrzelecki has reached the bronze age
Re: PHP Help!

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!
Strzelecki is offline   Reply With Quote