exec command help

Hello everyone!

I am having some odd issues with one line of code, and I cant figure it out…

[php]

<?php $site = hobos; $cmdout = exec('cd /var/lib/mysql/ && cp -r phpbb_blank/ $site/'); echo $cmdout; echo 'complete'; ?>

[/php]

The exec line is whats causing issues…
When I remove the variable from the command line, it functions, but with it, it returns as if successful (but it isnt).

Any ideas?

Sponsor our Newsletter | Privacy Policy | Terms of Service