SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Pezenas, South of France
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have installed Apache, PHP and mySQL independently on a Win98 box.

    When Apache starts I get

    Apache/1.3.19 (win32) PHP/4.0.4.pl1 running

    Go to the browser and give http://localhost:4439 and I get the default welcome page.

    I changed the welcome page to link to test.php. The only contents worth speaking of in test.php is

    Hello, world! HTML
    <? echo ("this is the simplest PHP, an SGML processing instruction\n"); ?>
    <!--#include"nonexistent.htm" -->

    The first line displays - surprise!
    The second line is intended to detect if PHP is awake.
    The third line is attempting to detect if SSI parser runs at the same time as PHP.

    Neither the second or third line show up.

    Apache has the shtml option set but there is no response if the extension is modified from .pgp to .shtml

    PHP has the path set to include the directory where these files are found. The slashes are \

    Can you explain where I am going wrong?

    thank you in advance for all help
    Tony

  2. #2
    SitePoint Columnist Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    View the HTML source of the page and see if either of those other two lines are visible then. You can't combine SSI and PHP code in the same file as far as I'm aware.

  3. #3
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Pezenas, South of France
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The three lines displayed are the only content in the HTML code other than the minimum requirements for it to be a valid HTML page.

    The HTML line is to show me that I have got my page.
    The others are to detect if anything else happens.

    If the page is browsed when it has an .html extension all you see is the Hello world line - which is what you see in all other circumstances. So I deduce that I have got some pointers pointing to the wrong place - but I cannot see them in spite of some 6 hours gazing at it and experimenting.

    But thanks for the suggestion
    Tony


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
  •