php-windows Digest 23 Mar 2003 23:58:18 -0000 Issue 1649

Topics (messages 19090 through 19094):

Re: determine host platform - win32 / *nix
        19090 by: John M. Calvert
        19093 by: Eric Gach

GD under w2k
        19091 by: Franz Max
        19092 by: Stephen

how do you get eapi support in php4apache.dll?
        19094 by: chris

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Thanks Eric.

This constant PHP_OS doesn't give the OS version number. I don't need that
at this moment, but it would be useful to distinguish. OS funtionality can
change as much from one version to the next as from one platform to another.
How do I go about submitting this as a feature suggestions for PHP?

BTW, while it is true that PHP_OS appears in the manual, it's meaning is not
defined anywhere. The following man pages:
/manual/en/reserved.constants.core.php
/manual/en/reserved.constants.standard.php
list a number of predefined constants, but don't say what they mean, nor
what if any function they are associated with. Isn't that kind of important?
A hyperlink from these lists of constants to any associated functions would
be quite useful. For example, take a guess at "EXTR_REF". I'm sure PHP
experts know the answer, but what about those of us learning the language.
For the latter I'd like to submit a documentation suggestion. I'll try
forwarding this message to [EMAIL PROTECTED]

John

----- Original Message -----
From: "Eric Gach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'John M. Calvert'" <[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 6:57 PM
Subject: RE: [PHP-WIN] determine host platform - win32 / *nix


> There's a few examples of this in the manual somewhere... but here's
> some basic code for it:
>
> if (strtoupper(substr(PHP_OS, 0,3) == 'WIN'))
>     dl('module.dll');
> else
>     dl('module.so');
>
> Hope that helps.
>
> ~ Eric Gach
> EvilWalrus.com Co-Administrator
>
> -----Original Message-----
> From: John M. Calvert [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 22, 2003 8:03 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] determine host platform - win32 / *nix
>
> Hello, how do I determine from code the host platform running PHP? For
> example, php.dl() requires a different module name under Win32 and *nix
> so
> for more portable code I would like to write something like:
> if (php_platform() == WIN32)
>     dl('module.dll');
> else
>     dl('module.so');
>
> Does this exist?
>
> John M. Calvert, M.Sc., MCSD
>
> 1310521 Ontario Inc.
> 49 Belmont Ave.
> Ottawa ON K1S 0V2
> (613) 730-9851
> http://members.rogers.com/john-m-calvert/

--- End Message ---
--- Begin Message ---
John,

I've talked this issue over before with some of the PHP
development/documentation team. Most of them seem to think that all of
the constants are self explanatory. If you search for EXTR_REF in the
manual search, it shows http://www.php.net/function.explode where there
is an explanation for it. As for the version number... I think there is
something in the $_SERVER variable. Check you’re a phpinfo() page to
find out. Hope that helps.

~ Eric Gach
EvilWalrus.com Co-Administrator

-----Original Message-----
From: John M. Calvert [mailto:[EMAIL PROTECTED] 
Sent: Sunday, March 23, 2003 7:08 AM
To: [EMAIL PROTECTED]
Cc: Eric Gach
Subject: Re: [PHP-WIN] determine host platform - win32 / *nix

Thanks Eric.

This constant PHP_OS doesn't give the OS version number. I don't need
that
at this moment, but it would be useful to distinguish. OS funtionality
can
change as much from one version to the next as from one platform to
another.
How do I go about submitting this as a feature suggestions for PHP?

BTW, while it is true that PHP_OS appears in the manual, it's meaning is
not
defined anywhere. The following man pages:
/manual/en/reserved.constants.core.php
/manual/en/reserved.constants.standard.php
list a number of predefined constants, but don't say what they mean, nor
what if any function they are associated with. Isn't that kind of
important?
A hyperlink from these lists of constants to any associated functions
would
be quite useful. For example, take a guess at "EXTR_REF". I'm sure PHP
experts know the answer, but what about those of us learning the
language.
For the latter I'd like to submit a documentation suggestion. I'll try
forwarding this message to [EMAIL PROTECTED]

John

----- Original Message -----
From: "Eric Gach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'John M. Calvert'" <[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 6:57 PM
Subject: RE: [PHP-WIN] determine host platform - win32 / *nix


> There's a few examples of this in the manual somewhere... but here's
> some basic code for it:
>
> if (strtoupper(substr(PHP_OS, 0,3) == 'WIN'))
>     dl('module.dll');
> else
>     dl('module.so');
>
> Hope that helps.
>
> ~ Eric Gach
> EvilWalrus.com Co-Administrator
>
> -----Original Message-----
> From: John M. Calvert [mailto:[EMAIL PROTECTED]
> Sent: Saturday, March 22, 2003 8:03 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] determine host platform - win32 / *nix
>
> Hello, how do I determine from code the host platform running PHP? For
> example, php.dl() requires a different module name under Win32 and
*nix
> so
> for more portable code I would like to write something like:
> if (php_platform() == WIN32)
>     dl('module.dll');
> else
>     dl('module.so');
>
> Does this exist?
>
> John M. Calvert, M.Sc., MCSD
>
> 1310521 Ontario Inc.
> 49 Belmont Ave.
> Ottawa ON K1S 0V2
> (613) 730-9851
> http://members.rogers.com/john-m-calvert/

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.461 / Virus Database: 260 - Release Date: 3/10/2003
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.461 / Virus Database: 260 - Release Date: 3/10/2003
 


--- End Message ---
--- Begin Message ---
Hi all,

I would like to install GD for PHP under W2000. I have got the GD source and
the PHP source downloaded. How can I compile them? I dont have any C
compiler. In all of the manuals the compiling procedure written for Linux
instead of Windows.

Thanx in advance
Franz




--- End Message ---
--- Begin Message ---
Its a lot easier just to download the pre-compilled version of PHP. The
extended package also contains the .dll used for GD.

PHP 4.3.1 Zip Package can be downloaded from
http://www.php.net/get/php-4.3.1-Win32.zip/from/a/mirror

The installer does not come with GD to my knowledge, hence why you must
download the zip file. Good luck

Stephen

----- Original Message -----
From: "Franz Max" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, March 23, 2003 5:58 PM
Subject: [PHP-WIN] GD under w2k


> Hi all,
>
> I would like to install GD for PHP under W2000. I have got the GD source
and
> the PHP source downloaded. How can I compile them? I dont have any C
> compiler. In all of the manuals the compiling procedure written for Linux
> instead of Windows.
>
> Thanx in advance
> Franz
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--- End Message ---
--- Begin Message --- I downloaded and recompiled the source with MS Visual Studio 6 with eapi defined, but the resulting dll is exactly the same, and apache still gives warnings and crashes under load.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

--- End Message ---

Reply via email to