php-windows Digest 8 Apr 2004 04:08:25 -0000 Issue 2199
Topics (messages 23389 through 23395):
Re: ODBC or MS SQL DLL? WAS: Using PHP on Server 2 003...
23389 by: Robert Twitty
Re: Authentication Problem under IIS 5
23390 by: Gabe
SMTP & PHP & Windows 2k/XP
23391 by: Gabe
23392 by: jon roig
23393 by: Gabe
23394 by: Svensson, B.A.T. (HKG)
How do I access the value of PHP_OS?
23395 by: David Scott
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 agree, and that's why I said you were lucky. I work with databases that
use the UNICODE data types nvarchar and ntext. Neither of these types are
supported by DB-Library, and there are no local fixes. The odbc ext also
does not support these types because it does not make use of the UNICODE
version of the ODBC API. So, in order to continue using PHP, the odbtp
extension had to be created. The use of the word "better" or "best"
pertains only to odbtp's support for SQL Server within PHP, and not
its ability to be used by a legacy system. However, I think you are
underestimating the latter. It appears that you have convinced yourself
that you will have to change your code without verification.
Support for all of the mssql_* functions was added in ODBTP 1.1. While
it was not possible to test it in every way imaginable, it did pass all
of PEAR DB's tests for the driver written with the mssql_* functions.
In the end it is your choice, especially since I will not be held
responsible by your superiors if something goes wrong. However, don't
knock it til' you've tried it. :-)
-- bob
> > Personally, I don't like the idea of having to change perfectly good SQL
> > in order to work around driver imperfections. Anyway, good luck, and stay
> > away from real, nvarchar and ntext fields, I wasn't as lucky. :-)
>
>
> One should be careful using word as "best" and "better".
>
> Maximizing fitness (finding the best solution) is done by locating a
> global maximum, it might be that odbtp is part of a global maximum, but
> if one is at local maximum, then before one decides to go to the global
> maximum, one need to look at the energy function to traverse from the
> present local maximum to the global maximum. If this is high, and one
> can find a another suitable local maximum close by with involves a
> minimum of energy to reach then this local maximum can be consider a
> better chose then the global maximum.Optimal solutions are sometimes
> better than the best solution.
>
> In short, things are not black&white, but gray. :)
>
> On a more practical level: this is a situation every developer has to
> face: should I take the time to replace the present, know to work, code,
> with new code and a new API that will need the the entire machinery of
> learning/writing/testing/debugging or should I make a fast, and
> reliable, fix, that one know will work, and will solve the present
> problem?
>
> Most developers will opt for the last solution, since it fix the problem
> and (s)he can continue with the work that really needs to be done.
>
>
>
>
> > -- bob
> >
> > > In any case, the problem was easy solved by the suggestion David gave.
> > >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
I would make sure that the IUSR_computername user account has at least read
permissions (& maybe execute) to the dll's you mentioned. That's why I left
the dll's in the sapi folder. I didn't want to give the internet user
account specific read permissions to files in my system directory.
Give that a try and see if that works.
Gabe
"Mw" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I recently installed PHP as an ISAPI module under Win2k. I've followed
> the instructions as listed on the website, and copied php4ts.dll and
> php4sapi.dll to the winnt/system32 directory (PHP is installed in d:/php)
>
> My website is set to use basic authentication. The problem is now that
> when I access pages on the website, I get a login prompt and .htm pages
> work normally. However when I access .php pages, it will not accept the
> HTTP authentication. It keeps asking me for the login info again and
again.
>
> Interestingly, if I enter the admin user and password in the login info,
> pages work fine. My default users are members of the Win2k "Users"
> group, and their auth info is not accepted by the php pages.
>
> I think the issue might be because of NTFS Permissions. My computer is
> set up as described in the MS KB article Q271071
> http://support.microsoft.com/default.aspx?scid=kb;en-us;Q271071
>
> Any help is appreciated.
>
> MW
--- End Message ---
--- Begin Message ---
Does anyone have any experience with configuring PHP 4.3.4 on Windows 2000
or XP for sending email?
I have PHP working properly and configured the PHP.INI file with the IP
address of the SMTP server and still no luck. I don't get any errors or
anything when trying to use the mail() function in PHP.
I can't seem to find any good documentation that goes into a little more
depth on this subject, so any help/advice/insight would be much appreciated!
Thanks
Gabe
--- End Message ---
--- Begin Message ---
What happens when you try to telnet from the webserver to the smtp
server port 25?
Can you successfully send an email by hand?
-- jon
-----Original Message-----
From: Gabe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 7:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] SMTP & PHP & Windows 2k/XP
Does anyone have any experience with configuring PHP 4.3.4 on Windows
2000 or XP for sending email?
I have PHP working properly and configured the PHP.INI file with the IP
address of the SMTP server and still no luck. I don't get any errors or
anything when trying to use the mail() function in PHP.
I can't seem to find any good documentation that goes into a little more
depth on this subject, so any help/advice/insight would be much
appreciated!
Thanks
Gabe
--
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.644 / Virus Database: 412 - Release Date: 3/26/2004
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 3/26/2004
--- End Message ---
--- Begin Message ---
Turns out I got a little ahead of myself in posting this message. I wasn't
done configuring the SMTP server. Sorry, but thanks for replying!
Gabe
"Jon Roig" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> What happens when you try to telnet from the webserver to the smtp
> server port 25?
>
> Can you successfully send an email by hand?
>
> -- jon
>
> -----Original Message-----
> From: Gabe [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 7:42 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] SMTP & PHP & Windows 2k/XP
>
>
> Does anyone have any experience with configuring PHP 4.3.4 on Windows
> 2000 or XP for sending email?
>
> I have PHP working properly and configured the PHP.INI file with the IP
> address of the SMTP server and still no luck. I don't get any errors or
> anything when trying to use the mail() function in PHP.
>
> I can't seem to find any good documentation that goes into a little more
> depth on this subject, so any help/advice/insight would be much
> appreciated!
>
> Thanks
>
> Gabe
>
> --
> 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.644 / Virus Database: 412 - Release Date: 3/26/2004
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.644 / Virus Database: 412 - Release Date: 3/26/2004
>
--- End Message ---
--- Begin Message ---
On Wed, 2004-04-07 at 17:51, jon roig wrote:
> What happens when you try to telnet from the webserver to the smtp
> server port 25?
>
> Can you successfully send an email by hand?
Of course, I done that a million times.
Try this (from memory):
telnet some.mailhost.com 25
HELO host.domain
MAIL FROM: <sender>\n
RCPT TO: <receiver>\n
DATA\n
<your message>\n
.\n
QUIT\n
--- End Message ---
--- Begin Message ---
In the PHP on Windows chapter of Programming PHP, there is mention of a
constant, PHP_OS, that can be used to determine the OS running the
server that PHP is on.
The example code is as follows,
<?php
if (PHP_OS == "WIN32" || PHP_OS == "WINNT") {
define("INCLUDE_DIR","c:\\myapps");
} else {
// some other platform
define("INCLUDE_DIR", "/include");
}
?>
However, rather than checking this value, I'd like to see if flat out. I
tried this,
<?php
echo "PHP_OS";
?>
But it didn't work. How can I see the value contained in this constant?
--- End Message ---