Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting to create new items in this context menu.

enter image description here

Some file extensions cannot be added. I have tried both the TweakUI method and the manual registry editing method but both seem to yield nothing (no item appears in the menu) for particular file types (.php, in this case).

Ultimately I want to be able to select a .PHP file (could be blank, or a template) from the New menu and have it spawned where the context menu is brought up. The Template section of TweakUI could do this, if it were not for the fact that .php files refuse to work.

Any ideas why I am unable to add a .php item to the 'New' menu?

share|improve this question
up vote 3 down vote accepted

I believe you must associate the .PHP extension first with a program.

share|improve this answer
Previously, assoc.php=php_auto_file. I re-associated it to Notepad++_file, and there was no change. Give or take a few association changes, and it started working - I can now add .php files via the 'New' menu. However, I am unsure at what point this started working - 'assoc .php' now returns '.php=Notepad++_file', for the record. Thanks for your help, Cal. – tkf144 Sep 12 '09 at 8:20
@Thomas, it's possible that the explorer shell doesn't immediately pick up file association changes (or rather, that the New/template system doesn't) which might explain why you didn't see the change as soon as you made it. Anyway, good question, starred for later reference. – JMD Oct 1 '09 at 15:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .