win32service for PHP 5.1.6

win32service for PHP 5.1.6

am 01.12.2010 22:09:47 von Travis Veazey

--0016e6dd961ae02a1704965fba15
Content-Type: text/plain; charset=UTF-8

Hi all,

First post to this list, so please forgive any inadvertent violations of
decorum.

I just today stumbled upon the win32service extension, which appears like it
will do exactly everything that I've been looking toward external tools and
utilities to do -- specifically, and unsurprisingly, installing a PHP script
as a Windows service.

However, PECL's page has no releases at all, and I can't seem to find the
DLL for PHP 5.1.6; in fact, I've only seemed to find it for 5.2 and 5.3.
Unfortunately, for reasons I'd rather not get into at the moment, upgrading
my PHP version isn't an option right now; can anyone help me locate a DLL
for this extension that will work for PHP 5.1.6?

Thanks,
Travis

--0016e6dd961ae02a1704965fba15--

Re: win32service for PHP 5.1.6

am 01.12.2010 23:47:49 von Richard Quadling

On 1 December 2010 21:09, Travis Veazey wrote:
> Hi all,
>
> First post to this list, so please forgive any inadvertent violations of
> decorum.
>
> I just today stumbled upon the win32service extension, which appears like it
> will do exactly everything that I've been looking toward external tools and
> utilities to do -- specifically, and unsurprisingly, installing a PHP script
> as a Windows service.
>
> However, PECL's page has no releases at all, and I can't seem to find the
> DLL for PHP 5.1.6; in fact, I've only seemed to find it for 5.2 and 5.3.
> Unfortunately, for reasons I'd rather not get into at the moment, upgrading
> my PHP version isn't an option right now; can anyone help me locate a DLL
> for this extension that will work for PHP 5.1.6?
>
> Thanks,
> Travis
>

Hello Travis.

I've done a lot of work on this extension recently. I'm only building
it for 5.3.4-dev. I've not got any tests for it either.

I don't have VC6 (only VC9 Express Edition), so I can't build it for
5.1.6. As it is really only of use in a CLI environment, it hasn't
been tested/compiled for ISAPI or a thread safe SAPI either.

As far as I know, the current code has never been compiled for 5.1.6.

Rather than upgrading PHP, why not just use 2 versions of PHP?

PHP5.3CLI+Win32Service+whatever extensions you need just for the
service side of things.

Keep it all in an un-PATH'd location.

Use registry to load separate ini file for PHP versions on the
services machine and be careful about using new functionality in your
code if it is going to be cross version.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: win32service for PHP 5.1.6

am 01.12.2010 23:55:40 von Richard Quadling

On 1 December 2010 22:47, Richard Quadling wrote:
> As far as I know, the current code has never been compiled for 5.1.6.

The dlls available from http://www.php.net/~pierre/ are going to be
for a very old version of the extension. It may be perfectly suitable.

Unfortunately, as there is no release, only trunk has been documented.
There is no changelog entries in phpdoc, but if you look at the commit
history on http://svn.php.net/viewvc/pecl/win32service/trunk/win32servi ce.c?view=log
for revision 304478 onwards, you can see the additional work I've
completed.

If you don't need the later facilities, then the pre-compiled binaries
by Pierre would dictate which version of PHP you could use for the
services.

Richard.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: win32service for PHP 5.1.6

am 02.12.2010 00:02:24 von Richard Quadling

On 1 December 2010 22:55, Travis Veazey wrote:
> Richard,
>
> Thanks for the response. I did, with help from Justin on this list, find a
> version that had been compiled against 5.1.6 on PHP's releases page, and am
> currently putting together a test script using it to see what happens. If
> this works, this seems like the simplest solution, but if not, a
> dual-version install is not a bad idea at all -- thanks for the tip!
>
> -Travis
>
> On Wed, Dec 1, 2010 at 13:47, Richard Quadling wrote:
>>
>> On 1 December 2010 21:09, Travis Veazey
>> wrote:
>> > Hi all,
>> >
>> > First post to this list, so please forgive any inadvertent violations of
>> > decorum.
>> >
>> > I just today stumbled upon the win32service extension, which appears
>> > like it
>> > will do exactly everything that I've been looking toward external tools
>> > and
>> > utilities to do -- specifically, and unsurprisingly, installing a PHP
>> > script
>> > as a Windows service.
>> >
>> > However, PECL's page has no releases at all, and I can't seem to find
>> > the
>> > DLL for PHP 5.1.6; in fact, I've only seemed to find it for 5.2 and 5.3.
>> > Unfortunately, for reasons I'd rather not get into at the moment,
>> > upgrading
>> > my PHP version isn't an option right now; can anyone help me locate a
>> > DLL
>> > for this extension that will work for PHP 5.1.6?
>> >
>> > Thanks,
>> > Travis
>> >
>>
>> Hello Travis.
>>
>> I've done a lot of work on this extension recently. I'm only building
>> it for 5.3.4-dev. I've not got any tests for it either.
>>
>> I don't have VC6 (only VC9 Express Edition), so I can't build it for
>> 5.1.6. As it is really only of use in a CLI environment, it hasn't
>> been tested/compiled for ISAPI or a thread safe SAPI either.
>>
>> As far as I know, the current code has never been compiled for 5.1.6.
>>
>> Rather than upgrading PHP, why not just use 2 versions of PHP?
>>
>> PHP5.3CLI+Win32Service+whatever extensions you need just for the
>> service side of things.
>>
>> Keep it all in an un-PATH'd location.
>>
>> Use registry to load separate ini file for PHP versions on the
>> services machine and be careful about using new functionality in your
>> code if it is going to be cross version.

No problem. If you find anything not working, please report it.

If you need any help, then let me know. OOI, where was the
pre-compiled binary for 5.1.6?


--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: win32service for PHP 5.1.6

am 02.12.2010 00:40:51 von Richard Quadling

On 1 December 2010 23:16, Travis Veazey wrote:
> Richard,
>
> From the Downloads page on PHP.net, the link to the Releases page is in the
> sidebar on the left, and it takes you to this page:
> http://us2.php.net/releases/ From here I scrolled down to 5.1.6, and
> downloaded the "Collection of PECL modules", which has all kinds of things
> in there; so far I've only done anything with the php_win32service.dll,
> which is working great on my XP Pro and XP Home systems. My next test is on
> a Win7 system, and then I'll have to track down a Win2k system -- if all of
> those work, then this should work for my needs! If not, I'll have to take a
> look at your more current work and dual-install PHP.
>
> -Travis

Aha. Thanks for the link. Good luck.


--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php