SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Location
    Norway
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .phps, not working

    Hi!

    I'm a bit unsure if this is the correct forum or not, but i'll try.

    I'm running Apache 1.3.24 and php 4.2.1. But i can't get phps files to work. The browser just returns an 404 error.

    And yes, i have added the AddType application/x-httpd-php-source .phps line in my apache config files.

    I tried to turn off zlib.output_compression, and mod_gzip, but with no luck. But i still think this has something to do with it.

    In the apache error logs, theese lines seems to appear everytime i open a .phps file:
    [Fri Jun 28 00:03:37 2002] [error] mod_gzip: EMPTY FILE [/tmp/_17698_99_0.wrk] in sendfile2
    [Fri Jun 28 00:03:37 2002] [error] mod_gzip: Make sure all named directories exist and have the correct permissions.

    -Thanks.
    -xqus
    Your friend in the fight against everyday sanity.

  2. #2
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    as i never use phps, i'm not sure if this is relevant, but
    There are 2 ways you can use the source code highlighting feature, however their ability to work depends on your installation. If you have configured Apache to use PHP as an ISAPI module, then by adding the following line to your configuration file you can use this feature: AddType application/x-httpd-php-source .phps

    If you chose to configure Apache to use PHP as a CGI binary, you will need to use the show_source() function. To do this simply create a PHP script file and add this code: <?php show_source ("original_php_script.php"); ?>. Substitute original_php_script.php with the name of the file you wish to show the source of.
    from http://www.php.net/manual/en/install.apache.php
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  3. #3
    SitePoint Member
    Join Date
    Jun 2002
    Location
    Norway
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, thanks for the reply.
    -xqus
    Your friend in the fight against everyday sanity.

  4. #4
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should have PHP installed as an Apache module:

    LoadModule php4_module c:/apache/php/sapi/php4apache.dll
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature


Bookmarks

Posting Permissions

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