php-windows Digest 18 Dec 2001 14:15:49 -0000 Issue 907

Topics (messages 10977 through 10990):

Active Directory/LDAP Problem
        10977 by: Tim
        10987 by: Alex Elderson

Generating XML & retrieving mail
        10978 by: Sanjuro Europe
        10981 by: Manuel Lemos
        10983 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK

Re: API
        10979 by: Silverio Diquigiovanni
        10980 by: John Lim

Re: coffee message
        10982 by: FPU.WHITES1.FRIENDSPROVIDENT.CO.UK
        10988 by: Rygars

multiple select?
        10984 by: Martin.Andrew
        10989 by: Mike Flynn

the socket extension in php 4.1.0 :)
        10985 by: Martin Lindhe

Can php make a authentication to Apache?
        10986 by: Alex Elderson

PHP & XSLT
        10990 by: Andrew Stopford

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 ---
I am able to connect to our Active Directory server annonymously without a
problem.  Once I am connected (and have done ldap_bind) I dont seem to be
able to do anything except disconnect from the server.  Everytime I try and
search it returns an "Operations Error"

I dont seem to be able to connect to the server by supplying login
credentials either.  Anyone have a clue?



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

I have made a ldap login script and i learn that the Active Directory is a
poor ldap service!

i you conect annonymously to a  Directory server you can't do enything! do a
ldap_bind with username and password!


"Tim" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am able to connect to our Active Directory server annonymously without a
> problem.  Once I am connected (and have done ldap_bind) I dont seem to be
> able to do anything except disconnect from the server.  Everytime I try
and
> search it returns an "Operations Error"
>
> I dont seem to be able to connect to the server by supplying login
> credentials either.  Anyone have a clue?
>
>
>


--- End Message ---
--- Begin Message ---
For a college project I have to get 2 website to communicate with each 
other through sending e-mails containing XML.

I have found a function to send mail and to parse XML, but no to 
retrieve mail or generate XML.

I understand that PHP can be build with POP3 support but the default 
(Windows) version doesn't include support. So is there a place where I 
can download POP3 support as a module (or script)?

And are there script to easily generate XML from a DTD or XML Schema 
definition? Or may be another solution?

Thanks in advance,

Sanjuro

--- End Message ---
--- Begin Message ---
Hello,

Sanjuro Europe wrote:
> 
> For a college project I have to get 2 website to communicate with each
> other through sending e-mails containing XML.
> 
> I have found a function to send mail and to parse XML, but no to
> retrieve mail or generate XML.
> 
> I understand that PHP can be build with POP3 support but the default
> (Windows) version doesn't include support. So is there a place where I
> can download POP3 support as a module (or script)?
> 
> And are there script to easily generate XML from a DTD or XML Schema
> definition? Or may be another solution?

Look here for a PHP class for generating nicely formatted XML:

http://phpclasses.upperdesign.com/browse.html/package/250

and here for a POP3 class:

http://phpclasses.upperdesign.com/browse.html/package/2

Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
--- Received from FPU.WHITES1 799 3703                    18-12-01 10:36

  -> [EMAIL PROTECTED]
  -> [EMAIL PROTECTED]
  -> [EMAIL PROTECTED]

The IMap stuff works very well with POP3 and is provided as a standard
extension in windows.  I use it regularly on Win2K.

-Steve

------------------------------------------------------------------------

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Date: Tue, 18 Dec 2001 05:47:53 -0200
Subject: [PHP-WIN] Re: Generating XML & retrieving mail

Hello,

Sanjuro Europe wrote:

> For a college project I have to get 2 website to communicate with each
> other through sending e-mails containing XML.

> I have found a function to send mail and to parse XML, but no to
> retrieve mail or generate XML.

> I understand that PHP can be build with POP3 support but the default
> (Windows) version doesn't include support. So is there a place where I
> can download POP3 support as a module (or script)?

> And are there script to easily generate XML from a DTD or XML Schema
> definition? Or may be another solution?

Look here for a PHP class for generating nicely formatted XML:

http://phpclasses.upperdesign.com/browse.html/package/250

and here for a POP3 class:

http://phpclasses.upperdesign.com/browse.html/package/2

Regards,
Manuel Lemos

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Financial Services Authority.
--- End Message ---
--- Begin Message ---
From: "Ignatius Teo" <[EMAIL PROTECTED]>

> If you can run php.exe from the command line, you don't need anything
else.
> Try php.exe -f myscript.php

> From: "Silverio Diquigiovanni" <[EMAIL PROTECTED]>
>
> > Hi to all, I've an hot question to submit you.
> > I use PHP.EXE to generate HTML page from a .PHP file in a standalone PC.
> > I love the php script language and so I don't use Jave or other similar.
> > I would to use the PHP facilities without create a file with PHP
extension
> > end so I would a mechanism to passa a string with PHP language and
obtain
> > a string with HTML code. I think PHP.EXE to do own work use a set of
> > DLL objects, but I'm not able to know the API calling to transform a PHP
> > file to an HTML file.
> >

My goal is obtain a MemoryFileMapped(or a string) with the HTML contents
generated
by PHP API passing  a MemoryFilMapped(or a string) with the PHP contents....
in
other word I don't want use file to pass input and receive output from
PHP.EXE.
I think the better way could be use directly the API in the various DLL file
of PHP
package but I haven't the necessary documentation about.....

Can you help me ?
Thank you....
word

--- End Message ---
--- Begin Message ---
Hi Silverio,

I think there has been some confusion about PHP. PHP.EXE is a compiler,
not a library of code nor a callable DLL. So there is no callable
API as such.

Your question is as strange as asking how to call a C++ compiler's API.
You pass a .cpp file to a C++ compiler. You pass a .php file to php.exe,
and pipe the HTML output to another program.

Regards, John

Silverio Diquigiovanni <[EMAIL PROTECTED]> wrote in message
002001c18794$eee243c0$1500a8c0@us01">news:002001c18794$eee243c0$1500a8c0@us01...
> From: "Ignatius Teo" <[EMAIL PROTECTED]>
>
> > If you can run php.exe from the command line, you don't need anything
> else.
> > Try php.exe -f myscript.php
>
> > From: "Silverio Diquigiovanni" <[EMAIL PROTECTED]>
> >
> > > Hi to all, I've an hot question to submit you.
> > > I use PHP.EXE to generate HTML page from a .PHP file in a standalone
PC.
> > > I love the php script language and so I don't use Jave or other
similar.
> > > I would to use the PHP facilities without create a file with PHP
> extension
> > > end so I would a mechanism to passa a string with PHP language and
> obtain
> > > a string with HTML code. I think PHP.EXE to do own work use a set of
> > > DLL objects, but I'm not able to know the API calling to transform a
PHP
> > > file to an HTML file.
> > >
>
> My goal is obtain a MemoryFileMapped(or a string) with the HTML contents
> generated
> by PHP API passing  a MemoryFilMapped(or a string) with the PHP
contents....
> in
> other word I don't want use file to pass input and receive output from
> PHP.EXE.
> I think the better way could be use directly the API in the various DLL
file
> of PHP
> package but I haven't the necessary documentation about.....
>
> Can you help me ?
> Thank you....
> word
>


--- End Message ---
--- Begin Message ---
--- Received from FPU.WHITES1 799 3703                       18-12-01 10:29

  -> [EMAIL PROTECTED]

VIC20 - fantastic machine.  A proper keyboard and... and... er...

----------------------------------------------------------------------------

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Mon, 17 Dec 2001 15:11:44 -0600
Subject: RE: [PHP-WIN] Re: coffee message

> If you had some kind of temperature sensor on the coffee pot and this was
> connected to a machine running Apache+PHP and an interace program, the php
> page could use exec() to run the interface program say every 5 seconds to
> retrieve the temperature and if it was above say xo it could print "Coffee
> ready" in the browser window (or active desktop on Win).
> If it was a unix machine, it could send a messgae to all the networked
> terminals in the workgroup i.e. those associated with coffe machine 1.

Actually, you bring up a good point. :)

But, if he's stuck with Win2k on a CMB VIC20 he might want to consider
ditching IIS5 and going with something really small, like Xitami. He can run
the exec() through PHP as suggested with minimal memory/processor usage.

I don't even want to consider the security aspects of a Win2K/IIS5 install
on a nuclear installation, though! :0


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Financial Services Authority.
--- End Message ---
--- Begin Message ---
I use Mandrake 8.1 on both computers and Windows 2000 Professional at work.
- apache+php4.0.6 on linux
- iis5+php4.0.6 on windows

:)

PS: Beside that I run the program for SETI@HOME :) on linux (13h average for
a packet) and on windows (40h average for a packet). The configuration for
computer that holds linux is worse than windows' one but still the average
it is better on linux :)

----- Original Message -----
From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 17, 2001 11:25 PM
Subject: RE: [PHP-WIN] Re: coffee message


>If you had some kind of temperature sensor on the coffee pot and this was
>connected to a machine running Apache+PHP and an interace program, the php
>page could use exec() to run the interface program say every 5 seconds to
>retrieve the temperature and if it was above say xº it could print "Coffee
>ready" in the browser window (or active desktop on Win).
>If it was a unix machine, it could send a messgae to all the networked
>terminals in the workgroup i.e. those associated with coffe machine 1.

It is fascinating to see how this group explcitly (PHP-WIN) dedicated to M$
software warms for thge OpenSource software, and exploits the bad sides of
M$. But that's life isn't it?! We don't work with what we like to work with,
but what we got paid to work with.

Anyone doesn't running Linux/FreeBSD/NetBSD/Solaris at home raise a hand,
please.



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



--- End Message ---
--- Begin Message ---
I want to use a combo box with multiple select enabled.
Selecting one value works fine but when I select multiple values only the
last value is saved in the DB.

you must be able to use this function in PHP, right?





--- End Message ---
--- Begin Message ---
At 11:48 AM 12/18/2001 +0100, Martin.Andrew wrote:
>I want to use a combo box with multiple select enabled.
>Selecting one value works fine but when I select multiple values only the
>last value is saved in the DB.
>
>you must be able to use this function in PHP, right?

Name the select box as an array.  For example:
<select multiple name="colors[]" size="4">
   <option value="red">Red</option>
   <option value="blue">Red</option>
   <option value="green">Red</option>
   <option value="yellow">Red</option>
</select>

Then when you submit the form, you will have an array $colors.  Note that 
the array will not be of size four necessarily: it will be of the size of 
the number of options selected.  If they select none of the options then it 
will be of sizeof 0.  So you can check by looping through.  Each value of 
the array is the value of one of the options that was selected.

if (sizeof($colors) > 0) {
   for ($idx = 0; $idx < sizeof($colors); $idx++) {
     // do stuff with the values of $colors[$idx].
   }
}
else {
   // no options were selected.
}

-Mike


--- End Message ---
--- Begin Message ---
hello all!

i've been playing around with the socket extension that come with php 4.1.0
for windows finally :-) i found the official docs to be way outdated but
managed to stumble over this nice document
http://introverted.com/php-sockets.html, its also a little incorrect (some
parameters are wrong and i suspect not everything is documented here either,
anyway much better than the official docs).

ive managed to create a socket and open a connection to a server, right now
im trying to figure out how to know how much data there is left for me to
read, since
the function socket_read($handle, $length) reads exactly $length bytes, and
if there isnt so many bytes left to read, it waits until there are before
finishing the function (in my case there never is). so im wondering if
anyone have had time to play around with this extension and have any hints
about how to figure out how much data there is left to read. also i saw the
socket_recv() function that says in the docs on the url above it recieves
"up to $length bytes", wich seems to be just what i need. but when i call it
as those docs suggests:

mixed socket_recv (int socket, int length, int socket_flags)

i get a error about the function requires exactly 2 parameters and both must
be resources, wich makes my head spin :-)

anyway any help would be greatly appericiated!

/Martin
--- End Message ---
--- Begin Message ---
Hi,

Is there a way to make a login script that make a php session and also make
a apache session?

I am using ldap Authentication for php en apache but the users must give a
username and password for php and for apache! I can do it so: login to
apache with a popup login window and look if the $auth_user is set, but i
want no popup window. I want i web-page for username and password!

Can anybody help me?

Alex Elderson


--- End Message ---
--- Begin Message ---
Hi Folks,

I was wondering if any of you had experienced problems when using PHP with
XLST on PHP 4.1 runnining on IIS 5 (Windows 2000 Server).

I am experiencing the same problems that is documentated in

http://bugs.php.net/bug.php?id=14499

Here it is recommended that the encoding is set in the XML/XLST document, my
documents however have this but still the same errors. Any thoughts?

Andrew


--- End Message ---

Reply via email to