file uploding problem(plz help hurry)

Status
Not open for further replies.

mobiledumper

New Member
Messages
1
Reaction score
0
Points
0
hi,
i have created site on x10hosting "www.mobiledumper.x10hosting.com/mainpage.html" this my URL
i want to upload text file from using php script but it not get uploaded there is any permission issuse
related to my URL which is given to me.
plz help me its so urgent because my application is not working plz hurry...

my php code :::
<?
$target_path = "./clientfolders/";

$var1 = $_FILES['uploadedfile']['name'];
$tok = strtok($var1, ":");
$tok2= strtok(":");
$tok3=strtok(":");


$target_path=$target_path.$tok2."/".$tok3."/".$tok;

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
{
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded";
} else{
echo "There was an error uploading the file, please try again!";
}


$myFile = "./clientfolders/".$tok2."/".$tok3."list.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, $tok."\n");
fclose($fh);
?>

is there any mistake in this script or any other script available plz send me..
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
This is the Spanish section. To get support post in the correct section.
 
Status
Not open for further replies.
Top