On Wednesday 27 March 2002 15:33, David McInnis wrote: > OK. But I am not changing the permissions. How am I setting the x bit? > I am not doing anything in my code except executing a copy() or > move_uploaded_file(). Is my server not configured correctly? If so, how > do I change the default permissions? > > By the way, move_uploaded_file() sets completely different permissions > [-rw-------]than copy() [rwxr-xr-x]. I still say . . . "strange".
Have a look at the umask() function. If that doesn't solve your problem you can always explicitly set the permissions after moving/copying using chmod(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* If you lived today as if it were your last, you'd buy up a box of rockets and fire them all off, wouldn't you? -- Garrison Keillor */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php