php-windows Digest 24 Sep 2002 12:07:30 -0000 Issue 1354
Topics (messages 15965 through 15974):
Re: Problem uploading a file (bug in PHP 4.2.3 !?) worked with 4.2.2
15965 by: Jose
Re: Getting at addressbook information on an Exchange Server...
15966 by: M.B.
15971 by: Vail, Warren
Re: GET / POST
15967 by: M.B.
15968 by: M.B.
15969 by: M.B.
15970 by: Richard Dobson
15974 by: M.B.
Install PHP with IIS 5/W2K
15972 by: Pascal S.
15973 by: Phil Driscoll
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 ---
The problem keeps being there under 4.2.2. Just to clarify that. I
thought it did work there.
> -----Original Message-----
> From: Jose [mailto:[EMAIL PROTECTED]]
> Sent: 23 September 2002 21:41
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Problem uploading a file (bug in PHP 4.2.3 !?)
worked
> with 4.2.2
>
> Hi,
>
> I was working on some code and couldn't get the following form to
return
> anything under Windows XP with Apache 1.3.26 and PHP 4.2.3.
>
> I've just tried in a Solaris machine with same versions of Apache and
> PHP and it works just fine. Same with a Linux machine running Red Hat
> and same versions of Apache and PHP. Could someone else confirm this
> under XP?
>
> I have the magic_quotes set to Off, but tried with On with the same
> result. In fact the settings in the Unix machines and Windows XP with
> regards to Apache and PHP are as close to each other as they can be.
>
> If it's a known bug, is there any way I can patch or update my PHP to
> have it working again?
>
> Also, I believe it was working with PHP 4.2.2, though can't promise.
>
> The following code will dump the contents of $_REQUEST and $_FILES.
When
> a file is selected under Windows XP (and the Apache server and PHP are
> running in Windows XP) the information gets lost, without a trace of
an
> error. Works fine when the server is Solaris
>
> Jose
>
> ===============================================
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <title>Test</title>
> </head>
> <body>
> <h1>Test</h1>
> <p>
> <?
> echo '$_REQUEST = '; var_dump($_REQUEST); echo "<br>";
> echo '$_FILES = '; var_dump($_FILES); echo "<br>";
> ?>
> </p>
>
> <form enctype="multipart/form-data" method="post" action="<? echo
> $_SERVER['PHP_SELF']; ?>">
> <input type="hidden" name="MAX_FILE_SIZE" value="<? echo 1000*1024;
?>"
> />
> <input type="file" name="test" size="40">
> <input type="submit" name="submit" value="Upload Test">
> </form>
> </body>
> </html>
> ===============================================
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I must say, I'm interested too.
M.B.
"Ernani Joppert Pontes Martins" <[EMAIL PROTECTED]> schreef in
bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have made a com+ module in php that uses CDO (Collaboration Data
Objects)
> to interact with exchange server profiles and send e-mails with php like a
> webmail.
>
> Are you interested ?
>
> Cheers,
>
> Ernani
>
> "Ross Fleming" <[EMAIL PROTECTED]> escreveu na mensagem
> news:[EMAIL PROTECTED]...
> > Question 1 I'm not too sure about...
> >
> > Question 2:
> >
> > How do you mean spell check it? There are several levels of depth you
> could
> > take this to. You could just check the format of it (ie
> > [EMAIL PROTECTED]) using a pattern matching technique
> > ereg(
> >
>
"^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)$"
> > ,$email) is a rather simple one.
> >
> > This only checks that it's a valid format of email address however. It
> > doesn't stop php emailing [EMAIL PROTECTED] (going out on
a
> > limb and assuming this doesn't exist!)
> >
> > There are ways of taking this further however. You can explode $email
by
> > the @ character and checking that the domain actually exists by simply
> > pinging it or connecting to the relevant smtp server. This again,
doesn't
> > stop php from emailing [EMAIL PROTECTED] (again, probably
> > doesn't exist but the format is ok and the TLD exists). The next step
you
> > could take (and this is getting a bit involved here... depends how much
> time
> > you've got on your hands) is to talk to the smtp server and attempt to
> find
> > out whether the user exists or not. I believe that it is possible to
get
> an
> > smtp server to confirm or deny a users existance.
> >
> > Like I say, these are varying levels of checking, I have to say I've
only
> > ever went so far as to resolving the TLD through a DNS server.
> >
> > A solution you may wish to consider, is only allowing trusted email
> > addresses to be used. One way I have done this in the past is to allow
a
> > user to register an email address, and then email a random cipher to
this
> > address and make the user enter the cipher into a validation page,
thereby
> > validating the email address a genuine and held by the user.
> >
> > I'd be glad to help if you've got any questions about the solutions I've
> > given. :)
> >
> > HTH
> >
> > Ross
> >
> > > -----Original Message-----
> > > From: RS Herhuth [mailto:[EMAIL PROTECTED]]
> > > Sent: 24 August 2001 15:31
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] Getting at addressbook information on an Exchange
> > > Server...
> > >
> > >
> > >
> > > Two questions (well four if you count the sub questions):
> > >
> > > 1. Is there a way to get at the addressbook information stored on an
> > > Exchange Server using PHP? Is there any documentation anyone
> > > knows of that
> > > can aid in this?
> > >
> > > 2. Is it possible to create an inline spellchecker that could be used
> to
> > > spellcheck an email before it is sent using PHP? Is there any
> > > documentation
> > > anyone knows of that can aid in this?
> > >
> > > Thanks,
> > > Ron
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> >
>
>
--- End Message ---
--- Begin Message ---
For what it's worth, I abandoned trying to do this at my shop, it appears
that our exchange support group had no interest in getting me the right
release of CDO (Collaborative Data Objects) and the necessary permissions to
access these items. I think I crossed a territorial boundary or sumpin.
There is a good book on the subject;
Exchange & Outlook
Constructing Collaborative Solutions
Joel Semeniuk & Duncan Mackenzie
Macmillan Technical Publishing USA
Since my primary need was to access email, I set up my own POP3 server on my
NT host (EZMTS Freeware), and had this support group set automatic
forwarding of a copy of each email that hit key mailboxes to my server, and
read them there using the PHP IMAP functions, works great, but I am still
blind as to contents of the exchange address book, which at our shop is
somehow tied to LDAP (couldn't get at it that way either).
very frustrating,
Warren Vail
Tools, Metrics & Quality Processes
-----Original Message-----
From: M.B. [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 3:47 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Getting at addressbook information on an Exchange
Server...
I must say, I'm interested too.
M.B.
"Ernani Joppert Pontes Martins" <[EMAIL PROTECTED]> schreef in
bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have made a com+ module in php that uses CDO (Collaboration Data
Objects)
> to interact with exchange server profiles and send e-mails with php like a
> webmail.
>
> Are you interested ?
>
> Cheers,
>
> Ernani
>
> "Ross Fleming" <[EMAIL PROTECTED]> escreveu na mensagem
> news:[EMAIL PROTECTED]...
> > Question 1 I'm not too sure about...
> >
> > Question 2:
> >
> > How do you mean spell check it? There are several levels of depth you
> could
> > take this to. You could just check the format of it (ie
> > [EMAIL PROTECTED]) using a pattern matching technique
> > ereg(
> >
>
"^[^@ ]+@([a-zA-Z0-9\-]+\.)+([a-zA-Z0-9\-]{2}|net|com|gov|mil|org|edu|int)$"
> > ,$email) is a rather simple one.
> >
> > This only checks that it's a valid format of email address however. It
> > doesn't stop php emailing [EMAIL PROTECTED] (going out on
a
> > limb and assuming this doesn't exist!)
> >
> > There are ways of taking this further however. You can explode $email
by
> > the @ character and checking that the domain actually exists by simply
> > pinging it or connecting to the relevant smtp server. This again,
doesn't
> > stop php from emailing [EMAIL PROTECTED] (again, probably
> > doesn't exist but the format is ok and the TLD exists). The next step
you
> > could take (and this is getting a bit involved here... depends how much
> time
> > you've got on your hands) is to talk to the smtp server and attempt to
> find
> > out whether the user exists or not. I believe that it is possible to
get
> an
> > smtp server to confirm or deny a users existance.
> >
> > Like I say, these are varying levels of checking, I have to say I've
only
> > ever went so far as to resolving the TLD through a DNS server.
> >
> > A solution you may wish to consider, is only allowing trusted email
> > addresses to be used. One way I have done this in the past is to allow
a
> > user to register an email address, and then email a random cipher to
this
> > address and make the user enter the cipher into a validation page,
thereby
> > validating the email address a genuine and held by the user.
> >
> > I'd be glad to help if you've got any questions about the solutions I've
> > given. :)
> >
> > HTH
> >
> > Ross
> >
> > > -----Original Message-----
> > > From: RS Herhuth [mailto:[EMAIL PROTECTED]]
> > > Sent: 24 August 2001 15:31
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP-WIN] Getting at addressbook information on an Exchange
> > > Server...
> > >
> > >
> > >
> > > Two questions (well four if you count the sub questions):
> > >
> > > 1. Is there a way to get at the addressbook information stored on an
> > > Exchange Server using PHP? Is there any documentation anyone
> > > knows of that
> > > can aid in this?
> > >
> > > 2. Is it possible to create an inline spellchecker that could be used
> to
> > > spellcheck an email before it is sent using PHP? Is there any
> > > documentation
> > > anyone knows of that can aid in this?
> > >
> > > Thanks,
> > > Ron
> > >
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> >
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Whell, I don;t know what is wrong with your version of apache, but the
differends between the POST en GET-methode is, that the GET methode is used
if you whant to recieve data back on you screen.
The POST-methode is used only for sending things somewere (like an email, or
variables to anouther page or something like that).
You can not recieve data back then.
That's all (in short terms).
I hope that answers you second question.
M.B.
"Xxxpixie" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi! I'm a total newbie to php4 or web design and i (of course) have a
> problem:
> i'm using apache 2.x and php4 as a module.
> so, when i use the GET method to pass data to my php script:
>
> script.php?x=5
>
>
> i can't access it as a normal global variable:
>
> <?php
> print $x;
> ?>
>
> the only way i can get to it is:
>
> <?php
> print _GET['x']
> ?>
>
> what's wrong?
>
> by the way, what's the difference between GET and POST methods anyway?
>
>
>
>
>
--- End Message ---
--- Begin Message ---
I don't really know what you mean, but I think you whant to send variables
from a form or something (page, or whatever).
And then what would you want to do with it?
If you whant to use it write away, use the "header"-methode.
If you whant to use it after leaving the page in anouther page, then use the
methode you descriped yourself.
I hope this helps a little bit.
If not, let me know.
M.B.
"Carl Caamano" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am also a newbie to PHP. I have been writing and copying code from the
> web. It seems to me without having the register_global set to on, 99% of
> the code out there is useless. I have been using the POST method for my
> form method. I've tried modifiy code from the web to work without the
> register_global being set. I get parse errors saying something like
> T_VARIBLE ',' or ';' expected most the time.
>
> For example how would you change this line?
>
> if ( $sender_email and $message)
>
> or i was thinking maybe you have to "import" your varibles at the
beginning
> of the script by having a bunch of lines simular to this:
> $message = $_POST['message']
> (being that the varible in the HTML page is called message, a text box in
> this case)
>
> TIA
>
> "Rich Gray" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Comments below...
> >
> > -----Original Message-----
> > From: XXXPixie [mailto:[EMAIL PROTECTED]]
> > Sent: 08 September 2002 09:52
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] GET / POST
> >
> >
> > hi! I'm a total newbie to php4 or web design and i (of course) have a
> > problem:
> > i'm using apache 2.x and php4 as a module.
> > so, when i use the GET method to pass data to my php script:
> >
> > script.php?x=5
> >
> >
> > i can't access it as a normal global variable:
> >
> > <?php
> > print $x;
> > ?>
> >
> > the only way i can get to it is:
> >
> > <?php
> > print _GET['x']
> > ?>
> >
> > what's wrong?
> >
> > RG> PHP v4.2.x has register_globals set to Off by default which is why
you
> > have to access the _GET superglobal array - if security is not an issue
> then
> > either switch on register_globals again or do something like
> extract($_GET)
> > or extract($_REQUEST) at the top of your script...
> >
> >
> > by the way, what's the difference between GET and POST methods anyway?
> >
> > RG> Very briefly .... http get method passes data via the query
> string/url,
> > http post method data is sent via the http headers - post method is more
> > secure (can't be tampered with easily) and can handle large data
> > transmissions with binary data, get is bookmarkable but is limited in
size
> > and can be easily modified by a user...
> >
> > HTH
> > RIch
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
--- End Message ---
--- Begin Message ---
By the way, does anyone of you knows how to make a lot of changes in Apache?
I need to configurate it for a network, but I have a porblem.
See teh topic: using apache on a network.
M.B. wrote:
Hi, I have installed PHPTraid so, that went OK.
But I have a network and I would like to see the pages on the computers that
are connected to the servercomputer. (win ME)
I tried a lot of things already and I have one problem:
when I type in that he must Listen to <IP computer> then everytime I'm not
connected to to the network, my computer with the apache server can't run.
And anouther problemm that I have is: that when I try to go to the site on
one of the connected computers in my network, I have to have an
internetconnection to view the pages (I also use a port to listen to in the
file) but when I have my internetconnection it isn't used only the network
is used, how can I make it work without the use of an internetconnection?
M.B.
I already have lots of sugestions, but the all don't seem to work.
So if one of you would knwo something more about it, please tell me.
M.B.
"M.B." <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Whell, I don;t know what is wrong with your version of apache, but the
> differends between the POST en GET-methode is, that the GET methode is
used
> if you whant to recieve data back on you screen.
> The POST-methode is used only for sending things somewere (like an email,
or
> variables to anouther page or something like that).
> You can not recieve data back then.
>
> That's all (in short terms).
> I hope that answers you second question.
>
> M.B.
>
> "Xxxpixie" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > hi! I'm a total newbie to php4 or web design and i (of course) have a
> > problem:
> > i'm using apache 2.x and php4 as a module.
> > so, when i use the GET method to pass data to my php script:
> >
> > script.php?x=5
> >
> >
> > i can't access it as a normal global variable:
> >
> > <?php
> > print $x;
> > ?>
> >
> > the only way i can get to it is:
> >
> > <?php
> > print _GET['x']
> > ?>
> >
> > what's wrong?
> >
> > by the way, what's the difference between GET and POST methods anyway?
> >
> >
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Try making it listen to all ip addresses instead of simply the network
ip.
Listen 0.0.0.0:80
Richard
On Tuesday, September 24, 2002, at 12:05 am, M.B. wrote:
> By the way, does anyone of you knows how to make a lot of changes in
> Apache?
>
> I need to configurate it for a network, but I have a porblem.
> See teh topic: using apache on a network.
>
> M.B. wrote:
> Hi, I have installed PHPTraid so, that went OK.
> But I have a network and I would like to see the pages on the
> computers that
> are connected to the servercomputer. (win ME)
> I tried a lot of things already and I have one problem:
> when I type in that he must Listen to <IP computer> then everytime I'm
> not
> connected to to the network, my computer with the apache server can't
> run.
> And anouther problemm that I have is: that when I try to go to the
> site on
> one of the connected computers in my network, I have to have an
> internetconnection to view the pages (I also use a port to listen to
> in the
> file) but when I have my internetconnection it isn't used only the
> network
> is used, how can I make it work without the use of an
> internetconnection?
>
> M.B.
>
>
> I already have lots of sugestions, but the all don't seem to work.
> So if one of you would knwo something more about it, please tell me.
>
> M.B.
>
>
> "M.B." <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Whell, I don;t know what is wrong with your version of apache, but the
>> differends between the POST en GET-methode is, that the GET methode is
> used
>> if you whant to recieve data back on you screen.
>> The POST-methode is used only for sending things somewere (like an
>> email,
> or
>> variables to anouther page or something like that).
>> You can not recieve data back then.
>>
>> That's all (in short terms).
>> I hope that answers you second question.
>>
>> M.B.
>>
>> "Xxxpixie" <[EMAIL PROTECTED]> schreef in bericht
>> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>>> hi! I'm a total newbie to php4 or web design and i (of course) have a
>>> problem:
>>> i'm using apache 2.x and php4 as a module.
>>> so, when i use the GET method to pass data to my php script:
>>>
>>> script.php?x=5
>>>
>>>
>>> i can't access it as a normal global variable:
>>>
>>> <?php
>>> print $x;
>>> ?>
>>>
>>> the only way i can get to it is:
>>>
>>> <?php
>>> print _GET['x']
>>> ?>
>>>
>>> what's wrong?
>>>
>>> by the way, what's the difference between GET and POST methods
>>> anyway?
>>>
>>>
>>>
>>>
>>>
>>
>>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thanks, I'm going to try that out rigth away.
M.B.
"Richard Dobson" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try making it listen to all ip addresses instead of simply the network
> ip.
>
> Listen 0.0.0.0:80
>
> Richard
>
> On Tuesday, September 24, 2002, at 12:05 am, M.B. wrote:
>
> > By the way, does anyone of you knows how to make a lot of changes in
> > Apache?
> >
> > I need to configurate it for a network, but I have a porblem.
> > See teh topic: using apache on a network.
> >
> > M.B. wrote:
> > Hi, I have installed PHPTraid so, that went OK.
> > But I have a network and I would like to see the pages on the
> > computers that
> > are connected to the servercomputer. (win ME)
> > I tried a lot of things already and I have one problem:
> > when I type in that he must Listen to <IP computer> then everytime I'm
> > not
> > connected to to the network, my computer with the apache server can't
> > run.
> > And anouther problemm that I have is: that when I try to go to the
> > site on
> > one of the connected computers in my network, I have to have an
> > internetconnection to view the pages (I also use a port to listen to
> > in the
> > file) but when I have my internetconnection it isn't used only the
> > network
> > is used, how can I make it work without the use of an
> > internetconnection?
> >
> > M.B.
> >
> >
> > I already have lots of sugestions, but the all don't seem to work.
> > So if one of you would knwo something more about it, please tell me.
> >
> > M.B.
> >
> >
> > "M.B." <[EMAIL PROTECTED]> schreef in bericht
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> Whell, I don;t know what is wrong with your version of apache, but the
> >> differends between the POST en GET-methode is, that the GET methode is
> > used
> >> if you whant to recieve data back on you screen.
> >> The POST-methode is used only for sending things somewere (like an
> >> email,
> > or
> >> variables to anouther page or something like that).
> >> You can not recieve data back then.
> >>
> >> That's all (in short terms).
> >> I hope that answers you second question.
> >>
> >> M.B.
> >>
> >> "Xxxpixie" <[EMAIL PROTECTED]> schreef in bericht
> >> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >>> hi! I'm a total newbie to php4 or web design and i (of course) have a
> >>> problem:
> >>> i'm using apache 2.x and php4 as a module.
> >>> so, when i use the GET method to pass data to my php script:
> >>>
> >>> script.php?x=5
> >>>
> >>>
> >>> i can't access it as a normal global variable:
> >>>
> >>> <?php
> >>> print $x;
> >>> ?>
> >>>
> >>> the only way i can get to it is:
> >>>
> >>> <?php
> >>> print _GET['x']
> >>> ?>
> >>>
> >>> what's wrong?
> >>>
> >>> by the way, what's the difference between GET and POST methods
> >>> anyway?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I installed PHP 4.2.3 using the installer from PHP.net
I can send the test.php file to the php.exe, and I get the right html code.
However, trying to open the same test.php in IE 6 won't produce anything.
The window gets the right title, all html is displayed right, but nothing
between <?php ?> is executed.
I have tried to change most of the settings in Internet Information
Services, the extension .php under configuration is also set to
C:\PHP\php.exe, etc...
What should I look at next?
Thanks,
Pascal
--- End Message ---
--- Begin Message ---
On Tuesday 24 September 2002 5:24 am, Pascal S. wrote:
> I installed PHP 4.2.3 using the installer from PHP.net
>
> I can send the test.php file to the php.exe, and I get the right html code.
>
> However, trying to open the same test.php in IE 6 won't produce anything.
> The window gets the right title, all html is displayed right, but nothing
> between <?php ?> is executed.
>
> I have tried to change most of the settings in Internet Information
> Services, the extension .php under configuration is also set to
> C:\PHP\php.exe, etc...
>
> What should I look at next?
Are you opening the file as c:\php\test.php or as http://localhost/test.php?
If you view source, do you see the php source code?
--
Phil Driscoll
--- End Message ---