Results 1 to 2 of 2

Thread: php page cannot be viewed

  1. #1

    php page cannot be viewed

    Hi Linux gurus,

    I made a big mistake. I installed apache and php for windows and was successful. I can view my php files but not so long....

    When I opened my php file on my windows explorer I was asked to open it using programs listed. I choose mozilla to open it and thats it. My mistake had finally come to pass.

    Instead of opening my php file in my browser using http://localhost/sample.php

    I used programs to open it. Now, whenver i open a php file the codes are being displayed in the browser instead of running it.

    How can I rectify my mistake?

    I already have this entry on my httpd.conf

    AddType application/x-httpd-php .php
    AddType application/x-httpd-php .php3
    AddType application/x-httpd-php .php4
    AddType application/x-httpd-php .shtml
    AddType application/x-httpd-php-source .phps

    DirectoryIndex index.html index.php index.php4 index.htm default.php index.php3 index.html.var index.shtml
    AccessFileName .htaccess

    Enlighten me
    ???

  2. #2
    Senior Member
    Join Date
    May 2001
    Posts
    472

    Re:php page cannot be viewed

    You messed up the file association. You can fix it by editing the registry, or using the file association tab in "view... options" (I think.. been a while since I was in Windows.)

Similar Threads

  1. PHP Tutorial
    By Waka-Gashira in forum Windows - General Topics
    Replies: 8
    Last Post: 01-27-2005, 08:10 AM
  2. Setting Up Pages in Visio
    By The Donald in forum Windows - General Topics
    Replies: 0
    Last Post: 01-05-2005, 06:25 AM
  3. PHP on IIS Server
    By genesis in forum Windows - General Topics
    Replies: 8
    Last Post: 01-03-2005, 11:22 AM
  4. Create and Use a Frames Page in FrontPage 2k
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 02:29 AM
  5. PHP takes ASP as Number 1 SSSL
    By coltrane in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 07-04-2002, 03:47 AM

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
  •