The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
chmod() question
What would have to be done to allow chmod() to work prop?
My host took off open_basedir restrictions for my user, but it still would not work... Im writing a script to run on this host and this host alone, so it would be good if the files could be made writable and back again on demand. Host is running php4/a linux distro/apache1.3 TIA //peace |
#2
|
||||
|
||||
Quote:
|
#3
|
||||
|
||||
PHP Code:
And yes, the text file does exist and it is currently chmod()'ed to 644 (default). |
#4
|
|||
|
|||
did you tried also with full patch of file ?
like PHP Code:
|
#5
|
||||
|
||||
Yup, now that is tried too.
Warning: chmod(): Operation not permitted in /public_html/test.php on line 5 Bastard php |
#6
|
|||
|
|||
heh,
well maybe the host dosent allow chmod change at all can you change chmod via ftp or ssh cilent ? |
#7
|
||||
|
||||
Yes I can, that's not the problem. I want the script to be able to change chmod on command, since it will be writing to a config file which only needs to be writable while writing.
Host tried to enable chmod in php, but didn't know how to do it. I also looked through php.ini and theres nothing about "chmod" in there... |
#8
|
|||
|
|||
Sometimes the public_html folder is an alias of a www folder (ASO does this). IF this is the case.. change your path to /www/test.php to use the actual file directory and not an alias directory.
|
#9
|
|||
|
|||
can you give more info about your host ?
like php version and Os also please check if php is under safe_mode cuse some function dosent work with safe mode to check use this script PHP Code:
and please report. edit : YEP i was right chmod is disabled on safe mode you can find all of functions that dosent work with safe mode here lets hope this is the problem. |
#10
|
||||
|
||||
Quote:
Quote:
Thanks for the effort |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|