SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    All scripts with the copy function don't work.

    Hello,

    I've tried a lot of scripts using the copy function, even the one from php.net, but they all fail to work. I just need a script that copies a file in a certain directory, and put the copy into another directory.

    Would I have to configure something in my php.ini file? Well, I hope to get this sorted out. Thank you to anyone that helps.

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you need to make sure the directory your tring to copy the file into, is writable by php.

    i imagine your getting an error message. error messages are key to helping you solve your problems.

  3. #3
    SitePoint Member
    Join Date
    Jul 2006
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I would like to copy HTML, PHP, and GIF files. Also, I don't get any error messages, infact I don't get anything at all - just a blank page.

  4. #4
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    post some code.

  5. #5
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Cardiff
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    turn error reporting on in .htaccess to help you debug the errors
    PHP Code:
    php_value display_errors on 
    Thanks
    Paul
    1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21


Bookmarks

Posting Permissions

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