NYCPHP Meetup

NYPHP.org

[nycphp-talk] Changing UNIX shadow passwords with PHP

Daniel Convissor danielc at analysisandsolutions.com
Tue Mar 15 17:48:01 EST 2005


On Tue, Mar 15, 2005 at 04:07:21PM -0500, Atul Ohri wrote:
> yet to find an efficient file locking mechanism that will work for both 
> Perl and PHP.

mv.  Have the cron job move the file before using it.  Have the PHP/PERL
scripts create the file over again if it doesn't exist.

By the way, you better make damn sure you carefully screen the input and 
disallow any harmful characters.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list