PHP Classes

Change file mod

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  Change file mod  
Subject:Change file mod
Summary:PHP 5 seems to work differently with the php chmod command.
Messages:2
Author:B. Hopkins
Date:2009-06-11 03:42:39
Update:2009-06-11 08:31:26
 

  1. Change file mod   Reply   Report abuse  
Picture of B. Hopkins B. Hopkins - 2009-06-11 04:34:41
I have a script that ran great in php4. It a directory with .html files. It left the files in a 777 permission state. When the site updated to php5, any file w/ a 777 permmission state gives a server 500 error. This goes away when I manually change the files (through an ftp program) to 755.

When I added the code to change the files to this permission when the file gets created, it doesn't seem to work and the .html file remains in the 777 state.

Is there some other command I need to use to get the php script to change the value within the script?

Kind Regards,

bh

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.