GOt it working by adding the MIME type to the .htaccess file on the server.
Angelo Zanetti wrote:
Thanks heavyccasey
Im not sure which comment you are referring to, perhaps this one?
There are many posts.
|?php
$file = '/var/www/html/file-to-download.xyz';
header('Content-Description:
Look up readfile();
Make sure you read the comments.
On 9/11/07, Angelo Zanetti [EMAIL PROTECTED] wrote:
Hi guys.
I am linking to a file on a WAP site. the backend is written in PHP.
However I need to link to a file but set the content type. I've done the
following and am wondering if
Thanks heavyccasey
Im not sure which comment you are referring to, perhaps this one? There
are many posts.
|?php
$file = '/var/www/html/file-to-download.xyz';
header('Content-Description: File Transfer');
header('Content-Type: application/force-download');
header('Content-Length: ' .
Hi guys.
I am linking to a file on a WAP site. the backend is written in PHP.
However I need to link to a file but set the content type. I've done the
following and am wondering if this is correct:
?
// We'll be outputting a PDF
header('Content-type: application/vnd.symbian.install');
. send the header (fputs)
4. send the body (fputs)
5. close the connection
Additional Questions?
Best Regards,
Oliver
P.S: I just know better where to look for information:-)
- original Nachricht
Betreff: [PHP] mime type over http post?
Gesendet: Mi, 16. Mai 2007
Von: Ray
Hello,
I'm trying to write a web-based aplication that talks to a third party server.
I'm having a hard time getting support from from them. the method of
comunication (direct quote from their docs is:
Data will be transferred to [server] via an HTTP POST operation using the
MIME type, text/xml
I'm having a hard time getting support from from them. the method of
comunication (direct quote from their docs is:
Data will be transferred to [server] via an HTTP POST operation using the
MIME type, text/xml
They want you to mimic what a browser would send to a web site when the
user
On Wednesday 16 May 2007 11:12 am, Stephen wrote:
I'm having a hard time getting support from from them. the method of
comunication (direct quote from their docs is:
Data will be transferred to [server] via an HTTP POST operation using
the MIME type, text/xml
They want you to mimic what
On 5/16/07, Ray [EMAIL PROTECTED] wrote:
On Wednesday 16 May 2007 11:12 am, Stephen wrote:
I'm having a hard time getting support from from them. the method of
comunication (direct quote from their docs is:
Data will be transferred to [server] via an HTTP POST operation using
the MIME
Nachricht
Betreff: [PHP] mime type over http post?
Gesendet: Mi, 16. Mai 2007
Von: Ray[EMAIL PROTECTED]
Hello,
I'm trying to write a web-based aplication that talks to a third party
server.
I'm having a hard time getting support from from them. the method of
comunication (direct
2005/12/9, Curt Zirzow [EMAIL PROTECTED]:
On Thu, Dec 08, 2005 at 12:31:52PM +0100, Manuel Vacelet wrote:
Hi all,
I'm facing a bad behaviour of 'file' command used by fileinfo PECL
module
(recommanded for mime-type checking):
* Some Microsoft Excel documents are detected as Microsoft
Hi all,
I'm facing a bad behaviour of 'file' command used by fileinfo PECL module
(recommanded for mime-type checking):
* Some Microsoft Excel documents are detected as Microsoft Word documents
* Some HTML files are just text/plain
* ...
I tested on multiple machines (with different version of
mime types are very unreliable and should never be used for file type
authentication (they can also be faked by users). Instead you could try
using the extension of the file or an identifying statement in the file.
On 12/8/05, Manuel Vacelet [EMAIL PROTECTED] wrote:
Hi all,
I'm facing a bad
On Thu, Dec 08, 2005 at 02:41:43PM -0500, Zack Bloom wrote:
mime types are very unreliable and should never be used for file type
authentication (they can also be faked by users). Instead you could try
using the extension of the file or an identifying statement in the file.
He isn't using the
On Thu, Dec 08, 2005 at 12:31:52PM +0100, Manuel Vacelet wrote:
Hi all,
I'm facing a bad behaviour of 'file' command used by fileinfo PECL module
(recommanded for mime-type checking):
* Some Microsoft Excel documents are detected as Microsoft Word documents
* Some HTML files are just
Hi,
PHP 4.3.8, Apache 1.3.31, Debian/GNU Linux
Is anybody using PECL extensions ? I want to let people upload data to a
site I'm building and want to avoid using mime_content_type because from
the manual :-
This extension has been deprecated as the PECL extension fileinfo
provides the same
Client side or server side? If the latter, what webserver are you
running?
Server side and I am running Apache 1.3.27. I preferably would like to
know whether PHP offers such facility, but alternative solutions are
welcome as well.
More information is definitely needed and it usually
Chris Boget wrote:
Client side or server side? If the latter, what webserver are you
running?
Server side and I am running Apache 1.3.27. I preferably would like to
know whether PHP offers such facility, but alternative solutions are
welcome as well.
More information is definitely needed and
Chris Boget wrote:
How do you intend on using that information? Typically the mime types
are set up in one of apache's .conf files. The same file you set up the
PHP extension, if I remember correctly.
The actual use involves handling file uploads. The uploaded files must
be moved to a
Hello.
Is there any facility that will help one map a MIME-type to a file
extension or extensions? E.g. 'image/jpeg' should map to ('jpg',
'jpeg'), 'image/gif' should map to ('gif') and so on.
Thank you,
--
Ney André de Mello Zunino
--
PHP General Mailing List (http://www.php.net/)
To
Is there any facility that will help one map a MIME-type to a file
extension or extensions? E.g. 'image/jpeg' should map to ('jpg',
'jpeg'), 'image/gif' should map to ('gif') and so on.
Client side or server side? If the latter, what webserver are you
running?
More information is definitely
I want to get php to output text/css for one .php file. I tried using
header() and ini_set () but seems no matter what I do the Content-type
remains text/html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi all,
i have been looking around on the net for a relatively complete
mime-type listing (possibly showing extensions) but have not come across
anything.
does anyone know of such a list or where i could obtain one?
who looks after such a list might be a better question.
many thanks
christian
I know about /etc/mime.types, does that help?
christian haines wrote:
hi all,
i have been looking around on the net for a relatively complete
mime-type listing (possibly showing extensions) but have not come across
anything.
does anyone know of such a list or where i could obtain one?
who
cheers for that...
that listing should do the trick
it was right under my nose as usual
also thanks for your reply in my other post
christian
Marek Kilimajer wrote:
I know about /etc/mime.types, does that help?
christian haines wrote:
hi all,
i have been looking around on the net
When I save a file that has been uploaded through PHP it prepends (adds
to the beginning of the file) the mime type. This renders the file
unusable when it is downloaded as MS Word cannot open the file and tries
to install some kind of converter.
Any ideas for me?
David McInnis
--
PHP
On Mon, 25 Mar 2002, David McInnis wrote:
When I save a file that has been uploaded through PHP it prepends (adds
to the beginning of the file) the mime type. This renders the file
unusable when it is downloaded as MS Word cannot open the file and tries
to install some kind of converter.
My
that is taken care of in later releases.
David McInnis
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 3:47 PM
To: David McInnis
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Mime type prepeded at file upload
On Mon, 25 Mar 2002, David McInnis
, 2002 11:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Mime type prepeded at file upload
When I save a file that has been uploaded through PHP it prepends (adds
to the beginning of the file) the mime type. This renders the file
unusable when it is downloaded as MS Word cannot open the file and tries
is there a function to get the mime of a given file? if so what?
Probably not...
For starters, PHP doesn't really know much about mime-types, because they
are defined by Apache*, not PHP.
Secondly, mime-types *can* change on the fly in different directories based
on .htaccess files, if your
Hi Jon!
On Sat, 26 May 2001, Jon Yaggie wrote:
is there a function to get the mime of a given file? if so what?
unless you upload it, nope
you may try :
using `magic' -- really, that one installed by Apache for mod_mime_magic.c
parsing 'file' output
-- teodor
--
PHP General
MSIE pretty much throws away any header information
about a file that the server sends and tries to make
a determination itself about the file based on the
file extension
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] MIME type
* If you
is there a function to get the mime of a given
file? if so what?
Thank You,Jon Yaggiewww.design-monster.comAnd
they were singing . . . '100 little bugs in the code100 bugs
in the codefix one bug, compile it again101 little bugs in the
code101 little bugs in the code . . .'And it
Hey there,
anybody know where a list of mime type names can be found? I can generate and Excel
doc - but I dont know the mime names of others such as Word etc etc.
example code:
Thanks
?php
header( "Content-type: application/vnd.ms-excel" );
?
123 123 123
10 10 10
Hi,
is there suggestions how to determine what mime type is file?
for example:
.word - application/wnd-word
.pdf - application/pdf
Files are on local disk. Not accessible from web server.
I'm interesting to determine it on linux (Apache) and win32(IIS 4.0)
platforms.
TIA,
--
35 matches
Mail list logo