save dialog box

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vince

    save dialog box

    Hi,

    i've configured apache+php on a linux(debian) machine. a request doesn't
    return execution but the source of the php file. If i complete the
    request url with the php file at the end (.php3 extension), all works
    (but not for .php extension).

    I guess this problem deals with mime types ?

    here is what has been added into my httpd.conf :


    LoadModule php3_module /usr/lib/apache/1.3/libphp3.so

    ...

    <IfModule mod_dir.c>
    DirectoryIndex index.html index.htm index.shtml index.cgi
    index.php3 index.php
    </IfModule>

    ....

    # AddType allows you to tweak mime.types without actually editing
    # it, or to make certain files to be certain types.
    #
    # For example, the PHP 3.x module (not part of the Apache
    # distribution - see http://www.php.net) will typically use:
    #
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    #
    # And for PHP 4.x, use:
    #
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps


    what's wrong ?

    thank you for help !

    Vince

  • Pedro Graca

    #2
    Re: save dialog box

    Vince wrote:[color=blue]
    > LoadModule php3_module /usr/lib/apache/1.3/libphp3.so[/color]

    My httpd.conf does not have any reference to PHP3

    LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
    [color=blue]
    > ...[/color]
    [color=blue]
    > AddType application/x-httpd-php3 .php3
    > AddType application/x-httpd-php3-source .phps[/color]

    No references to php3 at all

    [color=blue]
    > AddType application/x-httpd-php .php
    > AddType application/x-httpd-php-source .phps[/color]

    Same here!
    --
    --= my mail box only accepts =--
    --= Content-Type: text/plain =--
    --= Size below 10001 bytes =--

    Comment

    • CountScubula

      #3
      Re: save dialog box

      "Vince" <abuse@wanadoo. fr> wrote in message
      news:bt42hi$715 $1@news-reader2.wanadoo .fr...[color=blue]
      > Hi,
      >
      > i've configured apache+php on a linux(debian) machine. a request doesn't
      > return execution but the source of the php file. If i complete the
      > request url with the php file at the end (.php3 extension), all works
      > (but not for .php extension).
      >
      > I guess this problem deals with mime types ?
      > here is what has been added into my httpd.conf :
      > LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
      > ...
      >
      > what's wrong ?
      > thank you for help !
      > Vince[/color]


      look for:
      LoadModule php4_module modules/libphp4.so

      #
      # Cause the PHP interpreter handle files with a .php extension.
      #
      <Files *.php>
      SetOutputFilter PHP
      SetInputFilter PHP
      LimitRequestBod y 524288
      </Files>

      --
      Mike Bradley
      http://gzen.myhq.info -- free online php tools


      Comment

      Working...