.php extension just won't appear in the 'New' context menu

Page 2 of 2 FirstFirst 12

  1. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #11

    Hello Denno, and welcome to Seven Forums.

    See if this tutorial below may be able to help. Afterwards, set the PHP file extension to be opened with the Dreamweaver.exe file by default in Default Programs. Be sure to log off and on to apply the new context menu item.

    New Context Menu - Add PHP Extension

    Hope this helps,
    Shawn
      My Computer


  2. Posts : 8
    Windows 7 Home Premium 64bit
    Thread Starter
       #12

    Thanks for the reply Brink.. I actually don't want php files to open in dreamweaver, I want them to open in notepadd++, as they do now.. Could I just change the default program back to Notepad after, or would it rely on Dreamweaver being the default?
      My Computer


  3. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #13

    You could set the default program to be anything you like for .php files to open with. I was just using Dreamweaver as an example from what you had in your first post. That's all. :)

    Does the PHP option show up in the "New" context menu now?
      My Computer


  4. Posts : 10,455
    Microsoft Windows 7 Home Premium 64-bit Service Pack 1
       #14

    FileTypesMan can be used to edit right click entries. FileTypesMan - Alternative to 'File Types' manager of Windows
      My Computer


  5. Posts : 8
    Windows 7 Home Premium 64bit
    Thread Starter
       #15

    Brink, I could kiss you!! It's working :).
    I went through the tutorial, but it wasn't showing in the context menu when I completed that. So I went into default programs as you said, the default was already Notepad++, but I changed it to Dreamweaver, waited for it to apply, then the option was there!! I have now changed the default program back to Notepad++ and it's still there.

    Thank you very much for your help everyone!

    ADDITION:
    Just in case anyone happens to come across this thread, I would like to also add that I have just created a template file called template.php, placed that in {your_user_name}\AppData\Roaming\Microsoft\Templates, and added a new string value to the ShellNew key in the registry for the .php file-type. The new string value is called FileName, and it's data value is the full path to the template file (C:\Users\{your_user_name}\AppData\Roaming\Microsoft\Templates\template.php).

    The neat thing about this is that inside the .php file, I've added the opening php tag, a few new lines, and then the closing php tag. This will now appear in every single new PHP file that I create, anywhere on my computer! :). Who could have though the New context menu could be so cool! lol.
    Last edited by Brink; 15 Dec 2011 at 19:15. Reason: merged
      My Computer


  6. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #16

    You're most welcome Denno. I'm glad that we were able to help. :)

    Just to help clarify why the context menu may not have displayed at first, did you log off and log on after going though that tutorial to apply the context menu before going into default programs?
      My Computer


  7. Posts : 8
    Windows 7 Home Premium 64bit
    Thread Starter
       #17

    I did not log off and log on Brink, so that could very well be why the change didn't occur until the Default Program was changed :).

    Thanks
      My Computer


  8. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #18

    Ah, ok. That could be then. Thank you for posting back with this. :)
      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 21:57.
Find Us