delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/15/15:36:32

X-Spam-Check-By: sourceware.org
Message-ID: <43CAB25B.8070808@webtent.net>
Date: Sun, 15 Jan 2006 15:36:43 -0500
From: Robert Fitzpatrick <lists AT webtent DOT net>
Reply-To: robert AT webtent DOT com
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Running php scripts under cygwin
References: <43CA8A92 DOT 2000409 AT webtent DOT net> <1137355920 DOT 7806 DOT 251903339 AT webmail DOT messagingengine DOT com>
In-Reply-To: <1137355920.7806.251903339@webmail.messagingengine.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Brett Serkez wrote:
>> You would think I could find lots of info on this subject, but for
>> some reason I can't. I found info from googling the subject and some
>> mention of building php with cygwin, but do not see PHP in cygwin
>> setup. I tried to run a php script from a cygwin prompt using the
>> php.exe installed into Windows, but get lots of module errors. Is it
>> possible to run a php script under cygwin. I just have a php script
>> that I use for backup with rsync over ssh and those tools work great
>> under cygwin. I'd like to use this same script that I use on my
>> unix/linux servers.
>>     
>
> You would need to down load the php source package from www.php.net,
> install required development tools (i.e.,gcc, make...) and then
> configure, compile and install just as you would on a Linux system.
>
> Perl and php are so close in syntax, in the case of such a utility
> script, I would image it would be easier to convert the php script to
> perl to run under Cygwin, than build php from source.
>
> Are you intending to run the script from Apache, command line, cron?
>
> I use perl to drive rsync over ssh backups on both Linux and Windows and
> it works, save the issues that have been reported on this list.  For
> myself, I've had to compile a custom rsync to utilize pipes vs. a local
> socket to work around initial hangs, others have see hangs with large
> transfers.
>
> Brett
> ----------------------------------------------------------------
> Brett C. Serkez, Techie
>
>
> --
> 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/
>   

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 
the utility in Perl, but I figured I'd check to see if cygwin did have a 
php port I was overlooking. The script is RIBS 
(http://freshmeat.net/projects/ribs/), it is a very good script and I've 
thought many times about rewriting in Perl since I don't believe it is 
maintained anymore. Now I have a reason to do so.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019