Posted by Max on 08/11/05 05:45
Did you check /var/log/httpd/error_log?
Try:
<?
$result = `cp -v /files/* /newdirectory`;
print $result;
?>
You could also try using the PHP command 'copy' although you have to be real
careful with permissions.
Max
"David" <test@test> wrote in message
news:Xns96AEDBD6392A4testtest@38.119.71.69...
>I was trying to execute a system command on my server from a php page to
> copy files from one directory to another.
>
> example:
>
> <? system ('cp /files/* /newdirectory') ?>
>
> This did not copy the files, I also tried doing a chown nobody
> /newdirectory since php runs under nobody user. This still did not work.
> Any suggestions?
>
> ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet
> News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
> Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption
> =----
[Back to original message]
|