Menu

Php and Browsers

John Smith
2008-08-12
2012-11-13
  • John Smith

    John Smith - 2008-08-12

    Browsers Don't read PHP so i'm using a server basically i'm accessing files by localhost/Site/P1.php
    any chance i could make Notepad++ open my files like that?

     
    • John Smith

      John Smith - 2008-08-28

      Well ....
      i solved my problem using this simple guide
      http://guides.jlbn.net/setvh/setvh1.html

       
    • John Smith

      John Smith - 2008-08-15

      Anyone?

       
    • Harry

      Harry - 2008-08-15

      If you want Notepad++ to read the outputted PHP from the server, I think you need your browser for that. You can often set the editor for webpages (and its even possible to do so from the installer for Internet Explorer)

       
    • John Smith

      John Smith - 2008-08-15

      I doubt it all i need from notepad++ is that on php pages it launches the browser with a localhost added and half the file address...

       
    • John Smith

      John Smith - 2008-08-21

      Any chance of making something like that?

       
    • Harry

      Harry - 2008-08-21

      Did quite get the question at first.
      If you want it to launch the current file in your browser, use the Run menu, the website has details on how to use it with the filename

       
    • Fr0st Bit3 @ Counter-Strike

      Personally i just keep a folder open on the current project im working on.

      Just need to drag n Drop the file i want to edit.

      (I'm guessing the want the same functionality as internet explorers "View Source", where it opens the actual file the browser is using in notepad. I don't see any way to put in a "url" into notepadd++ and it give you the file as notepad++ - i doubt - knows that the server is actually part of a file system)

      Though i think i get what harry is saying when he says use Run. Windows Run dialog box opens files that are in the windows environment PATH.
      Maybe if you add your website to the PATH environment variable you could call your scripts like Start->Run->Site/P1.php

      Ofcourse you would need to set Notepad ++ as the default program for opening .php files.

      Easy enough,

      Hope this helps.

       
    • John Smith

      John Smith - 2008-08-22

      Thanks but it doesn't really have anything to do with what i asked and it's not working either

      what i asked was this
      to open a php file you type
      http://localhost/myfile.php
      if i launch open the file in the browser from notepad++ it won't use local host
      what i want is notepad++ every time it uses the php api also replace the normal open in browser command by localhost+filename

      or if you know any other way to get rid of localhot or open php files without it