File Type php Missing in Windows File Association Settings


  1. Posts : 14
    Windows 10
       #1

    File Type php Missing in Windows File Association Settings


    I would like to associate the php file format with a text editor utility such as Sublime Text. When I attempt to "always open file type with Sublime Text" via the context menu in Windows Explorer, it does not work. When I open Settings > Default Apps > Choose Default Apps by file type, the php file format appears to be missing from the list - see screenshot. I expected it to be listed below the .php3 file type.

    On a related note, I was also unable to associate the css and html file types with Sublime Text (or any other software) via Windows Explorer. I was able to work around this by using the FileTypesMan utility. However, the FileTypesMan utility is not able to associate php files either. Please advise. TIA.
    Attached Thumbnails Attached Thumbnails File Type php Missing in Windows File Association Settings-php-missing.jpg   File Type php Missing in Windows File Association Settings-php-missing2.jpg  
      My Computer


  2. Posts : 17,838
    Windows 10
       #2

    Try right click/Properties/General Tab/Opens with...Change

    File Type php Missing in Windows File Association Settings-001278.png
      My Computer


  3. Posts : 14
    Windows 10
    Thread Starter
       #3

    I tried that, and it's not working. Please see the screen video and let me know if you have any ideas how to fix it.

      My Computer


  4. Posts : 17,838
    Windows 10
       #4

    Probably something to do with not having a listing for .php files...

    File Type php Missing in Windows File Association Settings-001286.png

    Try this: (I read it somewhere)...

    Paste a bunch of jargon into a new Text file on your desktop, save it as whatever.php, then try the aforementioned again.
      My Computer


  5. Posts : 13,926
    Win10 Pro and Home, Win11 Pro and Home, Win7, Linux Mint
       #5

    This is a sample/portion of what I get with a .php file open in my HTML/Web page editor [Microsoft Expression Web], not of much use:

    mw.loader.implement("jquery.ui.button",function(){(function($,undefined){var lastActive,startXPos,startYPos,clickDragged,baseClasses="ui-button ui-widget ui-state-default ui-corner-all",stateClasses="ui-state-hover ui-state-active ",typeClasses="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",formResetHandler=function(){var buttons=$(this).find(":ui-button");setTimeout(function(){buttons.button("refresh");},1);},radioGroup=function(radio){var name=radio.name,form=radio.form,radios=$([]);if(name){if(form){radios=$(form).find("[name='"+name+"']");}else{radios=$("[name='"+name+"']",radio.ownerDocument).filter(function(){return!this.form;});}}return radios;};$.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secon dary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.butto n",formResetHandler);if(typeof this.options.disabled !=="boolean"){this.options.disabled=!!this.element.propAttr("disabled");}else{this.element.propAttr( "disabled",this.options.disabled);}this._determineButtonType();this.hasTitle=!!this.buttonElement.at tr("title");var self=this,options=this.options,toggleButton=this.type==="checkbox"||this.type==="radio",hoverClass=" ui-state-hover"+(!toggleButton?" ui-state-active":""),focusClass="ui-state-focus";if(options.label===null){options.label=this.buttonElement.html();}this.buttonElement.addClass (baseClasses).attr("role","button").bind("mouseenter.button",function(){if(options.disabled){return; }$(this).addClass("ui-state-hover");if(this===lastActive){$(this).addClass("ui-state-active");}}).bind("mouseleave.button",function(){if(options.disabled){return;}$(this).removeClass(ho verClass);}).bind("click.button",function(event){if(options.disabled){event.preventDefault();event.s topImmediatePropagation();}});this.element.bind("focus.button",function(){self.buttonElement.addClas s(focusClass);}).bind( "blur.button",function(){self.buttonElement.removeClass(focusClass);});if(toggleButton){this.element .bind("change.button",function(){if(clickDragged)
      My Computers


  6. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #6

    You can use ASSOC and FTYPE Command Prompt commands to setup the association you want. For instance, I just set up .php to be handled by my X2 editor as follows:

    Code:
    C:\Users\ztruk>assoc .php=PHPScript  
    .php=PHPScript                                 
    
    C:\Users\ztruk>ftype PHPScript=D:\X2\x2.bat %1 %*
    PHPScript=D:\X2\x2.bat %1 %*
    So now any time I double click on a .php it open in X2.

    Note: PHPScript can be anything you want to call it.
      My Computers


  7. Posts : 14
    Windows 10
    Thread Starter
       #7

    @ztrucker that solved it. Thanks so much for your help!
      My Computer


  8. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #8

    Great, glad I could help.
      My Computers


 

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

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




Windows 10 Forums