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
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
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
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
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
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
--- 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?
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
--- 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
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
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
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
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.
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
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;
--- 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
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
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
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
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);
--- 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;
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
$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
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
:
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
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
-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
]
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
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
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
]; 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
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
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
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
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
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
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
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
38 matches
Mail list logo