Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: copy function

  1. #1
    Regular Coder
    Join Date
    May 2006
    Posts
    107
    Thanks
    1
    Thanked 0 Times in 0 Posts

    copy function

    Hi

    Please see:
    PHP Code:
    copy("tmp_file.txt","home/my_file.txt"); 
    This is the error i am getting:

    Warning: copy(tmp_file.txt) [function.copy]: failed to open stream: No such file or directory in C:\wamp\www\youtube\popular.php on line 2

    any help

  • #2
    New Coder
    Join Date
    Nov 2006
    Location
    INDIA
    Posts
    94
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try giving full path of source file.
    Use file_exists() command to ensure file exists.
    -------------------------
    Shailesh Patil
    -------------------------


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •