does exec() function execute the shell commands ?

Hi,

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:
<?php
exec('mkdir hello');
?>

but it is not not creating the directory.

any help.....

thanks

Comments

  • 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() http://php.net/function.mkdir
    that's how you should do it..

    bye
    http://0v1.ro
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!

Categories