Re: [PHP] MIME type

2007-09-13 Thread Angelo Zanetti
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:

Re: [PHP] MIME type

2007-09-12 Thread heavyccasey
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

Re: [PHP] MIME type

2007-09-12 Thread Angelo Zanetti
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: ' .

[PHP] MIME type

2007-09-11 Thread Angelo Zanetti
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');

Re: [PHP] mime type over http post?

2007-05-19 Thread Ray
. 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

[PHP] mime type over http post?

2007-05-16 Thread 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

Re: [PHP] mime type over http post?

2007-05-16 Thread Stephen
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

Re: [PHP] mime type over http post?

2007-05-16 Thread Ray
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

Re: [PHP] mime type over http post?

2007-05-16 Thread Tijnema !
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

Re: [PHP] mime type over http post?

2007-05-16 Thread Oliver Block
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

Re: [PHP] Mime-type handling

2005-12-09 Thread Manuel Vacelet
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

[PHP] Mime-type handling

2005-12-08 Thread Manuel Vacelet
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

Re: [PHP] Mime-type handling

2005-12-08 Thread Zack Bloom
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

Re: [PHP] Mime-type handling

2005-12-08 Thread Curt Zirzow
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

Re: [PHP] Mime-type handling

2005-12-08 Thread Curt Zirzow
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

[PHP] Mime type and PECL::Fileinfo.

2004-08-29 Thread Dave Restall - System Administrator,,,
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

Re: [PHP] MIME-type to file extension

2003-08-14 Thread Chris Boget
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

Re: [PHP] MIME-type to file extension

2003-08-14 Thread Ney André de Mello Zunino
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

Re: [PHP] MIME-type to file extension

2003-08-14 Thread Ney André de Mello Zunino
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

[PHP] MIME-type to file extension

2003-08-14 Thread Ney André de Mello Zunino
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

Re: [PHP] MIME-type to file extension

2003-08-14 Thread Chris Boget
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

[PHP] mime type

2003-06-27 Thread Brian V Bonini
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

[PHP] mime type list

2002-09-30 Thread christian haines
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

Re: [PHP] mime type list

2002-09-30 Thread Marek Kilimajer
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

Re: [PHP] mime type list

2002-09-30 Thread christian haines
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

[PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis
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

Re: [PHP] Mime type prepeded at file upload

2002-03-25 Thread Miguel Cruz
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

RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread Miguel Cruz
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

[PHP] RESOLVED -- RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread 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

Re: [PHP] MIME type

2001-06-27 Thread Richard Lynch
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

Re: [PHP] MIME type

2001-06-27 Thread teo
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

RE: [PHP] MIME type

2001-06-27 Thread scott [gts]
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

[PHP] MIME type

2001-06-26 Thread Jon Yaggie
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

[PHP] Mime type

2001-04-04 Thread phpa
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

[PHP] MIME type detection on file

2001-02-21 Thread Andris Jancevskis
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, --