OrganizedChaos
MIS
Hi there, I am trying to make an interface to do some scripting tools I normally run from a bash script and convert them to php pages.
I need to figure out how to run the command from a webpage
This allows me to access files in /olddir by going to /newdir (I'm using it to isolate ftp directories)
So, I have figured out how to permanently enter this in the fstab file, but I would also like to put in the above code to make it active before a reboot.
I have tried
along with shell_exec() and system()... I am assuming that this is a permissions thing, but I dont know what I need to do to fix it?
I need to figure out how to run the command from a webpage
Code:
mount --bind /olddir /newdir
This allows me to access files in /olddir by going to /newdir (I'm using it to isolate ftp directories)
So, I have figured out how to permanently enter this in the fstab file, but I would also like to put in the above code to make it active before a reboot.
I have tried
Code:
exec("mount --bind /olddir /newdir");