Page 1 of 1

Problems with copy() on SunOS

Posted: Tue Sep 02, 2003 7:50 am
by axis
Hi
Seems there are some strange behavor.

I simply trying to make
copy ($source, $dest);
It does but only untill the file size do not exceed 4M. If so then it create the file, but cut out all the content above 4 M.
Is it bug or provider trick?

Secondly then I try to make fopen() and fread() large files I got 500

Really it is weird.

Posted: Tue Sep 02, 2003 1:18 pm
by Stoker
I really have no idea why, perhaps something to do with memory limits of the owning process.. you could try letting the os do it with something like

exec ('/bin/cp '.escapeshellarg($source).' '.escapeshellarg($dest));

Safe mode on

Posted: Thu Sep 04, 2003 3:02 am
by axis
Thanks Stoker
It is a good advice but I'm bounded with safe_mode. May be someone know how to work around the access to shell with safe_mode_on.