Closed Thread
Results 1 to 2 of 2

Thread: file uploding problem(plz help hurry)

  1. #1
    mobiledumper is offline x10Hosting Member mobiledumper is an unknown quantity at this point
    Join Date
    Apr 2008
    Posts
    1

    file uploding problem(plz help hurry)

    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..

  2. #2
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: file uploding problem(plz help hurry)

    This is the Spanish section. To get support post in the correct section.
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

Closed Thread

Similar Threads

  1. Internal Serve Error
    By xaakx in forum Free Hosting
    Replies: 6
    Last Post: 02-03-2008, 08:02 AM
  2. help!!
    By retro-bliss in forum Free Hosting
    Replies: 25
    Last Post: 12-07-2007, 01:12 PM
  3. Replies: 8
    Last Post: 12-03-2007, 04:12 PM
  4. php version
    By loveispoison in forum Free Hosting
    Replies: 10
    Last Post: 11-21-2007, 10:53 AM
  5. Converting a .RMVB file
    By SEŅOR in forum Off Topic
    Replies: 7
    Last Post: 06-19-2006, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers