php-windows Digest 20 Feb 2003 15:47:39 -0000 Issue 1597
Topics (messages 18626 through 18635):
PHP HTTP Authentication, Win2k & IIS
18626 by: John Toews
18629 by: Rico Derks
18630 by: Rich Gray
Re: geek fishing stuff
18627 by: Andrew Ferguson
Uploading images stuff
18628 by: Bobo Wieland
GD
18631 by: Olafsson
18633 by: Olafsson
18634 by: Rich Gray
Re: Force a user to download a text file from a link
18632 by: FARRINGTON, RYAN
Re: CGI installation problem
18635 by: Brian 'Bex' Huff
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 ---
Hello All,
I am experimenting with HTTP authentication in IIS 5.0 on a Windows 2000 SP3
server with PHP 4.3.0. PHP is installed as an ISAPI module both as a filter
and an application mapping (both point to the php4isapi.dll). All forms of
authentication are turned off in IIS (anonymous access only). I am using the
php.ini-dist with only the /extensions directory changed.
It appears to me that the user/pass I enter is never getting through to PHP.
I've tried authentication examples from
http://www.zend.com/zend/tut/authentication.php as well as
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=252&lngW
Id=8 with no luck.
(btw, tested on a friends BSD/Apache, worked fine [a simple test from the
zend.com page])
Thanks!
--- End Message ---
--- Begin Message ---
Hi,
I saw on the Zend page that they global variables. Check in your php.ini if
your register_globals is on.
Cheers, RICO.
At 15:58 19/02/2003, John Toews wrote:
<apologies if this came through yesterday as well, I never saw it propogate
though>
Hello All,
I am experimenting with HTTP authentication in IIS 5.0 on a Windows 2000 SP3
server with PHP 4.3.0. PHP is installed as an ISAPI module both as a filter
and an application mapping (both point to the php4isapi.dll). All forms of
authentication are turned off in IIS (anonymous access only). I am using the
php.ini-dist with only the /extensions directory changed.
It appears to me that the user/pass I enter is never getting through to PHP.
I've tried authentication examples from
http://www.zend.com/zend/tut/authentication.php as well as
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=252&lngW
Id=8 with no luck.
(btw, tested on a friends BSD/Apache, worked fine [a simple test from the
zend.com page])
Thanks!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Are you doing the hack needed to use HTTP authentication with IIS? HTTP
Authentication is only supported by Apache with PHP as a module, but there
is a hack/workaround for IIS/ISAPI.
Cheers
Rich
> -----Original Message-----
> From: Rico Derks [mailto:[EMAIL PROTECTED]]
> Sent: 20 February 2003 07:49
> To: John Toews; [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] PHP HTTP Authentication, Win2k & IIS
>
>
> Hi,
>
> I saw on the Zend page that they global variables. Check in your
> php.ini if
> your register_globals is on.
>
> Cheers, RICO.
>
> At 15:58 19/02/2003, John Toews wrote:
> ><apologies if this came through yesterday as well, I never saw
> it propogate
> >though>
> >
> >Hello All,
> >
> >I am experimenting with HTTP authentication in IIS 5.0 on a
> Windows 2000 SP3
> >server with PHP 4.3.0. PHP is installed as an ISAPI module both
> as a filter
> >and an application mapping (both point to the php4isapi.dll).
> All forms of
> >authentication are turned off in IIS (anonymous access only). I
> am using the
> >php.ini-dist with only the /extensions directory changed.
> >
> >It appears to me that the user/pass I enter is never getting
> through to PHP.
> >I've tried authentication examples from
> >http://www.zend.com/zend/tut/authentication.php as well as
> >http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCode
> Id=252&lngW
> >Id=8 with no luck.
> >
> >(btw, tested on a friends BSD/Apache, worked fine [a simple test from the
> >zend.com page])
> >
> >Thanks!
> >
> >
> >
> >
> >--
> >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 ---
The mySQL website has one at: https://order.mysql.com/?sub=vp&pd_no=146
-Andrew
"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> My guiding season begins in April.
>
> Anybody out there know where I can purchase a nice mysql dolphin t-shirt?
>
> Thank you.
> TR
>
>
>
>
>
--- End Message ---
--- Begin Message ---
hi!
anyone got some good code or something for letting users of a website upload
pictures. The pictures should preferably be resized in some different sizes
to fit the criterias of the website, then be presented to the user again so
that he/she could pick the best one...
. bobo .
--- End Message ---
--- Begin Message ---
I'm using php 4.3.1 on a Windows XP and I use IIS 5.1 as a server.I tried to
use GD lib but is seems like the built in support of bundle GB is missing.
Maybe I'm missing something but for me someone forgot to include boundled
libgd in Windows version. I that true?
So can anyone tell my how I install this GD on my system because all the
information I find on the web are for version 4.2.x and are running on a
Unix or linux platform.
Thanx
Oli
--- End Message ---
--- Begin Message ---
Ive figured it out :)
"Olafsson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm using php 4.3.1 on a Windows XP and I use IIS 5.1 as a server.I tried
to
> use GD lib but is seems like the built in support of bundle GB is missing.
> Maybe I'm missing something but for me someone forgot to include boundled
> libgd in Windows version. I that true?
>
> So can anyone tell my how I install this GD on my system because all the
> information I find on the web are for version 4.2.x and are running on a
> Unix or linux platform.
>
> Thanx
> Oli
>
>
--- End Message ---
--- Begin Message ---
>
> I'm using php 4.3.1 on a Windows XP and I use IIS 5.1 as a
> server.I tried to
> use GD lib but is seems like the built in support of bundle GB is missing.
> Maybe I'm missing something but for me someone forgot to include boundled
> libgd in Windows version. I that true?
>
> So can anyone tell my how I install this GD on my system because all the
> information I find on the web are for version 4.2.x and are running on a
> Unix or linux platform.
>
> Thanx
> Oli
Did you uncomment out the GD extensions dll in php.ini and restart IIS?
Rich
--- End Message ---
--- Begin Message ---
you could also try this:
header("Content-Type: application/octet-stream");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=$name");
header("Content-Transfer-Encoding: text");
or this
header( "Content-type: application/octet-stream" );
header( "Content-Disposition: attachment; filename=$skeleton_name.skl" );
header( "Content-Length: $filesize" );
echo $file_contents;
or this
$size=filesize("urfile");
header("Content-Type: application/octet-stream");
header("Content-Length: $size");
header("Content-Disposition: attachment; filename=urfile_name.mp3");
header("Content-Transfer-Encoding: binary");
$fh = fopen("urfile_name", "r");
fpassthru($fh);
they all work for me =) I know I should pick one and stay with it but I get
bored =)
-----Original Message-----
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 19, 2003 10:33 AM
To: Matt Babineau; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Force a user to download a text file from a link
Matt,
You should NEVER force a download on anyone. How do they know it isn't
carrying a virus.
What you should do is to send the headers that prompt a dialog box for Save
or Open (I'm sure you've seen this).
I'm not sure which headers you use for csv or txt files but I do this with
PDFs all the time.
<?php
$fpd = "E:\\Pdf\\" . $fp . ".pdf";
$len = filesize($fpd);
header("Content-Type: application/pdf");
header("Content-Disposition: inline; filename=$fpd");
header("Content-Title: $fpd");
header("Content-Length: $len");
readfile($fpd);
?>
I suspect that you just need to change pdf to text in the Content-Type line.
Using the above script will always save the file as (scriptname.pdf)
so I've been a bit creative and when my user is heading towards a document,
an appropriately named script containing the above script is created
on the fly and called to handle the download. It is then deleted when
they confirm downloading.
The rest of my site uses Lasso so there's no point showing how those parts
work.
HTH
George
> -----Original Message-----
> From: Matt Babineau [mailto:[EMAIL PROTECTED]]
> Sent: 19 February 2003 4:24 pm
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Force a user to download a text file from a link
>
>
> How can I force a download of a TXT file from a Link? Or an Excel CSV
> file? using PHP of course too. I am running PHP 4.3 on W2K. Are there
> any tutorials for this?
>
> Thx-
>
> Matt
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
ok... here's the thing...
The security issue seems to be that the flag 'cgi.force_redirect'
doesn't work in 4.3.0. This is only a security problem with Apache, NOT
IIS:
http://www.php.net/release_4_3_1.php
Id recommend going to the downloads page and using an older version of
PHP, and seeing which one works best for you. 4.2.3 is nice, unless
you're taking advantage of a lot of new 4.3 stuff:
http://www.php.net/downloads.php
--
Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424
I've read all the manual ..., and have done what you said, but nothing is
ok.
Look at http://bugs.php.net/bug.php?id=22292
http://bugs.php.net/bug.php?id=22291
--- End Message ---