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. deleteing second page
    By mojo jojo in forum Linux - Software, Applications & Programming
    Replies: 6
    Last Post: 04-19-2006, 12:00 PM
  2. Set Page Transitions on a Frames Page
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-01-2005, 03:30 AM
  3. web page does not work
    By erastoten in forum Linux - General Topics
    Replies: 1
    Last Post: 11-29-2004, 06:17 AM
  4. Main Page
    By friskydrifter in forum Announcements and Suggestions
    Replies: 1
    Last Post: 01-27-2004, 03:12 PM
  5. Search Page
    By nfallon in forum Announcements and Suggestions
    Replies: 2
    Last Post: 02-20-2002, 06:01 PM

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
  •