php-windows Digest 8 Nov 2002 10:18:00 -0000 Issue 1429

Topics (messages 16794 through 16807):

PHP vs ASP headers
        16794 by: Charles P. Killmer
        16795 by: Maxim Maletsky
        16796 by: Maxim Maletsky
        16798 by: Charles P. Killmer

Invalid command 'php_value' in .htaccess
        16797 by: Marcelo Laia

Re: More info - PHP vs ASP headers
        16799 by: Charles P. Killmer

How-to instal GD libary
        16800 by: Davy Obdam

Re: [PHP] How-to instal GD libary
        16801 by: .: B i g D o g :.
        16802 by: Davy Obdam
        16803 by: .: B i g D o g :.

an unknown filter was not added:PHP
        16804 by: Ladan

Re: Beware - Franco Posser is a spammer - Mailer of hugeunsolicited attachments
        16805 by: Franco Pozzer

Re: expat extension
        16806 by: Franco Pozzer

header:location question
        16807 by: Daniel Sturk

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 ---
Why does this code in ASP 
      Response.addheader "Content-type","application/pdf"
      Response.addheader "Content-Disposition","inline; filename=25-1.pdf"

Result in these headers

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 07 Nov 2002 19:57:52 GMT
Content-type: application/pdf
Content-Disposition: inline; filename=25-1.pdf
Content-Type: text/html
Cache-control: private
Transfer-Encoding: chunked


When this code in PHP 4.2.3 Isapi
      header("Content-type: application/pdf");
      header("Content-Disposition: inline; filename=25-1.pdf");
      header("Content-Type: text/html",false);
      header("Cache-control: private");
      header("Transfer-Encoding: chunked");

Result in these headers (Note the Connection: Close)

HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Thu, 07 Nov 2002 19:59:50 GMT
Connection: close
Content-type: application/pdf
Content-Disposition: inline; filename=25-1.pdf
Content-Type: text/html
Cache-control: private
Transfer-Encoding: chunked


I need to stop IIS from sending the Connection: Close

Charles Killmer
--- End Message ---
--- Begin Message ---
why don't you simply override it with:

header("Connection: keep-alive");

I think it only some IIS's default for this case or something..



--
Maxim Maletsky
[EMAIL PROTECTED]



"Charles P. Killmer" <[EMAIL PROTECTED]> wrote... :

> Why does this code in ASP 
>       Response.addheader "Content-type","application/pdf"
>       Response.addheader "Content-Disposition","inline; filename=25-1.pdf"
> 
> Result in these headers
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:57:52 GMT
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> When this code in PHP 4.2.3 Isapi
>       header("Content-type: application/pdf");
>       header("Content-Disposition: inline; filename=25-1.pdf");
>       header("Content-Type: text/html",false);
>       header("Cache-control: private");
>       header("Transfer-Encoding: chunked");
> 
> Result in these headers (Note the Connection: Close)
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:59:50 GMT
> Connection: close
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> I need to stop IIS from sending the Connection: Close
> 
> Charles Killmer
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Capitalize it:

header("Connection: Keep-Alive");

here's some nice info for you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html/psdk/asp/devs9vtx.asp

--
Maxim Maletsky
[EMAIL PROTECTED]



"Charles P. Killmer" <[EMAIL PROTECTED]> wrote... :

> Why does this code in ASP 
>       Response.addheader "Content-type","application/pdf"
>       Response.addheader "Content-Disposition","inline; filename=25-1.pdf"
> 
> Result in these headers
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:57:52 GMT
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> When this code in PHP 4.2.3 Isapi
>       header("Content-type: application/pdf");
>       header("Content-Disposition: inline; filename=25-1.pdf");
>       header("Content-Type: text/html",false);
>       header("Cache-control: private");
>       header("Transfer-Encoding: chunked");
> 
> Result in these headers (Note the Connection: Close)
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:59:50 GMT
> Connection: close
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> I need to stop IIS from sending the Connection: Close
> 
> Charles Killmer
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
I tried that.  It seems PHP will only replace headers that PHP sent.  Not headers sent 
by IIS.

-----Original Message-----
From: Maxim Maletsky [mailto:maxim@;php.net]
Sent: Thursday, November 07, 2002 2:42 PM
To: Charles P. Killmer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP vs ASP headers



Capitalize it:

header("Connection: Keep-Alive");

here's some nice info for you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html/psdk/asp/devs9vtx.asp

--
Maxim Maletsky
[EMAIL PROTECTED]



"Charles P. Killmer" <[EMAIL PROTECTED]> wrote... :

> Why does this code in ASP 
>       Response.addheader "Content-type","application/pdf"
>       Response.addheader "Content-Disposition","inline; filename=25-1.pdf"
> 
> Result in these headers
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:57:52 GMT
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> When this code in PHP 4.2.3 Isapi
>       header("Content-type: application/pdf");
>       header("Content-Disposition: inline; filename=25-1.pdf");
>       header("Content-Type: text/html",false);
>       header("Cache-control: private");
>       header("Transfer-Encoding: chunked");
> 
> Result in these headers (Note the Connection: Close)
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:59:50 GMT
> Connection: close
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> I need to stop IIS from sending the Connection: Close
> 
> Charles Killmer
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

--- End Message ---
--- Begin Message ---
Hi list,

I am trying to configure a site (gallery) and I am not
getting to obtain success.

When inserting the instruction,

<Directory "C:\webdoc\gallery">
        AllowOverride Options FileInfo Index
</Directory>

in httpd.conf of the Apache 2.0.43, I receive the
following error
in the log of the Apache:

[Thu Nov 07 16:17:08 2002] [alert] [client 127.0.0.1]
C:/webdoc/gallery/setup/.htaccess: Invalid command
'php_value', perhaps mis-spelled or defined by the
modulate not included in the server configuration,
referer: http://localhost/gallery/

The lines of mine .htaccess are transcribed next:

[line 1] php_value auto_prepend_file php_value_ok.php
[line 2] php_flag magic_quotes_gpc off

[line 3] Options FollowSymLinks
[line 4] <IfModule mod_rewrite.c>
[line 5] RewriteEngine On
[line 6] RewriteRule ^(index.php)
$index.php?init_mod_rewrite=1&ersandbroken = [QSA]
[line 7] </IfModule>

Where can the error will be??

Any sugestion will be very apreciated?

Thanks

Marcelo
>From Brazil

_______________________________________________________________________
Yahoo! GeoCities
Tudo para criar o seu site: ferramentas f塶eis de usar, espa蔞 de sobra e acess鏎ios.
http://br.geocities.yahoo.com/
--- End Message ---
--- Begin Message ---
I have also just tried the same situation with PHP 4.3.0 Pre 2 isapi module and I get 
the same response.  This looks like something that wont be fixed anytime soon.  I am 
afraid I may have to use asp.  yuck.

Thanks for your help.  If anyone has any other ideas about getting rid of that 
"Connection: Close" header I would be very grateful.

Thanks
Charles Killmer

-----Original Message-----
From: Charles P. Killmer 
Sent: Thursday, November 07, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] PHP vs ASP headers


I tried that.  It seems PHP will only replace headers that PHP sent.  Not headers sent 
by IIS.

-----Original Message-----
From: Maxim Maletsky [mailto:maxim@;php.net]
Sent: Thursday, November 07, 2002 2:42 PM
To: Charles P. Killmer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] PHP vs ASP headers



Capitalize it:

header("Connection: Keep-Alive");

here's some nice info for you:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html/psdk/asp/devs9vtx.asp

--
Maxim Maletsky
[EMAIL PROTECTED]



"Charles P. Killmer" <[EMAIL PROTECTED]> wrote... :

> Why does this code in ASP 
>       Response.addheader "Content-type","application/pdf"
>       Response.addheader "Content-Disposition","inline; filename=25-1.pdf"
> 
> Result in these headers
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:57:52 GMT
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> When this code in PHP 4.2.3 Isapi
>       header("Content-type: application/pdf");
>       header("Content-Disposition: inline; filename=25-1.pdf");
>       header("Content-Type: text/html",false);
>       header("Cache-control: private");
>       header("Transfer-Encoding: chunked");
> 
> Result in these headers (Note the Connection: Close)
> 
> HTTP/1.1 200 OK
> Server: Microsoft-IIS/5.0
> Date: Thu, 07 Nov 2002 19:59:50 GMT
> Connection: close
> Content-type: application/pdf
> Content-Disposition: inline; filename=25-1.pdf
> Content-Type: text/html
> Cache-control: private
> Transfer-Encoding: chunked
> 
> 
> I need to stop IIS from sending the Connection: Close
> 
> Charles Killmer
> 
> -- 
> 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 ---
Hi people,.

Can anyone tell me how to install the GD libary. I use Apache 2.0.40 and
PHP 4.2.3 on a windows XP machine at home. Thanks already....

Best regards,

Davy Obdam
mailto:info@;davyobdam.com 


--- End Message ---
--- Begin Message ---
You need to download the php-version.zip file that contains all of the
extensions in it...

there is the php_gd.dll and php_gd2.dll that you will need to put in
your path...

Then in your php.ini file you need to uncomment that dll out so that it
can be loaded by php...



On Thu, 2002-11-07 at 23:08, Davy Obdam wrote:
> Hi people,.
> 
> Can anyone tell me how to install the GD libary. I use Apache 2.0.40 and
> PHP 4.2.3 on a windows XP machine at home. Thanks already....
> 
> Best regards,
> 
> Davy Obdam
> mailto:info@;davyobdam.com 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
-- 
.: B i g D o g :.


--- End Message ---
--- Begin Message ---
Hi B i g D o g ,

> You need to download the php-version.zip file that contains 
> all of the extensions in it...

Yep i have installed PHP as a apache module(SAPI)

> 
> there is the php_gd.dll and php_gd2.dll that you will need to 
> put in your path...

Where do i move the php_gd.dll and php_gd2.dll files to? There now in
C:\Program Files\PHP\extensions. Is that right? I gues not because i get
an error if i try this. Do i need copy these files to another directory?

> 
> Then in your php.ini file you need to uncomment that dll out 
> so that it can be loaded by php...
>

Thanks for your help;-)

Best regards,
 
Davy Obdam
mailto:info@;davyobdam.com



--- End Message ---
--- Begin Message ---
Is c:\program files\PHP\extensions in your path...

if not then i would add it...also make sure to edit your php.ini file so
that it loads when php is fired up...


On Thu, 2002-11-07 at 23:20, Davy Obdam wrote:
> Hi B i g D o g ,
> 
> > You need to download the php-version.zip file that contains 
> > all of the extensions in it...
> 
> Yep i have installed PHP as a apache module(SAPI)
> 
> > 
> > there is the php_gd.dll and php_gd2.dll that you will need to 
> > put in your path...
> 
> Where do i move the php_gd.dll and php_gd2.dll files to? There now in
> C:\Program Files\PHP\extensions. Is that right? I gues not because i get
> an error if i try this. Do i need copy these files to another directory?
> 
> > 
> > Then in your php.ini file you need to uncomment that dll out 
> > so that it can be loaded by php...
> >
> 
> Thanks for your help;-)
> 
> Best regards,
>  
> Davy Obdam
> mailto:info@;davyobdam.com
> 
> 
-- 
.: B i g D o g :.


--- End Message ---
--- Begin Message ---
I am unable to execute my c++ program from within PHP when it runs as a
cgi in Apache. 
I am able to run:

$cmd="dir c:\abc"
system ($cmd, $errCode);

and see the content of the directory, but I don't seem to
be able to run a simple hello.exe file.

$cmd = "c:\abc\hello.exe";
system ($cmd, $errCode);

The errCode always comes back with 128. What does 128 mean?
 
Here is some info on my setup.
OS: Windows XP
Server: Apache 2.0.43 (win32)
PHP 4
I am running PHP as a CGI

Whenever I go to the page that tries to execute hello.exe, Apache
logs the following error in error.log:
an unknown filter was not added: PHP

I am able to execute my c++ program (hello.exe) from this .php file 
just fine if I use the PHP cli.
 
I appreciate any help.

--- End Message ---
--- Begin Message ---
http://www.systranbox.com/systran/box

Maxim Maletsky wrote:

> You gotta be using some web translator :)
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
> Franco Pozzer <[EMAIL PROTECTED]> wrote... :
>
> > Beloveds Friends of the NG,
> > you excuse to me if I occupy the space for things that are not of pertinenza
> > of the NG.
> >
> > I have had other occasions to forward technical questions and to receive it
> > answered correct and important for my job.
> >
> > For one my distraction without wanting to make disturbance I have sended to a
> > friend of the NG a msg with some examples that I thought could be useful.
> >
> > In good faith account of the size of data is not rendered me that I have
> > sended.
> >
> > I have asked excuse the friend for the NG that moreover had sended a msg
> > little friendly.
> >
> > I hope that all those who have had the occasion to receive mine msg have not
> > been too much disturb to you.
> >
> > It is  not before the time that I write and I receive contacts with Ng but  it
> > is before the time that someone addresses to me in way thus exaggerated and
> > also for sure backs, from my point of view, also discourteous.
> >
> > I ask you excuse for this interference and you I want thanks all.
> >
> > ciao franco
> >
> >
> > neil smith wrote:
> >
> > > Hello List -
> > >
> > > I would just like to suggest that you blacklist Franco Pozzer on your mail
> > > filters.
> > >
> > > He just send me a 2.5 meg mailbomb, after I kindly replied to his question
> > > on dynamic fonts - so Franco you Moron , I hope you rot you tosser. Im on
> > > dialup and I pay for this you know.
> > >
> > > Re: Subject: dynamic font
> > > 16769 by: Franco Pozzer
> > >
> > > Email address used follows :
> > >
> > > Date: Thu, 07 Nov 2002 08:39:22 +0100
> > > From: Franco Pozzer <[EMAIL PROTECTED]>
> > > X-Mailer: Mozilla 4.77 [en] (WinNT; U)
> > >
> > > __________________________________________________________
> > >
> > >     VideoChat with friends online, get Freshly Toasted every day at
> > > http://www.fresh-toast.net : NetMeeting solutions for a connected world.
> > >
> > > --
> > > 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 ---
Expat it is build in in apache since Apache 1.3.14. You do not have to do
anythinhg after instlla Apache and PHP.

In the Win32 system, If you want use DOM extension (libxml2.dll) instead SAX
(expat) you must uncomment php_domxml.dll in the php.ini and move the dlls in
the PHP install into the system root.

If you use XSLT  trasformer like Sablotron you must move the module/object
xmlparse.lib, xmltok.lib in the system root Win32 ENC such as
C:\WinNT\system32....

I have try same these question before to decide to realize an  application
web_based that use XML.

After many test and many consideration I decide to use SAX instead DOM or XSLT
because XPath it is must stable. But the performance it is not equal like DOM.

XSLT it is a good but the mantenace of the code it is very very dificult and
the porpose of the my application it is not well to use it.

If you like to have my applkication to study what I have to make write to me
and I send same prototype.

Ciao Franco.

Seung Hwan Kang wrote:

> As I remember, XML supports is default.
>
> You do NOT have to do anything.
>
> When you run phpinfo() it will show you whether you have already installed
> or not.
>
> //test.php
>
> <?  phpinfo(); ?>
>
> "Terence ng" <[EMAIL PROTECTED]> wrote in message
> news:20021106025232.7193.qmail@;web41115.mail.yahoo.com...
> > Hi!
> >
> > I have installed PHP into Windows 2000 (IIS) by using
> > PHP 4.2.2 installer that no external extensions
> > included.  Now, I need to use XML.  What can I do to
> > create XML parsers?
> >
> > Terence
> >
> > _________________________________________________________
> > 1874(陳奕迅),再見露絲瑪莉(何韻詩),傷逝(葉倩文)...
> > 越800首至新至Hit手機鈴聲!
> > Over 800 latest ringtones, only on Yahoo!
> > http://ringtone.yahoo.com.hk
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
im was eariler using this function
header("Location: http://www.somestreamingserver.com/actualstream.wmv";);

now the provider wants me to use the following url to access the stream

"mms://www.anotherstreamingserver.com/actualstream.wmv" and this doesnt 
work at all with the header redirect

any ideas?
im quite new at this
thanks
daniel

--- End Message ---

Reply via email to