does exec() function execute the shell commands ?


i want to create a directory with the function exec() on my server using shell command 'mkdir' when a custom.php file executes. i have written the following code in custom.php file. :banghead:
exec('mkdir hello');

but it is not not creating the directory.

any help.....



  • i am waiting guys please somebody help....
  • hi

    exec() should work, if you have enough rights
    for acces you should do a chmod too
    you can try system()
    I use it on my own server, but it depends of the webhost.

    in safe mode there are restrictions to safe_mode_exec_dir

    maybe you should look for mkdir()
    that's how you should do it..

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!