Re: [PHP] CONTENT-type for sending HTML attachments

2007-03-19 Thread Richard Lynch
On Fri, March 16, 2007 10:16 am, Angelo Zanetti wrote: Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME

[PHP] CONTENT-type for sending HTML attachments

2007-03-16 Thread Angelo Zanetti
Hi guys. Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME content-type to use. The content type I use to for

Re: [PHP] CONTENT-type for sending HTML attachments

2007-03-16 Thread Tijnema !
On 3/16/07, Angelo Zanetti [EMAIL PROTECTED] wrote: Hi guys. Im using the HTML Mime Mail http://www.phpguru.org/static/mime.mail.html class from phpguru.org. Anyway I've written a few scripts that use the class to attach files to it. These files are HTML reports but Im not sure what MIME

Re: [PHP] Content-Type header required for POST?

2004-10-26 Thread Olaf van der Spek
Chris Shiflett wrote: --- Olaf van der Spek [EMAIL PROTECTED] wrote: Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're talking about? I was talking about the request, not about the response. As was

Re: [PHP] Content-Type header required for POST?

2004-10-26 Thread Olaf van der Spek
Chris Shiflett wrote: --- Olaf van der Spek [EMAIL PROTECTED] wrote: Since which version does PHP require the Content-Type header in POST requests? Content-Type is required for any request that has content. It's an HTTP The RFC says should, not is required to. Any HTTP/1.1 message containing an

[PHP] Content-Type header required for POST?

2004-10-25 Thread Olaf van der Spek
Hi, Since which version does PHP require the Content-Type header in POST requests? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Content-Type header required for POST?

2004-10-25 Thread Chris Shiflett
--- Olaf van der Spek [EMAIL PROTECTED] wrote: Since which version does PHP require the Content-Type header in POST requests? Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're talking about?

Re: [PHP] Content-Type header required for POST?

2004-10-25 Thread Olaf van der Spek
Chris Shiflett wrote: --- Olaf van der Spek [EMAIL PROTECTED] wrote: Since which version does PHP require the Content-Type header in POST requests? Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're

Re: [PHP] Content-Type header required for POST?

2004-10-25 Thread Chris Shiflett
--- Olaf van der Spek [EMAIL PROTECTED] wrote: Content-Type is required for any request that has content. It's an HTTP requirement and has very little to do with PHP. Can you explain what you're talking about? I was talking about the request, not about the response. As was I. That's

[PHP] 'Content-Type: text/plain; charset=utf-8'

2004-04-01 Thread nabil
?php header ('Content-Type: text/plain; charset=utf-8'); echo Hi there; ? I need to echo a plain txt on my page, without any HTML tags. my problem, when I run it on my apache, the save/open screen pops up. What's wrong please help -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] 'Content-Type: text/plain; charset=utf-8'

2004-04-01 Thread Rob Ellis
On Thu, Apr 01, 2004 at 01:55:50PM +0300, nabil wrote: ?php header ('Content-Type: text/plain; charset=utf-8'); echo Hi there; ? I need to echo a plain txt on my page, without any HTML tags. my problem, when I run it on my apache, the save/open screen pops up. What's wrong please help

Re: [PHP] Content-type vs session_start()

2004-01-09 Thread Børge Strand
Do you have any ideas what I should do to make both .php and .cgi versions work? Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; session_start(); Have you tried putting

Re: [PHP] Content-type vs session_start()

2004-01-09 Thread Børge Strand
Cheers Chris I will try to explain using your code: Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n; When you are running as a CGI, you can set the Content-Type header in this way.

[PHP] Content-type vs session_start()

2004-01-08 Thread Børge Strand
I have a problem with html headers using sessions. I guess it has to do with the Content-type line. My ISP uses PHP 4.3.4 with register_globals = On (although I want this to work with Off too). My program (test3.cgi, test3.php) simply logs the number of times I have accessed a web site. As a php

Re: [PHP] Content-type vs session_start()

2004-01-08 Thread Brad Pauly
On Thu, 2004-01-08 at 14:14, Brge Strand wrote: [snip] Do you have any ideas what I should do to make both .php and .cgi versions work? Here's test3.cgi: == #! /usr/local/bin/php ?php print 'Content-type: text/html' . \n\n;

Re: [PHP] Content-type vs session_start()

2004-01-08 Thread Chris Shiflett
--- Børge Strand [EMAIL PROTECTED] wrote: I have a problem with html headers using sessions. I think you mean HTTP headers. I guess it has to do with the Content-type line. Yes, and you seem to have a fundamental misunderstanding between using PHP as an Apache module versus using PHP as a CGI

[PHP] Content-Type:

2003-06-27 Thread Brian V Bonini
This could be an Apache issues, not really sure. I'm trying to output a php doc as text/css using ?php header( Content-type: text/css ); ? But no matter what I do, changing it in the document, adding/altering apache mime types, all I get is text/html. The reason is I'm trying to use @import

Re: [PHP] content type header for downloading files

2003-01-30 Thread Ernest E Vogelsinger
At 02:04 30.01.2003, Dara Dowd said: [snip] $fname is the name of the file i want to download. It works in IE, as in the name of the file to be downloaded appears correctly in the dialog box. I changed 'application/octet' to 'application/octet-stream' and

Re: [PHP] content type header for downloading files

2003-01-30 Thread Sascha Braun
: Re: [PHP] content type header for downloading files At 02:04 30.01.2003, Dara Dowd said: [snip] $fname is the name of the file i want to download. It works in IE, as in the name of the file to be downloaded appears correctly in the dialog box. I changed

Re: [PHP] content type header for downloading files

2003-01-29 Thread Ernest E Vogelsinger
At 03:27 29.01.2003, Dara Dowd said: [snip] I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength);

Re: [PHP] content type header for downloading files

2003-01-29 Thread Chris Shiflett
--- Dara Dowd [EMAIL PROTECTED] wrote: I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength); header(Content-Disposition: attachment;

Re: [PHP] content type header for downloading files

2003-01-29 Thread Dara Dowd
PROTECTED] Date: Wed, 29 Jan 2003 06:47:17 -0800 (PST) To: Dara Dowd [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] content type header for downloading files --- Dara Dowd [EMAIL PROTECTED] wrote: I have the following headers in download.php which forces a download dialog box

RE: [PHP] content type header for downloading files

2003-01-29 Thread John W. Holmes
$fname is the name of the file i want to download. It works in IE, as in the name of the file to be downloaded appears correctly in the dialog box. I changed 'application/octet' to 'application/octet-stream' and this had no effect. Maybe find a site that works correctly on the browser in

RE: [PHP] content type header for downloading files

2003-01-29 Thread Dara Dowd
how do i examine the headers sent? - Original Message - From: John W. Holmes [EMAIL PROTECTED] Date: Wed, 29 Jan 2003 20:06:47 -0500 To: ''Dara Dowd'' [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] content type header for downloading files $fname

Re: [PHP] content type header for downloading files

2003-01-29 Thread Evan Nemerson
: how do i examine the headers sent? - Original Message - From: John W. Holmes [EMAIL PROTECTED] Date: Wed, 29 Jan 2003 20:06:47 -0500 To: ''Dara Dowd'' [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] content type header for downloading files $fname

[PHP] content type header for downloading files

2003-01-28 Thread Dara Dowd
I have the following headers in download.php which forces a download dialog box to be opened when a user clicks on a desired file: header(Content-type: application/octet); header(Content-Length: $filelength); header(Content-Disposition: attachment; filename=.basename($fname).;); This works

Re: [PHP] content type header for downloading files

2003-01-28 Thread Evan Nemerson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Change header(Content-Disposition: attachment; filename=.basename($fname).;); to header(Content-Disposition: inline; filename=.basename($fname).;); On Tuesday 28 January 2003 06:27 pm, Dara Dowd wrote: I have the following headers in download.php

Re: [PHP] content type header for downloading files

2003-01-28 Thread Dara Dowd
] Date: Tue, 28 Jan 2003 21:28:19 -0800 To: Dara Dowd [EMAIL PROTECTED] Subject: Re: [PHP] content type header for downloading files -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Change header(Content-Disposition: attachment; filename=.basename($fname).;); to header(Content-Disposition: inline

[PHP] Content Type Text?

2001-08-01 Thread Jeff Oien
I've looked all over and can't find a content-type declaration for text. This is my guess header(Content-Type: text/txt); but I'm not sure if this is right. I know this is more HTTP than PHP. I want info to be displayed in a browser as plain text not HTML. Thanks. Jeff Oien -- PHP General

RE: [PHP] Content Type Text?

2001-08-01 Thread Jerry Lake
text/plain Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 2:35 PM To: PHP Subject: [PHP] Content Type

RE: [PHP] Content Type Text?

2001-08-01 Thread Gonyou, Austin
]; PHP Subject: RE: [PHP] Content Type Text? text/plain Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Wednesday

Re: [PHP] Content Type Text?

2001-08-01 Thread Matt Greer
on 8/1/01 4:35 PM, Jeff Oien at [EMAIL PROTECTED] wrote: I've looked all over and can't find a content-type declaration for text. This is my guess header(Content-Type: text/txt); but I'm not sure if this is right. I know this is more HTTP than PHP. I want info to be displayed in a browser

[PHP] content-type added to php copy, changes file size , adds content-type to start of file

2001-05-05 Thread Wade Peacock
Hello Gurus, I have an issue, that I am trying to figure out if it is an Apache config issue or a PHP issue. I have written a script to upload file to a directory on my RH7.0 Linux Apache server. directory has been chmod 777. I have a problem with my php uploads. the content-type is added at

[PHP] content-type added to php copy, changes file size , adds content-type to start of file

2001-05-05 Thread Wade Peacock
Hello Gurus, I have an issue, that I am trying to figure out if it is an Apache config issue or a PHP issue. I have written a script to upload file to a directory on my RH7.0 Linux Apache server. directory has been chmod 777. I have a problem with my php uploads. the content-type is added at

[PHP] content-type problem with file uploads

2001-03-12 Thread James Tremain
I've been successfully uploading graphic files to a directory on my php server for more than a year. Suddenly, it no longer works, and after a lot of probing, I'm at a loss to determine why. I run PHP4.0.4pl1-3 as an Apache module on RedHat7. Files upload as expected, but PHP no longer provides

Re: [PHP] content-type problem with file uploads

2001-03-12 Thread Nick Davies
Content-type = not Content-Type = ... On Mon, 12 Mar 2001, James Tremain wrote: I've been successfully uploading graphic files to a directory on my php server for more than a year. Suddenly, it no longer works, and after a lot of probing, I'm at a loss to determine why. I run

Re: [PHP] Content-Type: image/gif and send the image in hex

2001-03-04 Thread Christian Reiniger
On Sunday 04 February 2001 05:53, you wrote: Hi all, I'm trying to make a demonstration script (using PHP) that demonstrates the use of MIME types in HTTP headers. It should send the Content-Type header and than sends an image to the browser in hex. What do you mean with "in hex"? Hex is a

[PHP] Content-Type: image/gif and send the image in hex

2001-03-03 Thread Eelco de Vries
Hi all, I'm trying to make a demonstration script (using PHP) that demonstrates the use of MIME types in HTTP headers. It should send the Content-Type header and than sends an image to the browser in hex. I run the script in my browser and get the bare decimal values displayed and not the GIF