Txt convert to PHP

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Mon Nov 12, 2012 2:31 pm

It sounds like you've set a file association for the .php extension to notepad. That shouldn't stop you from being able to navigate to the file in your browser by going to localhost/whatever/filename.php but if you are wanting to be able to just double click to open the file in your browser, you can just right click on a php file, choose open with, then 'choose program' and then select your browser, and make sure the checkbox at the bottom to "always open with selected program" is checked. That said, you are not going to see what you expect if you open it in your browser without navigating to it. if you want the php to actually be procssed, you need to navigate to it as a page through the webserver, instead of as a file on your drive. Otherwise the php is not pre-processed and your browser will render it poorly at best.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests