PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
<?php
exec('mkdir hello');
?>
well php has its mkdir function. but actually i want to execute the linux shell commands in php file. and next thing Is there any permissions i have to provide to execute such things?
I'm not that sure, but it's something to do with the user under which PHP or Apache is running. The PHP manual will probably have something about it, or it'll be in the comments http://www.php.net/manual/en/function.exec.php