Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Re: [PHP] File Types


    On Mon, 15 Sep 2003, Raditha Dissanayake wrote:
    > You don't need to look any further than mime.types files included in
    > your apache distro.
    Did that as well as googled for the list of extensions. Still can't seem
    to find the mime type for .pm7, .p65, .qxp and .pmd.
    Ed Curtis Guest

  2. Similar Questions and Discussions

    1. Rollback file types
      Hello, We currently set the rollback amount to 20. This means contribute saves 20 copies of published files. So when we publish big movie files...
    2. converting file types ?
      i am not familiar with what I can do with director at all but I downloaded the try-out version to learn a little more about it. I was wondering if...
    3. Use asp.net to protect file types
      http://support.microsoft.com/?id=815152 (Edit the script mappings in Internet Services Mananger to protect pdf's with aspnet) I have a site...
    4. File Types
      I currently limit file types in an upload script by using an allowed types array $allowed_types = array("image/jpeg", "image/gif"); I also...
    5. File types help
      You are probably not running a web server. Popular choice for PHP is Apache. http://www.apache.org if you have downloaded and installed apache,...
  3. #2

    Default RE: [PHP] File Types


    You could use the function exif_imagetype() to see what type of file has been uploaded.

    [url]http://es.php.net/manual/en/function.exif-imagetype.php[/url]


    -----Mensaje original-----
    De: Ed Curtis [mailto:ed@homes2see.com]
    Enviado el: lunes, 15 de septiembre de 2003 15:02
    Para: [email]php-general@lists.php.net[/email]
    Asunto: [PHP] File Types
    Importancia: Baja



    I currently limit file types in an upload script by using an allowed
    types array

    $allowed_types = array("image/jpeg", "image/gif");

    I also need to allow files of with the following extentions.

    .tif, .pm7, .p65, .pdf, .qxp, .pmd, .eps

    Is there a site out there anywhere that gives the mime types of theses
    files?

    Thanks,

    Ed

    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, visit: http://www.php.net/unsub.php
    Javier Tacon Guest

  4. #3

    Default Re: [PHP] File Types

    Having done some coding for the print industry i can tell you that pm7
    may be adobe page maker 7 and p65 could be pagemaker 6.5 no idea about
    qxp and .pmd though.



    Ed Curtis wrote:
    >On Mon, 15 Sep 2003, Raditha Dissanayake wrote:
    >
    >
    >
    >>You don't need to look any further than mime.types files included in
    >>your apache distro.
    >>
    >>
    >
    >Did that as well as googled for the list of extensions. Still can't seem
    >to find the mime type for .pm7, .p65, .qxp and .pmd.
    >
    >
    >

    --
    [url]http://www.radinks.com/upload[/url]
    Drag and Drop File Uploader.
    Raditha Dissanayake Guest

  5. #4

    Default Re: [PHP] File Types

    On Monday 15 Sep 2003 14:23, Ed Curtis wrote:
    > On Mon, 15 Sep 2003, Raditha Dissanayake wrote:
    > > You don't need to look any further than mime.types files included in
    > > your apache distro.
    >
    > Did that as well as googled for the list of extensions. Still can't seem
    > to find the mime type for .pm7, .p65, .qxp and .pmd.
    Didn't google hard enough :)

    ..pm5 application/x-pagemaker
    I'd guess that can be extended to pm7 and 65 - I've seen x-pagemaker5 as
    well.

    pmd is also pagemaker according to filext.com, as well as some software I've
    never heard of.

    QXP is a good one, and you may need to ask the manufacturer of the software
    what mime type is used.
    Duncan Hill Guest

  6. #5

    Default Re: [PHP] File Types

    > Didn't google hard enough :)
    >
    > .pm5 application/x-pagemaker
    > I'd guess that can be extended to pm7 and 65 - I've seen x-pagemaker5 as
    > well.
    >
    > pmd is also pagemaker according to filext.com, as well as some software I've
    > never heard of.
    >
    > QXP is a good one, and you may need to ask the manufacturer of the software
    > what mime type is used.
    >
    I think too that application/pagemaker should work for .p65 and .pm7
    as well as .pmd (Page Maker Document). I think .qpx is a Quark Express
    document but I can't find the mime for that anywhere.

    Thanks for the repiles,

    Ed
    Ed Curtis Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139