![]() |
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 |
Cant you just CHMOD the directory through your FTP?
|
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
|
Oh I see:p
Sorry, I dont kno anymore (PHP Beginner) |
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 :( |
Stupid question but does $p_directory exsist for your hack? Maybe thats why it doesnt work?
|
:) yeah it exsist ...I also tried just make it without a varible
like /home/name/bla/dir but that don't work either :( |
I was just about to suggest replacing the varible with the proper dir name. *Cant think of anything else*
|
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. |
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 |
yeah that might work ....let me try real quick
|
nope didn't work. It is not making a directory in the web root :(
i am not trying to make a dir. see able by web users. here I will show you the code PHP Code:
this is for v2.0 of my neomail login hack. this will let people sign and have there webmail accoutn created auto. yes there is more then just that to this script, but that is what I am trying to do as of now |
$p_directory is a dir. that is specified early in the script
|
well on my servers i have openwebmail and neomail. every user account gets neomail by default.
|
so could i change ownership with the script ? I wouldn't really wnat to do that it seems like it would security risk :(
maybe i should just make something that would post to a private forum that they want and email address and then just make it and give them a link to the login script once it is created :( |
how to change ownership?
|
I think its like chown();
Not sure on that, but It should be that. |
k :) i will tell you if it works :) i think i am going to take a break for now
|
All times are GMT. The time now is 09:38 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|