Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: php cmd-line functions



I tend to batch out stuff like this using a cron job and entries in a mysql table. Will they setup a cron job for you on the server?

The cron job could run as the user who owns that directory so you wouldn't have any security problems.


On Oct 30, 2003, at 3:16 PM, Rob Maurizi wrote:

Hey all... I'm trying to slap together a quick & dirty CMS for a client and I'm having trouble writing back to the files. All permissions default to 644, and I'd like to be able to write to any file without having to change them away from their default settings.

My plan is to chmod the file 646, write to it, close it, and then chmod it back to 644, but I'm getting errors that I can't chmod the file becuase I (the web server) don't own it. So, I'm trying to chmod using exec, but that doesn't seem to work either...

Anyone run into an issue like this and/or seen a workaround?

I can't change anything about the server configuration, so I need to do this all from the script level.

Thanks!
-Rob

--

Rob Maurizi | rhm design
email@hidden
www.rhmdesign.com
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.




Lucas Holt email@hidden ________________________________________________________ FoolishGames.com (Jewel Fan Site) JustJournal.com (Free blogging)

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former."
- Albert Einstein (1879-1955)
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.

References: 
 >php cmd-line functions (From: Rob Maurizi <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.