Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com From: steve1800 AT iname DOT com MIME-Version: 1.0 Message-Id: <0004230049205P.26167@weba7.iname.net> Date: Sun, 23 Apr 2000 00:49:20 -0400 (EDT) Content-Type: Text/Plain Content-Transfer-Encoding: 7bit To: cygwin AT sourceware DOT cygnus DOT com Subject: Re: cygwin: php4b2 & apache1.3.9 ---- you wrote: > On Sat, Apr 22, 2000 at 11:51:13PM -0400, steve1800 AT iname DOT com wrote: > >I compiled the above and everthing was running > >very smoothly untill I attemped to use the > >php4 "Copy()" function. > > > >Copy() appears to copy the file, but it corupts the > >file in the proccess. > > This is probably due to the file being opened in "text mode". > If the program is using fopen, then it needs to add a "b" Thanks for your responce. I'm not using fopen(), just copy() and only testing that command by itself. I imagine php's copy is just the shells "cp". Also I'd like to say that i'm finding that the cygwin-apache/php4 crashes on any/all shell commands executed from within php. Thanks Steve > to the second argument, i.e. > > fopen ("foo", "rb"); /* or */ > fopen ("foo", "wb"); > > Without this, \n and CTRL-Z characters may cause odd things to > happen. > > Christopher Faylor > Cygwin Engineering Manager (and developer) > Cygnus Solutions, a Red Hat company > > -- > Want to unsubscribe from this list? > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com > ---------------------------------------------------------------- Get your free email from AltaVista at http://altavista.iname.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com