How to give Path

Discussion in 'PHP' started by sonu21, Jun 4, 2012.

  1. #1
    Hi Friends,Can any one help me with this.I want to give path of Xampp.But,not getting where should I give the path below:

    <?php
    // Edit upload location here
    $destination_path = getcwd().DIRECTORY_SEPARATOR;

    $result = 0;

    $target_path = $destination_path . basename( $_FILES['myfile']['name']);

    if(@move_uploaded_file($_FILES['myfile']['tmp_name'], $target_path)) {
    $result = 1;
    }

    sleep(1);
    ?>
     
    sonu21, Jun 4, 2012 IP