Right Click -> New

Page 2 of 2 FirstFirst 12

  1. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #11

    Do you have a default application for php files?
      My Computer


  2. Posts : 54
    Windows 7 Ultimate / Ubuntu 10.04
    Thread Starter
       #12

    Yeah, Notepad ++.
      My Computer


  3. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #13

    I think the problem is that .php isn't "known" to windows, so it won't display a php file in the context menu. There must be another registry key somewhere that is required to "teach" windows about php, but I haven't found it yet. Think about it - there has to be another key that says "PHP Document", otherwise how would Windows be able to add it to a context menu?

    Got it! It took a bit of figuring, but here's what you need to do:

    1. Right click on HKEY_CLASSES_ROOT and select New->Key. Call it php3file.
    2. In your newly created key, double click on (Default) and enter PHP File.
    3. Right click and select New-> Expandable String Value. Enter @="PHP File"
    4. Go to the .php3 key.
    5. Double click on (Default) and enter php3file.

    You'll also have to create the ShellNew key and the NullFile string value as outlined in the other tutorial. Make the changes, then log off and log on. You should now have a PHP context menu entry.

    This is for the php3 key - you can make a php key and do the same sort of thing.
    Attached Thumbnails Attached Thumbnails Right Click -> New-tut1.jpg   Right Click -> New-tut2.jpg   Right Click -> New-tut3.jpg  
    Last edited by Brink; 29 Oct 2009 at 22:20. Reason: merged posts
      My Computer


  4. Posts : 54
    Windows 7 Ultimate / Ubuntu 10.04
    Thread Starter
       #14

    Wow, thanks alot! +Rep
      My Computer


  5. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #15

    Let me know if it worked for you.
      My Computer


  6. Posts : 54
    Windows 7 Ultimate / Ubuntu 10.04
    Thread Starter
       #16

    Yeah it did, for .php3 and .php.

    Oh btw, hope you don't Mind I was going to add this as a tutorial, giving you the founding credits.
      My Computer


  7. Posts : 2,913
    Windows 7 Ultimate x64 SP1
       #17

    I don't mind. All I did was search the registry for some phrases and compare existing keys until I figured out what needed to be done. I think it's great that you're doing a tutorial - it will hopefully help others.

    I think I'll drop Brink a message and see if he'll add this to his tutorial as well.
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:19.
Find Us