PHP fwrite question

Discussion in 'PHP' started by . Jordan ., Apr 28, 2010.

  1. #1
    Okay so I'm looking into using the fwrite() function to log IP addresses when a user uploads an image on my site. So basically, my question is... can fwrite() write to files with a password protected directory or is more coding required for this?
     
    . Jordan ., Apr 28, 2010 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    If the directory is protected via htaccess then yes you can use fwrite to write files in those directories.
     
    stephan2307, Apr 28, 2010 IP