You are here: Re: system() « All PHP « IT news, forums, messages
Re: system()

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
> =----

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация