X-Spam-Check-By: sourceware.org
Message-ID: <43CAF207.3090203@webtent.net>
Date: Sun, 15 Jan 2006 20:08:23 -0500
From: Robert Fitzpatrick <lists@webtent.net>
Reply-To: robert@webtent.com
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Running php scripts under cygwin
References: <43CA8A92.2000409@webtent.net> <1137355920.7806.251903339@webmail.messagingengine.com> <43CAB25B.8070808@webtent.net> <43CAB584.49D4C018@dessent.net>
In-Reply-To: <43CAB584.49D4C018@dessent.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Brian Dessent wrote:
> Robert Fitzpatrick wrote:
>
>   
>> Thanks, yes, I want to use the script by cron, can you point out how
>> that will be done? I've found some cygwin cron stuff, but still no word
>> on exactly how I set that up under cygwin. I already thought I'd rewrite
>>     
>
> Install the cron package.  Read /usr/share/doc/Cygwin/cron.README.  Run
> /usr/bin/cron-config to install the service.  Start the service.
>
> >From there on everything works as it would on a unix system.  Edit the
> crontab file with "crontab -e", add the job, etc.
>
> BTW building a Cygwin PHP is no walk in the park.  Cygwin is not a
> supported platform by the PHP developers and their build system is so
> hacked up and brain dead that it does not understand simple things like
> the fact that binaries under win32 have the .exe extension.  It is
> relatively straightforward if you do a static build but to get a modular
> build you will probably have to delve into the guts of their painful
> build system.  Things might have changed in 5.x, but in 4.x it was a pit
> of hell.
>
> It would be much less work to just use native win32 PHP, which is
> actually supported and supposed to work.  Of course you will have to use
> win32 paths since it will not be a Cygwin application.
>   
Thanks for the tips. Luckily I came back to the list after trying to 
build PHP with some options with no luck. I only need a static build and 
that installed fine. Then I had a warning about using date() and set the 
default timezone prior to the call in the script to get by that. Now it 
says mail() is an unknown function. What is this missing?

--
Robert

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

