php-windows Digest 15 Jun 2004 21:30:06 -0000 Issue 2285
Topics (messages 23981 through 23985):
PDF Acrobat Issue *Strange*
23981 by: trippin
23982 by: Charles P. Killmer
23983 by: trippin
IIS 6 ISAPI and extension_dir
23984 by: Eric
23985 by: Eric
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 am trying to create a PDF document on the fly from database information (mysql). I
have this identical script setup on my FreeBSD server (1.3.x apache, 4.3.4 php), but i
am on a Windows 2003 server and I have tried serveral combinations of apache including
1.3.31 and 2.0.49. I have also tried 4.3.4 and 4.3.7. My problem sounds simple
enough. When I click on a link I want the pdf document to open up in Adobe Acrobat,
and it does just fine when on my FreeBSD server. I copied my scripts over and when I
run them now the proper mime type is detected (I have fully looked at the headers and
they are propper and identical to the FreeBSD servers headers), but I get a window
that opens up and shows the raw text of the pdf document. If I right click on the
document and go to properties it says it is an "Adobe Acrobat Document" just like it
should. I have tried serveral different header() combinations as suggesed by the user
comments @ http://www.php.net/header but I can't get adobe !
acrobat to open the files. Its not the client or the script because everything works
fine with i direct my webbrowser back on over to my old server.
I would love to run any of the free *nixs but my job does not permit me to do that. My
only clue to this would be some php.ini file settings that i am unaware of. I have
tried both dist and recommeneded php inis.
Thanks
--- End Message ---
--- Begin Message ---
If the headers and data are correct then the server is handling it
correctly. What I have notice in the past is that simply hitting
refresh in IE doesn't always work. Try copying to url to the clipboard
and going to some other site. Like google.com. Then paste the url back
from the clipboard. This has worked for me in the past when IE displays
the binary data of the pdf.
Charles Killmer
-----Original Message-----
From: trippin [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 15, 2004 1:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PDF Acrobat Issue *Strange*
I am trying to create a PDF document on the fly from database
information (mysql). I have this identical script setup on my FreeBSD
server (1.3.x apache, 4.3.4 php), but i am on a Windows 2003 server and
I have tried serveral combinations of apache including 1.3.31 and
2.0.49. I have also tried 4.3.4 and 4.3.7. My problem sounds simple
enough. When I click on a link I want the pdf document to open up in
Adobe Acrobat, and it does just fine when on my FreeBSD server. I copied
my scripts over and when I run them now the proper mime type is detected
(I have fully looked at the headers and they are propper and identical
to the FreeBSD servers headers), but I get a window that opens up and
shows the raw text of the pdf document. If I right click on the document
and go to properties it says it is an "Adobe Acrobat Document" just like
it should. I have tried serveral different header() combinations as
suggesed by the user comments @ http://www.php.net/header but I can't
get adobe !
acrobat to open the files. Its not the client or the script because
everything works fine with i direct my webbrowser back on over to my old
server.
I would love to run any of the free *nixs but my job does not permit me
to do that. My only clue to this would be some php.ini file settings
that i am unaware of. I have tried both dist and recommeneded php inis.
Thanks
--
PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thank you very much for you observation. I am also aware of this issue, but I have
tried this already and it didn't help, because it is sending the correct mime-type as
far as I can tell. Internet Explorer reconizes it as a Adobe Acrobat Document so I
can't figure out why it won't open! I have tested this on several computers.
thanks
Charles P. Killmer wrote:
>If the headers and data are correct then the server is handling it
>correctly. What I have notice in the past is that simply hitting
>refresh in IE doesn't always work. Try copying to url to the clipboard
>and going to some other site. Like google.com. Then paste the url back
>from the clipboard. This has worked for me in the past when IE displays
>the binary data of the pdf.
>
>Charles Killmer
>
>-----Original Message-----
>From: trippin [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 15, 2004 1:29 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP-WIN] PDF Acrobat Issue *Strange*
>
>I am trying to create a PDF document on the fly from database
>information (mysql). I have this identical script setup on my FreeBSD
>server (1.3.x apache, 4.3.4 php), but i am on a Windows 2003 server and
>I have tried serveral combinations of apache including 1.3.31 and
>2.0.49. I have also tried 4.3.4 and 4.3.7. My problem sounds simple
>enough. When I click on a link I want the pdf document to open up in
>Adobe Acrobat, and it does just fine when on my FreeBSD server. I copied
>my scripts over and when I run them now the proper mime type is detected
>(I have fully looked at the headers and they are propper and identical
>to the FreeBSD servers headers), but I get a window that opens up and
>shows the raw text of the pdf document. If I right click on the document
>and go to properties it says it is an "Adobe Acrobat Document" just like
>it should. I have tried serveral different header() combinations as
>suggesed by the user comments @ http://www.php.net/header but I can't
>get adobe !
> acrobat to open the files. Its not the client or the script because
>everything works fine with i direct my webbrowser back on over to my old
>server.
>I would love to run any of the free *nixs but my job does not permit me
>to do that. My only clue to this would be some php.ini file settings
>that i am unaware of. I have tried both dist and recommeneded php inis.
>Thanks
>
>--
>PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
>http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello all,
I have to run PHP 4.3.7 in ISAPI mode, because CGI gives me a security error
which is another story.
So, I have ISAPI PHP running just great, except that phpinfo() shows that my
current php.ini file is C:\WINSOWS\php.ini, and that my extension_dir is set
to C:\php4. However when I open the PHP.INI file, I see that I have it set
to C:\php\extensions. In fact, any change that I make to the PHP.INI file
is not reflected in phpinfo(). The problem persists after IISRESET.
Unless I can get PHP to actually read my php.ini file I can't enable any of
the extensions... like mssql
thank you for any help you can offer
Eric
--- End Message ---
--- Begin Message ---
Well, I re-installed using the ZIP and instead of doing IISRESET I recycled
the service after making changes and everything seems to be running just
fine now... false alarm :-)
"Eric" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello all,
>
> I have to run PHP 4.3.7 in ISAPI mode, because CGI gives me a security
error
> which is another story.
>
> So, I have ISAPI PHP running just great, except that phpinfo() shows that
my
> current php.ini file is C:\WINSOWS\php.ini, and that my extension_dir is
set
> to C:\php4. However when I open the PHP.INI file, I see that I have it
set
> to C:\php\extensions. In fact, any change that I make to the PHP.INI file
> is not reflected in phpinfo(). The problem persists after IISRESET.
>
> Unless I can get PHP to actually read my php.ini file I can't enable any
of
> the extensions... like mssql
>
> thank you for any help you can offer
>
> Eric
--- End Message ---