php-windows Digest 20 Mar 2002 22:01:35 -0000 Issue 1055

Topics (messages 12691 through 12696):

Templates Modul
        12691 by: Alex

Session handling
        12692 by: Alberto. Sartori

Still in trouble with mail()
        12693 by: Alberto. Sartori
        12695 by: Belgarius

Re: BDB transactions ?
        12694 by: Svensson, B.A.T. (HKG)

405 errors with IIS and default document
        12696 by: Michael Hall

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 'm searching a php template modul. Where can i find them??

Thanks Alex


--- End Message ---
--- Begin Message ---
Hi guys, this is mine PHP.INI:

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

; Argument passed to save_handler.  In the case of files, this is the path
; where data files are stored. Note: Windows users have to change this 
; variable in order to use PHP's session functions.
session.save_path = /tmp


The value of session.save_handler is set to FILE. What other value I can use? can I 
store the session in memory? Thanks!


--- End Message ---
--- Begin Message ---
Hey guys, I'm still in trouble by sending email with mail() function. As I've 
described some last posts ago, that function return me "Server error". Someone told me 
that my machine is not a mail server, but since php 4.0 I used mail() with no problem. 
My SMTP Service in IIS is correctly configured, I'm sure! anybody got the same 
problem? thanks

My pc is Win2k SP2 italian, IIS 5



--- End Message ---
--- Begin Message ---


-----Original Message-----
From: Alberto. Sartori [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 06:58 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Still in trouble with mail()


Hey guys, I'm still in trouble by sending email with mail() function. As
I've described some last posts ago, that function return me "Server error".
Someone told me that my machine is not a mail server, but since php 4.0 I
used mail() with no problem. My SMTP Service in IIS is correctly configured,
I'm sure! anybody got the same problem? thanks

My pc is Win2k SP2 italian, IIS 5


   I've a similar problem, one that has been with me since 4.04pl1, only a
bit worse, it seems.  In my case, the mail() function doesn't work, period.
There are no errors returned, it simply does not work.  Running phpinfo
reveals that my system sees neither my SMTP setting, nor my sendmail from
setting.  This, I have discovered, is due to the fact that my php.ini file
isn't being parsed.  So, I place an ONLY copy of it on my system into my
Windows folder, and while phpinfo then returns the proper setting
information, PHP no longer works for the user pages, returning instead,
reams of error texts.
   I've scoured the archives from top to bottom, and have found no answers
that have worked personally, and posted many queries on various lists, all
to no avail.  Presently, I am running 4.1.1, using OmniHTTPd 2.09, and have
no php.ini file.  The only way I can get PHP to work for me, is to prevent
the system from parsing the ini file, and letting PHP run under what I can
only presume is it's default settings.
   If this has any bearing, I've also attempted to set PHP up with Apache
1.3.23, with a bit different results.  Under Apache, the ini file doesn't
appear to have to be in the Windows folder, as long as you tell Apache where
to look for it in the http.conf file, it is parsed, and my desired settings
are reflected by phpinfo.  In both cases, however, PHP ceases to function,
returning only error texts instead of the expected results.
   As mentioned, I've posted this here, as well as on the Apache lists, and
the Omni list, and have as yet to receive any response.  I suppose I'll just
be happy that it works as well as it does, and hope for a solution one of
these days.

System Specs:
Intel P3/1000, 512M RAM, WIN98SE, fully patched

Regards,
[EMAIL PROTECTED]
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.338 / Virus Database: 189 - Release Date: 3/14/02

--- End Message ---
--- Begin Message ---
>-----Original Message-----
>From: Sviss Cobazor 
>Sent: Tuesday, March 19, 2002 5:18 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] BDB transactions ?
>
>
>Hi NG.
>
>I'm trying to test transactions by starting a transaction with "SET
>AUTOCOMMIT=0" and "BEGIN".
>After that I create a table and insert 2 rows. The 2nd row has 
>an syntaxerror so this would call for a rollback.
>But the table gets created and the 1st row are inserted 
>although my test
>function never gets to call commit but instead calls rollback.
>
>Anyone have an idea why this is?

IMHO I think it is a perfectly normal behaviour to do a rollback if an error
occurs duirng the transaction...

--- End Message ---
--- Begin Message ---
The setup:  Win2K / IIS, PHP 4.1.1

I've got a large intranet site that will soon be using PHP-based password
validation.

if the login information (cookie data) is not present, the page spits out a
quick form, which submits back to $PHP_SELF for validation. Nothing special.
IIS has default document enabled, such that going to site.com/audit/  is the
same as going to site.com/audit/default.php. Again, nothing special.

Here's the weird thing:  if you only type in the directory name like
site.com/audit/ and try to log in, you get a 405:Method Not Allowed error
when you submit your username and password.

The action= section of the form still has the explicit document name there
("action='default.php'"), so why on earth does it do that?

All I have to do is type in the "default.php" and resubmit the form and it
works just fine.  Shouldn't the two cases be essentially the same?  Does
anyone have any insight on this?

Thanks.


--- End Message ---

Reply via email to