views:

47

answers:

0

This is a noob PHP writing to system question. Are there restrictions to php's copy() function writing within a password protected directory?

I'm trying to write the generated html content from a template page. I'm getting:

"401 Unauthorized The requested page requires authentication"

File permissions for the template file, destination (to be replaced file) and the generating file are all 755. The .htaccess password was alread entered when the siteadmin directory was accessed to run the generation scriptie.

Maybe someone can clear this up by explaining how PHP module in Apache is handled with unix permissions...

Chris

//UPDATE= This is caused by .htaccess. Evidently PHP can't read a URL on the site, even if the user has already gained access...