The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
chmod directory threw php ?
I am working on a hack for vbulletin and another program integration. The only problem I am having is
I run this command in one of the scripts: PHP Code:
Warning: chmod failed: Operation not permitted on line xx is there another command I can use to chmod ? or do I have to do something to my server to allow php to chmod ? Any ideas will help thanks |
#2
|
||||
|
||||
Cant you just CHMOD the directory through your FTP?
|
#3
|
|||
|
|||
yeah I probadly could but for this script to work it has to beable to chmod threw the script in order to make a directory for the user
|
#4
|
||||
|
||||
Oh I see
Sorry, I dont kno anymore (PHP Beginner) |
#5
|
|||
|
|||
Yeah I am too ...this will be my first full script ever doing kinda easy when you do enough research then you run into little problems that just get you so well lol you know.
everything works great except for this part Kind of a bummer if I can't that part working |
#6
|
||||
|
||||
Stupid question but does $p_directory exsist for your hack? Maybe thats why it doesnt work?
|
#7
|
|||
|
|||
yeah it exsist ...I also tried just make it without a varible
like /home/name/bla/dir but that don't work either |
#8
|
||||
|
||||
I was just about to suggest replacing the varible with the proper dir name. *Cant think of anything else*
|
#9
|
|||
|
|||
That makes a direcory in the web dir (like public_html)right ?
This will be making a directory outside the public like in the /etc dir. |
#10
|
||||
|
||||
I made the script do this
Lets pretend I name the sub food, so i put food in the field of the form and press submit and then the script does the following Make a directory in /home/ called food, then makes a folder in /home/food/ called public_html and chmods both of those folders to 777, and then in the directory /home/food/public_html/ it creates a file called index.html that says The Subdomain food has been successfully created. I have a live demo for you if you want. Regards Drk |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|