PHP to Ruby
Convert PHP code into Ruby!
-
chmod
Posted on June 4th, 2009 No commentsThe chmod function is used to change the permissions (or mode) on a specific file or directory.
PHP
chmod('/home/ruby/file.php', 0777)
Ruby
File.chmod(0777, '/home/ruby/file.php')
Leave a reply


