AH, sure. Sorry for my response. I was having some Rev problems and
that always makes me cranky.
Dan
On Aug 18, 2005, at 9:42 PM, jbv wrote:
Dan,
So I'm not sure what you mean by thanks for answering anyway
implying that I'm wrong. Maybe you've uncovered contradictory
information?
Hi list,
When using Rev cgi, when my script on the server sends some HTML code
to the client, I use the following line :
put Content-Type: text/html cr cr
but when the code I want to send to the client is actually HTML + PHP
code,
how shall I transform this line in my cgi script ?
Is it
It's still text/html I think, JB. The PHP is embedded and the file
extension PHP tells the server to execute PHP scripts inline but from
the browser's perspective, I think it's still text/html.
At least that's my finding from a quick look at a couple of PHP pages
I generate.
On Aug 18,
Dan,
even if the original file name was myFile.php ?
Thanks for answering anyway...
JB
It's still text/html I think, JB. The PHP is embedded and the file
extension PHP tells the server to execute PHP scripts inline but from
the browser's perspective, I think it's still text/html.
At
JB-
The content-type is independent of the language used on the server. It
simply tells the browser the format of the data you are _sending_ to
it. So if your script generates HTML, then it should tell the browser
the content-type is text/html regardless of whether Rev or PHP is
doing the
Brian,
Thanks for the answer...
actually, I have generated various data formats through Rev cgi
scripts (including pdf files that open Acrobat when a btn is clicked
on a webpage), but as I'm not too familiar with php, I was wondering...
Thanks again,
JB
JB-
The content-type is independent
Yes, regardless of the name of the file. I've checked three PHP
references I have and they all say the same thing. PHP is viewed as
embedded in an HTML page even when there are no HTML tags around. So
if you're sending the browser a dynamically created page that
contains -- or even
Dan,
So I'm not sure what you mean by thanks for answering anyway
implying that I'm wrong. Maybe you've uncovered contradictory
information?
Please don't be confused by my poor english...
The important part of the sentence was thanks for answering.
Tha actual meaning was : no matter