then use `cp source destination`
that should work.
raisinlove wrote:
Raditha Dissanayake wrote:
Hi,
Are you trying to copy from the FTP to the web server or are you trying to pass it through to the end user? if you are on the same network other options include RCP (insecure) and SCP (secure)
Actually, it's much simpler than that but it might be overkill.
My overall script is for creating directories on the same server, and I'd like to copy the main index file to each new directory that is created. So my intention is exactly the same as copy() since it's on the same server.
I'm exploring other alternatives because I cant see to get copy() working as I intend.
-s
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php