Does anyone have experience with the escapeshellarg command within a system() call?
Here is my code:
$path = "/home/mydriectory/";
$path .="$username";
system('mkdir ' .escapeshellarg (path2), $B);
The problem is that code does not create the directory for me. However, if I pass just the $username into the escapeshellarg($username) it will create the directory in the same directory as the script.
I am pretty sure it is the / forward slashes that are causing the problem....would I need to escape the forward slashes for some reason? If so, how would i go about doing that?
Thanks,
Damion