php-windows Digest 12 Nov 2001 11:00:48 -0000 Issue 850

Topics (messages 10350 through 10357):

Re: $PHP_AUTH_USER
        10350 by: Ross Fleming
        10356 by: morten

pgsql.dll
        10351 by: Tom Gordon
        10353 by: David Broker

Get Unbelieveable Artwork At No Cost To You + A Free Shopping Spree                    
                [ydgpv]
        10352 by: unique_art_offer.publicist.com

MING
        10354 by: Josh Seward

Seeing <BR><BR> in input box
        10355 by: Jack

Re: Instalation Problem
        10357 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 ---
You haven't installed it as an apache module.  I double checked.  To see if
I'm right, just create a php script with this in it:
<?
getallheaders();
?>

If it says "call to undefined function" when u view it in explorer then do
the following.

Copy php4ts.dll to windows/system or winnt/system32 or whatever one is
applicable.

Edit your httpd.conf and delete:
   ScriptAlias /php/ "c:/php/"
   AddType application/x-httpd-php .php
   Action application/x-httpd-php "/php/php.exe"
wherever it might be and type this in its place:

   LoadModule php4_module c:/php/sapi/php4apache.dll
   AddType application/x-httpd-php .php

making sure of course, that c:/php is where you've got php installed.

Restart apache and hey presto..

Ross

-----Original Message-----
From: Ross Fleming [mailto:[EMAIL PROTECTED]]
Sent: 11 November 2001 22:14
To: Morten [Achtung]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] $PHP_AUTH_USER


OK, having run the same script, I'm getting a 500 as well, still not sure
why, but I know the cause.  Take out
    header("HTTP/1.0 401 Unauthorized");
and it works.  I really don't know why this doesn't work though, so anyone,
know why

header("HTTP/1.0 401 Unauthorised");  causes an internal server error?..


Ross

-----Original Message-----
From: Morten [Achtung] [mailto:[EMAIL PROTECTED]]
Sent: 11 November 2001 17:35
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: SV: [PHP-WIN] $PHP_AUTH_USER


I am not running it as a CGI script.
It's install on my computer together with Apache.

I tried several script's but the don't work. Do I have to work
with the php.ini file or?

Morten

-----Oprindelig meddelelse-----
Fra: Ross Fleming [mailto:[EMAIL PROTECTED]]
Sendt: 11. november 2001 17:24
Til: morten; [EMAIL PROTECTED]
Emne: RE: [PHP-WIN] $PHP_AUTH_USER


How are you using PHP with the webserver?  If you're running it as a CGI
script then you can't access those variables

Ross

-----Original Message-----
From: morten [mailto:[EMAIL PROTECTED]]
Sent: 11 November 2001 14:55
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] $PHP_AUTH_USER


Hi,

I am trying to find out how to use $PHP_AUTH_USER. The problem is
that I don't progress because of an 'Internal Server Error'. I tried
this
script
from php.net:

<?php
  if(!isset($PHP_AUTH_USER)) {
    header("WWW-Authenticate: Basic realm=\"My Realm\"");
    header("HTTP/1.0 401 Unauthorized");
    echo "Text to send if user hits Cancel button\n";
    exit;
  } else {
    echo "<p>Hello $PHP_AUTH_USER.</p>";
    echo "<p>You entered $PHP_AUTH_PW as your password.</p>";
  }
?>

But the only answer is this: Internal Server Error. Is it the php.ini
file
that's not
configured well, or..?

Morten



--
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]







--
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 ---
Hi Ross,

Thanks a LOT. It worked when I shifted to the LoadModule script.

In all the danish sites where they wrote about php/apache they use the old
script. How come if it is not working with headers?

Morten

"Ross Fleming" <[EMAIL PROTECTED]> skrev i en meddelelse
news:[EMAIL PROTECTED]...
> You haven't installed it as an apache module.  I double checked.  To see
if
> I'm right, just create a php script with this in it:
> <?
> getallheaders();
> ?>
>
> If it says "call to undefined function" when u view it in explorer then do
> the following.
>
> Copy php4ts.dll to windows/system or winnt/system32 or whatever one is
> applicable.
>
> Edit your httpd.conf and delete:
>    ScriptAlias /php/ "c:/php/"
>    AddType application/x-httpd-php .php
>    Action application/x-httpd-php "/php/php.exe"
> wherever it might be and type this in its place:
>
>    LoadModule php4_module c:/php/sapi/php4apache.dll
>    AddType application/x-httpd-php .php
>
> making sure of course, that c:/php is where you've got php installed.
>
> Restart apache and hey presto..
>
> Ross
>
> -----Original Message-----
> From: Ross Fleming [mailto:[EMAIL PROTECTED]]
> Sent: 11 November 2001 22:14
> To: Morten [Achtung]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] $PHP_AUTH_USER
>
>
> OK, having run the same script, I'm getting a 500 as well, still not sure
> why, but I know the cause.  Take out
>     header("HTTP/1.0 401 Unauthorized");
> and it works.  I really don't know why this doesn't work though, so
anyone,
> know why
>
> header("HTTP/1.0 401 Unauthorised");  causes an internal server error?..
>
>
> Ross
>
> -----Original Message-----
> From: Morten [Achtung] [mailto:[EMAIL PROTECTED]]
> Sent: 11 November 2001 17:35
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: SV: [PHP-WIN] $PHP_AUTH_USER
>
>
> I am not running it as a CGI script.
> It's install on my computer together with Apache.
>
> I tried several script's but the don't work. Do I have to work
> with the php.ini file or?
>
> Morten
>
> -----Oprindelig meddelelse-----
> Fra: Ross Fleming [mailto:[EMAIL PROTECTED]]
> Sendt: 11. november 2001 17:24
> Til: morten; [EMAIL PROTECTED]
> Emne: RE: [PHP-WIN] $PHP_AUTH_USER
>
>
> How are you using PHP with the webserver?  If you're running it as a CGI
> script then you can't access those variables
>
> Ross
>
> -----Original Message-----
> From: morten [mailto:[EMAIL PROTECTED]]
> Sent: 11 November 2001 14:55
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] $PHP_AUTH_USER
>
>
> Hi,
>
> I am trying to find out how to use $PHP_AUTH_USER. The problem is
> that I don't progress because of an 'Internal Server Error'. I tried
> this
> script
> from php.net:
>
> <?php
>   if(!isset($PHP_AUTH_USER)) {
>     header("WWW-Authenticate: Basic realm=\"My Realm\"");
>     header("HTTP/1.0 401 Unauthorized");
>     echo "Text to send if user hits Cancel button\n";
>     exit;
>   } else {
>     echo "<p>Hello $PHP_AUTH_USER.</p>";
>     echo "<p>You entered $PHP_AUTH_PW as your password.</p>";
>   }
> ?>
>
> But the only answer is this: Internal Server Error. Is it the php.ini
> file
> that's not
> configured well, or..?
>
> Morten
>
>
>
> --
> 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]
>
>
>
>
>
>
>
> --
> 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 ---
Does anybody know where to get pgsql.dll for PostgreSQL support?

Is there a web page with all (e.g. curl, xml) the dlls built for the current
release of php (e.g. 4.0.6)?

Thanks,

Tom Gordon
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Tom Gordon) 
wrote:
>Does anybody know where to get pgsql.dll for PostgreSQL support?
>
>Is there a web page with all (e.g. curl, xml) the dlls built for the current
>release of php (e.g. 4.0.6)?
>
>Thanks,
>
>Tom Gordon
>[EMAIL PROTECTED]
>
>


Ah yes... http://www.php.net/

David
--- End Message ---
--- Begin Message ---
Win Free Art - No Strings Attached

Special
Announcement &amp; Free Offer

[ Promotion End: 11-13-2001 - U.S.
Residents Only ]

Young Exciting Art
Publisher Introduces New Cutting-Edge Art.

Art Publisher Introduces Fresh New 
Art On The Internet!

Help us with our demographics testing for this incredible new
artwork and you'll get a $395.00 fine art canvas reproduction.

v Select From The Work Of 13 Artists... 

v Over 600 Images To Choose From!

Absolutely NO STRINGS attached to
this offer!

All you do is include the requested information in an e-mail to the address below.

Your name
E-mail address

You will then be sent a
confirmation email and an invitation to visit our website. You will then select the
artist of your choice and your favorite piece!

Our promise to you: We
will never sell or rent your e-mail address to anyone.

Win
$395.00 Fine Art On Canvas

All you do is simply click the confirmation link below to send your request by e-mail.
Free Art Offer Request: Subscribe Link
To qualify, please make sure the exact words ArtOffer
are in the subject line and that your first and last name are in the message.

Address Removal Instructions

This advertisement provides all recipients with a no-cost
method to permanently remove thier e-mail address from future mailings.
To permanently remove your address click here to send your request.


--- End Message ---
--- Begin Message ---
I am getting the following error:

Warning: Unable to load dynamic library 'C:\extentions\php_ming.dll' - The specified 
module could not be found. in c:\inetpub\wwwroot\dawndusk\swf_test\swf_shape.php on 
line 2


If I have the php_ming.dll in the extensions folder. Why do I still get this error? 
Any info. helps. 

I am also looking for docs on ming windows 2000 install! 

Thanks, 
Josh Seward
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
Dear all
I had made a page for edit which contains Input box, but the Input box is
not blank, i had used the php script to make the input box use the last
input text as the default value.
The problem comes out like this, when i input the text into the input box on
the first time, it just works fine (it copy my heading to a file called
"Heading.txt" and the content to a file called "Content.txt", then when i
click a link , the heading and the context from these file will be display
nicely.), but  when i go back to the page for edit on sec time, i can see
there is a lot of <BR> in the input box, as much time i submit to the input
box, the more <BR> will come out and display in the box.
So is there anyway that i can skip the <BR> appear in my input box???
The input box is actually read the content from the heading and content.txt
file.

Thx
Jack
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
On Saturday 10 November 2001 8:00 pm, Chris Martinez wrote:
> I just installed php on my Windows 2000 box which is using IIS 5.  The
> install seems to have run fine, however anytime I try to launch a php page
> I get a popup that says:
>
> php.exe - application error
> The instruction at "0x100321e3" referenced memory at "0x00088bdc".  The
> memory could not be "read".
>
> My browser returns the following:
>
> CGI Error
> The specified CGI application misbehaved by not returning a complete set of
> HTTP headers. The headers it did return are:
>

It looks like php is b;lowing up for some reason.
Try running php from the command line as described in install.txt to see if 
you get the same error.

I don't have W2K/IIS5 but I know  many many people are using php on that 
platform, so I suspect there must be something strange about your setup - no 
idea what though :)

-- 
Phil Driscoll
--- End Message ---

Reply via email to