php-windows Digest 24 Mar 2003 12:16:04 -0000 Issue 1650
Topics (messages 19095 through 19098):
Re: ldap_start_tls
19095 by: Bryan Thoreson
Re: determine host platform - win32 / *nix
19096 by: John M. Calvert
Why NOT you ?
19097 by: Khim
configuration error... where??
19098 by: Vladimir Galkov
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 ---
Daniel,
I have ldap and openssl enabled. Am I missing something else?
Bryan
On Sat, 22 Mar 2003 05:26:55 +0100, Daniel Diehl wrote:
>Hi Bryan,
>do ya have enabled the module in the php.ini ??
>Please make a <? phpinfo(); ?> and look if the module
>is probably loaded..
>
>Cheers,
> Daniel
>
>>-----Original Message-----
>>From: Bryan Thoreson [mailto:[EMAIL PROTECTED]
>>Sent: Freitag, 21. März 2003 20:24
>>To: [EMAIL PROTECTED]
>>Subject: [PHP-WIN] ldap_start_tls
>>
>>
>>Hi,
>>
>>Has anyone had problems with the function ldap_start_tls? I
>>am trying to use
>>it and php give me this error:
>>PHP Fatal error: Call to undefined function: ldap_start_tls() in
>>C:\phpfile.php
>>
>>Bryan Thoreson
>>
>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>Bryan Thoreson 3/21/2003
>>Infotech Professional
>>CLA-Net University of Minnesota
>>
>>
>>
>>--
>>PHP Windows Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
--- End Message ---
--- Begin Message ---
Hi Eric, thanks for those comments. With your prompting I did some more
hunting around and looked through the source code for "phpinfo(" in
/ext/standard/info.c and found php_uname() which is in the manual :)
although from the name you might never guess it is what you need. However,
the documentation says:
- Returns information about the operating system PHP was __built__ on [my
underlining]
Which is not true. If PHP was build on a WinNT4 box but is running on a
WinXP box, it is going to report the OS platform and version for WinXP. So
the docs need a little correction here. I'm tempted to add my first ever
"user contribution" comment on this, but it seems like a pretty minor point.
John
P.S. I didn't have any problem searching for EXTR_REF in the docs. It was
simply an example of why a hyperlink would reduce confusion and simplify
navigation (aka searching) the docs.
----- Original Message -----
From: "Eric Gach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "'John M. Calvert'" <[EMAIL PROTECTED]>
Sent: Sunday, March 23, 2003 3:23 PM
Subject: RE: [PHP-WIN] determine host platform - win32 / *nix
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/
--- End Message ---
--- Begin Message ---
Dear Online Business Opportunity Seekers
Why CCI ?
CCI, Core Club International is a 3 year old,
Federally registered non-profit humanitarian
aid, corporation.
Federal EIN # 93-1324671
State Reg. # 036394-99
Established April 17, 2000
CCI was set up to help eradicate poverty in the
world beginning with YOU !
>> http://www.adminder.com/c.cgi?formorcash&CCIbm
THE BUSINESS OPPORTUNITY...
Could you use an additional income of $4,000 a
month...every month ?
Step 1
It's as easy as joining CCI for $9.99 and the CCI
upgrade for an additional $9.99...That's a total
of $19.98...For under $20 you can start your own
business which will begin to return a real monthly
income within just a few months.
Step 2
Invite 4 members into CCI just like you...People
who want to be making $4,000 in six months...
Then help your 4 new members do the same as
you...which is find their 4 people who want to be
making $4,000 in six months.
>> http://www.adminder.com/c.cgi?formorcash&CCIbm
That's it...It's that easy... You've now set something
in motion...A boulder tumbling down a hill that will
begin to pick up momentum as it continues, until
it becomes an avalanche !
This is what your avalanche will look like as it
picks up momentum...
1st Month -- Your monthly fees are covered once
you have invited your 4 CCI members at $19.98 each.
2nd Month -- You receive a check for $18.99
3rd Month -- You receive a check for $100
4th Month -- You receive a check for $200
5th Month -- You receive a check for $1,300
6th Month -- You receive a check for $4,000
and every month thereafter !!!
>> http://www.adminder.com/c.cgi?formorcash&CCIbm
THE TOOLS...
We have the tools, 1,000's of training videos,
auto-responders, traffic generators and training
by some of the Internets top marketers on how
to use them.
Let's get started TODAY...The only thing that
stands in your way of $4,000 a month...is 4
people...If you are serious I will help you get
there!
>> http://www.adminder.com/c.cgi?formorcash&CCIbm
Before you go, it's important to know also that CCI,
is the core company of the much awaited MegaOpp.
When MegaOpp launched, the spillovers into CCI will be
massive. Position yourself now.
If you need more info on MegaOpp. Send me an email
and I will be happy to fill you in.
Questions - Email Me...
To Your Success,
Chew Tee Khim
659-638-7345
[EMAIL PROTECTED]
>> http://www.adminder.com/c.cgi?formorcash&CCIbm
Disclaimer For Unsolicited
Email
This message is sent in compliance of the new e-mail bill: SECTION 301. Per
Section 301, paragraph (a)(2)(C) of S. 1618. This message is NOT Spam as
long as you are provided with a way to remove your name from this mailing
list. All further transmissions to you from me may be stopped at no cost to
you by replying to this email with "Remove" in the 'Subject' line.
--- End Message ---
--- Begin Message ---
I get standart distr. 4.1.1. (ok it's not the last, I know but works
before). Run Installer then set several things in php.ini (first of all)
enable_dl = off
setup IIS 5 to run php to process *.php
Then tests all that... and found a problem: Any php script shows
blank page on browser (just sends headers no any content) as they seted to:
default_mimetype = "text/html"
default_charset = "KOI8-R"
the same when I try to start script from comand line. Year ago I have the
problem, but can't remember how solve it... help please! :-)
IIS 5 Win 2K Adv Srv 2 Intell procesors.
--- End Message ---