ProblemHelpPlease Posted April 27, 2009 Share Posted April 27, 2009 Hi I bought a new PC with Vista 64 bit as the OS. It blatantly refuses to recognise php files for what they are and asks for a program to open them with everytime. If you select notepad, then close the php file and reopen it, it asks again. If you right click a php file and look at the properties, the program associated with the php file is 'windows shell common', not notepad. I can select change and open the file using notepad, but the always use this program button is ticked and greyed out so I can't make a permanent change. If I go to 'associate a file type or protocol with a specific program' through the start menu or control panel, php is not in the list and there is no option to add it. Help!! It's doing my head in! I need to work on my sites, but cannot access php files without downloading them to the desktop, and manually assigning them to open with notepad every time I want a file! Any ideas what the problem is? Quote Link to comment Share on other sites More sharing options...
Mchl Posted April 27, 2009 Share Posted April 27, 2009 Make sure you're having privileges to change file associations... not sure where you check that though And don't use Notepad. Download yourself an IDE like NetBeans for example. With luck it will reassign all php files to itself for you. Quote Link to comment Share on other sites More sharing options...
ProblemHelpPlease Posted April 27, 2009 Author Share Posted April 27, 2009 Make sure you're having privileges to change file associations... not sure where you check that though And don't use Notepad. Download yourself an IDE like NetBeans for example. With luck it will reassign all php files to itself for you. Only have one account and its set as administrator, so I should be able to change everything. Nice idea with the netbeans, but unfortunately that didn't work either! Aaaaaaaaaargh! Quote Link to comment Share on other sites More sharing options...
vicodin Posted May 5, 2009 Share Posted May 5, 2009 Do you have IIS installed on there? If not then you need to install that. If you have it installed then google how to install php in IIS. If you have that done then you cant just double click a php file and have it open in a browser and run. It needs to be parsed through the server first. So what you need to do is go into iis find your php file which should be in your web root and right click it and hit browse. When you hit browse it opens it in a web browser and sends i through the server. If you dont want to go through all of that then you need to get an IDE like Zend and use that to run your php files. Quote Link to comment Share on other sites More sharing options...
ProblemHelpPlease Posted May 9, 2009 Author Share Posted May 9, 2009 All sorted! For some reason, php was not installed or recognised as a file extension in windows! After a quick wade into the registry and the creation of the appropriate HKEY files by hand, it now works fine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.