Hi,
i want to create a directory with the function exec() on my server using shell command 'mkdir' when a custom.php file executes.
<?php
exec('mkdir hello');
?>
but it is not not creating the directory.
any help.....
thanks
can exec() function execute the shell commands.
Moderator: General Moderators
-
Darkzaelus
- Forum Commoner
- Posts: 94
- Joined: Tue Sep 09, 2008 7:02 am
Re: can exec() function execute the shell commands.
use the php version:
Code: Select all
mkdir('hello');
- Bill H
- DevNet Resident
- Posts: 1136
- Joined: Sat Jun 01, 2002 10:16 am
- Location: San Diego CA
- Contact:
Re: can exec() function execute the shell commands.
Also make sure that you have permission on the server.