php-windows Digest 28 Sep 2002 03:31:10 -0000 Issue 1360
Topics (messages 16029 through 16046): Re: PHP/IIS5/MSSQL shows CGI Header Error 16029 by: CSA 16033 by: bmw 16046 by: David Redmond Re: Windows Include 16030 by: Brian McGarvie Re: Getting at addressbook information on an Exchange Server... 16031 by: Raceeend 16034 by: Jody Cleveland 16035 by: Sichta Daniel 16038 by: toby z 16045 by: CSA what do you think? 16032 by: Arminas mixing session management with ASP and PHP? 16036 by: bmw 16039 by: toby z Re: header("location:...") through proxy? 16037 by: Seairth Jacobs (Solved) Re: [PHP-WIN] Re: header("location:...") through proxy? 16040 by: Ignatius Reilly Printer_write 16041 by: Luis Moreira Message dialog box in php 16042 by: Radovan Radic 16044 by: Radovan Radic PHP4 isapi.dll not loading on IIS4 16043 by: Nicholas Pappas 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 ---Check if you have installed PHP in a folder to which only the administrator has access to. (Either PHP or the application that is calling PHP.) Regards, csaravind "David Redmond" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > I am just wondering if anyone out there using PHP (4.2.3, bug also affects > previous versions and the latest CVS snapshot) with IIS5 and receives the > "CGI Header Error" in PHP scripts that use an MSSQL DB connection. > > This bug has been logged on the PHP buglist > (http://bugs.php.net/bug.php?id=9852) however the moderators have closed the > bug without it being investigated correctly. > > I will re-itereate the points that I have listed in the bug thread, they > are; > > - I'm running PHP 4.2.3, IIS5, Win2K (SP3 + Q326830, Q295688, Q147222). > - IIS is configured to use Host Header > - The error message that is returned via the script is; > > <head><title>Error in CGI Application</title></head> > <body><h1>CGI Error</h1>The specified CGI application misbehaved by not > returning a complete set of HTTP headers. The headers it did return > are:<p><p><pre></pre> > > - If the slot is run as a local administrator then the error does not occur, > similiary if you remove the IUSR access to the slot so that you are prompted > for authentication, and you use an administrator account. > - At the same time that the error is generated, a popup also occurs on the > console with the details; > > TitleBar: php.exe - Application Error > > The application failed to initialize properly (0xc0000142). Click OK to > terminate the application > > - Any other PHP script which does not use an MSSQL connection works without > a problem, this also includes scripts which use MySQL. > > If anyone has encountered this problem before and found a resolution for it, > please post it here. As you may read from the bug thread, the developers of > PHP seemed to have passed this off as an IIS issue. > > Cheers--- End Message ---
--- Begin Message ---I had similar problems with close to the same configuration and changed strategies completely by having the IIS server handle the header output. This was done by making the IIS server use the php DLL instead of the .exe as a CGI. My php files work fine now. It took some digging, but there is an installation/configuration explanation in the MS IIS help files. "Csa" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Check if you have installed PHP in a folder to which only the administrator > has access to. (Either PHP or the application that is calling PHP.) > Regards, > csaravind > "David Redmond" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi All, > > I am just wondering if anyone out there using PHP (4.2.3, bug also affects > > previous versions and the latest CVS snapshot) with IIS5 and receives the > > "CGI Header Error" in PHP scripts that use an MSSQL DB connection. > > > > This bug has been logged on the PHP buglist > > (http://bugs.php.net/bug.php?id=9852) however the moderators have closed > the > > bug without it being investigated correctly. > > > > I will re-itereate the points that I have listed in the bug thread, they > > are; > > > > - I'm running PHP 4.2.3, IIS5, Win2K (SP3 + Q326830, Q295688, Q147222). > > - IIS is configured to use Host Header > > - The error message that is returned via the script is; > > > > <head><title>Error in CGI Application</title></head> > > <body><h1>CGI Error</h1>The specified CGI application misbehaved by not > > returning a complete set of HTTP headers. The headers it did return > > are:<p><p><pre></pre> > > > > - If the slot is run as a local administrator then the error does not > occur, > > similiary if you remove the IUSR access to the slot so that you are > prompted > > for authentication, and you use an administrator account. > > - At the same time that the error is generated, a popup also occurs on the > > console with the details; > > > > TitleBar: php.exe - Application Error > > > > The application failed to initialize properly (0xc0000142). Click OK to > > terminate the application > > > > - Any other PHP script which does not use an MSSQL connection works > without > > a problem, this also includes scripts which use MySQL. > > > > If anyone has encountered this problem before and found a resolution for > it, > > please post it here. As you may read from the bug thread, the developers > of > > PHP seemed to have passed this off as an IIS issue. > > > > Cheers > >--- End Message ---
--- Begin Message ---Hi All, thanks for the feedback. The work around that we came up with was to use COM support and use the ADODB.Connection object. Fortunately, the code changes were pretty small since all DB connections are handled in one function. The pages have now run flawlessly for just over a day now which is a great sign. Cheers -----Original Message----- From: bmw [mailto:[EMAIL PROTECTED]] Sent: Friday, 27 September 2002 10:39 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: PHP/IIS5/MSSQL shows CGI Header Error I had similar problems with close to the same configuration and changed strategies completely by having the IIS server handle the header output. This was done by making the IIS server use the php DLL instead of the .exe as a CGI. My php files work fine now. It took some digging, but there is an installation/configuration explanation in the MS IIS help files. "Csa" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Check if you have installed PHP in a folder to which only the administrator > has access to. (Either PHP or the application that is calling PHP.) > Regards, > csaravind > "David Redmond" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi All, > > I am just wondering if anyone out there using PHP (4.2.3, bug also affects > > previous versions and the latest CVS snapshot) with IIS5 and receives the > > "CGI Header Error" in PHP scripts that use an MSSQL DB connection. > > > > This bug has been logged on the PHP buglist > > (http://bugs.php.net/bug.php?id=9852) however the moderators have closed > the > > bug without it being investigated correctly. > > > > I will re-itereate the points that I have listed in the bug thread, they > > are; > > > > - I'm running PHP 4.2.3, IIS5, Win2K (SP3 + Q326830, Q295688, Q147222). > > - IIS is configured to use Host Header > > - The error message that is returned via the script is; > > > > <head><title>Error in CGI Application</title></head> > > <body><h1>CGI Error</h1>The specified CGI application misbehaved by not > > returning a complete set of HTTP headers. The headers it did return > > are:<p><p><pre></pre> > > > > - If the slot is run as a local administrator then the error does not > occur, > > similiary if you remove the IUSR access to the slot so that you are > prompted > > for authentication, and you use an administrator account. > > - At the same time that the error is generated, a popup also occurs on the > > console with the details; > > > > TitleBar: php.exe - Application Error > > > > The application failed to initialize properly (0xc0000142). Click OK to > > terminate the application > > > > - Any other PHP script which does not use an MSSQL connection works > without > > a problem, this also includes scripts which use MySQL. > > > > If anyone has encountered this problem before and found a resolution for > it, > > please post it here. As you may read from the bug thread, the developers > of > > PHP seemed to have passed this off as an IIS issue. > > > > Cheers > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---you need to define the variable in the globals super array... to define a 'global' that you can use later you must; $var = 'value'; global $var; "Jason" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can anyone help me? > > When i use the following include file: > > file globals.php > > $DB='whatever'; > > then reference it from another script with: > > <?php > include '..\..\globals.php'; > > ?> > I get > > $DB = 'whatever' > being printed on the screen and the script cant recognise $DB (undefined) > afterwards. > > Thanks for any help for a novice! > >--- End Message ---
--- Begin Message ---Can you send that to me too? regards, Martijn M.B. wrote: > 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 ---Me too? Thanks! Jody Cleveland > -----Original Message----- > From: Raceeend [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 9:00 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Getting at addressbook information on > an Exchange > Server... > > > Can you send that to me too? > > regards, > Martijn > > M.B. wrote: > > 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 ---Me too !! THX DS -----Original Message----- From: Jody Cleveland [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-WIN] Getting at addressbook information on an Exchange S erver... Me too? Thanks! Jody Cleveland > -----Original Message----- > From: Raceeend [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 9:00 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] Getting at addressbook information on > an Exchange > Server... > > > Can you send that to me too? > > regards, > Martijn > > M.B. wrote: > > 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 > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php--- End Message ---
--- Begin Message ---mmm if i aint 2 late ME TOOO :D thnx a mill toby .... --- Sichta Daniel <[EMAIL PROTECTED]> wrote: > Me too !! > > THX > > DS > > -----Original Message----- > From: Jody Cleveland > [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 27, 2002 2:46 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP-WIN] Getting at addressbook > information on an Exchange S > erver... > > > Me too? > > Thanks! > > Jody Cleveland > > > -----Original Message----- > > From: Raceeend [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, September 26, 2002 9:00 AM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP-WIN] Getting at addressbook > information on > > an Exchange > > Server... > > > > > > Can you send that to me too? > > > > regards, > > Martijn > > > > M.B. wrote: > > > 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... > > >>>> > > >>>> > > >>>> > === message truncated === __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com--- End Message ---
--- Begin Message ---Just about anybody who runs PHP on windows is going to be interested in this. Can you post this somewhere on the WWW? Like, say, sourceforge.net?? Could try and make it something bigger... CSA "Toby z" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > mmm if i aint 2 late > ME TOOO :D > > thnx a mill > > toby .... > > > --- Sichta Daniel <[EMAIL PROTECTED]> wrote: > Me > too !! > > > > THX > > > > DS > > > > -----Original Message----- > > From: Jody Cleveland > > [mailto:[EMAIL PROTECTED]] > > Sent: Friday, September 27, 2002 2:46 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP-WIN] Getting at addressbook > > information on an Exchange S > > erver... > > > > > > Me too? > > > > Thanks! > > > > Jody Cleveland > > > > > -----Original Message----- > > > From: Raceeend [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, September 26, 2002 9:00 AM > > > To: [EMAIL PROTECTED] > > > Subject: Re: [PHP-WIN] Getting at addressbook > > information on > > > an Exchange > > > Server... > > > > > > > > > Can you send that to me too? > > > > > > regards, > > > Martijn > > > > > > M.B. wrote: > > > > 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... > > > >>>> > > > >>>> > > > >>>> > > > === message truncated === > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com--- End Message ---
--- Begin Message ---about http://smanager.web1000.com/--- End Message ---
--- Begin Message ---I am interested in using PHP for a feature inside a web application that is already written with ASP and Javascript. I am not sure how to retrieve the session values passed when opening the PHP page. Any recommendations how best to do this? Javascript session code in ASP tags: Session("User_Login") = User_Login; Config : Win2k, IIS 5.0, PHP 4.0.6--- End Message ---
--- Begin Message ---sessions alone took me 3 full days to get around with ... :) try this http://www.php.net/manual/en/ref.session.php good luck toby .... --- bmw <[EMAIL PROTECTED]> wrote: > I am interested in using PHP for a feature inside a > web application that is > already written with ASP and Javascript. I am not > sure how to retrieve the > session values passed when opening the PHP page. Any > recommendations how > best to do this? > > Javascript session code in ASP tags: > > Session("User_Login") = User_Login; > > > Config : Win2k, IIS 5.0, PHP 4.0.6 > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com--- End Message ---
--- Begin Message ---Maybe you need to send the following header as well (before your line): header("HTTP/1.1 304 Found") -- --- Seairth Jacobs [EMAIL PROTECTED] "Ignatius Reilly" <[EMAIL PROTECTED]> wrote in message 012101c265f2$f3d24550$0100005a@server">news:012101c265f2$f3d24550$0100005a@server... I use the GET call to pass URL parameters to a remote script that executes. So it is a form of a RPC. local script: header( "location:http://remote_script.php?foo=bar") The remote script is with my ISP; it is a way for me to program scheduled tasks on a shared server at my ISP (obviously I do not have access to task scheduling there) It works well without a proxy, but now I am looking for a way to do the same through a proxy. Thanks Ignatius __________________________ "Seairth Jacobs" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Could you give more details? The "location" header is a response header > only. Why would you be generating this from a cron job? > > --- > Seairth Jacobs > [EMAIL PROTECTED] > > > "Ignatius Reilly" <[EMAIL PROTECTED]> wrote in message > 006601c2657e$cf478250$0100005a@server">news:006601c2657e$cf478250$0100005a@server... > Hello, > > I need to use header("location:some_url") from a cron job (to do some > maintenance work on remote files) > > my problem is that there is a proxy between me and some_url, so the GET > request fails > > Anybody knows how to do this? > > Thanks > > Ignatius > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >--- End Message ---
--- Begin Message ---Finally I solved the problem by using fopen( "http:remote_url", "wb" ) ; This actually behaves like a GET call, so appended variables can be passed to the remote script. Cheers Ignatius ______________________ ----- Original Message ----- From: Ignatius Reilly To: Seairth Jacobs ; [EMAIL PROTECTED] Sent: Friday, September 27, 2002 8:55 AM Subject: Re: [PHP-WIN] Re: header("location:...") through proxy? I use the GET call to pass URL parameters to a remote script that executes. So it is a form of a RPC. local script: header( "location:http://remote_script.php?foo=bar") The remote script is with my ISP; it is a way for me to program scheduled tasks on a shared server at my ISP (obviously I do not have access to task scheduling there) It works well without a proxy, but now I am looking for a way to do the same through a proxy. Thanks Ignatius __________________________ "Seairth Jacobs" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Could you give more details? The "location" header is a response header > only. Why would you be generating this from a cron job? > > --- > Seairth Jacobs > [EMAIL PROTECTED] > > > "Ignatius Reilly" <[EMAIL PROTECTED]> wrote in message > 006601c2657e$cf478250$0100005a@server">news:006601c2657e$cf478250$0100005a@server... > Hello, > > I need to use header("location:some_url") from a cron job (to do some > maintenance work on remote files) > > my problem is that there is a proxy between me and some_url, so the GET > request fails > > Anybody knows how to do this? > > Thanks > > Ignatius > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >--- End Message ---
--- Begin Message ------ End Message ---
I am trying to write a document, and see that having multiple "printer_write" calls I get ONE LINE for each, instead of a page with the (desired)output.Anyone ?ThanksLuis Moreira
--- Begin Message ---Hello PHP/JavaScript beginner's problem: I need to write PHP script with insert, update and delete options on it. So i have three buttons, and action=$PHP_SELF. I have to ask user if he is sure that he wants to delete one record. I guess i should use JavaScript. Anyone can help me? Thanks Radovan--- End Message ---
--- Begin Message ---It's ok . I got it. "Radovan Radic" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > PHP/JavaScript beginner's problem: > > I need to write PHP script with insert, update and delete options on it. > So i have three buttons, and action=$PHP_SELF. I have to ask user if he is > sure that he wants to delete one record. I guess i should use JavaScript. > Anyone can help me? > > Thanks > Radovan > >--- End Message ---
--- Begin Message ---Hello all. I am trying to install PHP4 on IIS4, but am having some trouble. I had gotten PHP installed in the past, but can't remember what version (it was some time ago and the computer has been re-installed several times since). I follow the (very short) instructions to install the ISAPI.DLL driver in IIS4. My php.ini file is in the WINNT directory and the few required changes mentioned in the install doc have been made. When I load up IIS and look under my ISAPI tab, there is always a red down arrow next to the PHP entry (which is also the only entry). I figure this can't be good. When I try to load a page I get the following message: The specified module could not be found. I've also received a 500 error, but all of the FAQ questions concerning such a message refer to the CGI executable and don't help out on the ISAPI library. Any help is greatly appreciated. Thanks!! Nick--- End Message ---