php.exe 文件路径
你可以在editplus里配置一下就可以了

解决方案 »

  1.   

    要解析php文件肯定要装PHP了,我晕。
      

  2.   

    zend or phped 都内置了php+Apache 不过"高手都青睐轻量级编辑器",推荐你按神仙的办法.
      

  3.   

    真对不起,可能是小弟没有说清楚,小弟说是要在浏览器里直接运行.php,而不是要在编缉器里,楼上各位大虾的说的都是在网页浏览器里可以直接浏览的吗,小弟现在用的PHP Designer2005也有此功能(指明PHP.exe的路径,然后在编缉器里运行)。就是想要在浏览器里直接运行PHP,而不是在编缉器。就像在本机装了三合一之后,直接在网页里输入
    http://127.0.0.1/a.php就可以运行脚本了。再次感谢各位大虾的回复,你们的回复是小弟前进的动力!!!顶!!!
      

  4.   

    没有web服务能直接运行http吗?可以的话就去掉apache没有数据库服务能直接运行数据库吗?可以的话就去掉mysql不装php也能解析php吗?可以的话就去掉php没有软件的电脑也有用吗?请告诉我那里有得卖……
      

  5.   

    Javascript 客户端脚本
    PHP 服务器端脚本
      

  6.   

    可以呀
    注册php4activescript.dll或php5activescript.dll,就可以象Javascript那样可以在只打开本机浏览器的情况下直接就可以运行
      

  7.   

    晕了,javascript是服务器端和客户端通吃的脚本,难道PHP是吗? PHP只能用于服务器啊所以肯定需要WEB服务器,当然你可以选择用APACHE或IIS或PWS!下面的注册表方法可以解决你的问题   Run Regedit.
       Navigate to:
        HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/W3Svc/Parameters/ScriptMap
       On the edit menu select: New->String Value.
       Type in the extension you wish to use for your php scripts. ex: .php
       Double click on the new string value and enter the path to
       php.exe in the value data field.
       ex: c:\php\php.exe
       Repeat these steps for each extension you wish to associate
       with PHP scripts.   The following steps do not affect the web server installation and only
       apply if you want your php scripts to be executed when they are run
       from the command line (ex. run c:\myscripts\test.php) or by double
       clicking on them in a directory viewer window. You may wish to skip
       this step as you might prefer the php files to load into a text
       editor when you double click on them.   Now navigate to: HKEY_CLASSES_ROOT
       On the edit menu select: New->Key
       Name the key to the extension you setup in the previous
       section. ex: .php
       Highlight the new key and in the right side pane, double click
       the "default value" and enter "phpfile".
       Repeat the last step for each extension you set up in the
       previous section.
       Now create another New->Key under
       HKEY_CLASSES_ROOT and name it phpfile
       Highlight the new key 'phpfile' and in the
       right side pane, double click the "default value" and enter "PHP Script".
       Right click on the 'phpfile' key and select  New->Key, name it "Shell".
       Right click on the 'Shell' key and select New->Key, name it "open".
       Right click on the 'open' key and select New->Key, name it "command".
       Highlight the new key 'command' and in the right side pane, double click the "default value" and enter
       the path to php.exe ex: "c:\php\php.exe -q %1"(don't forget the '%1').
       Exit Regedit.
       If using PWS on Windows, reboot to reload the registry.
       PWS and IIS 3 users now have a fully operational system. IIS 3 users can use a nifty tool available at
       http://www.genusa.com/iis/iiscfg.html from Steven Genusa to configure their script maps.
      

  8.   

    按唠叨老大的办法,不就可以做winform程序了吗?
      

  9.   

    winform的东西做过了...呵呵..还不是很强大..
      

  10.   

    php4activescript.dll或php5activescript.dll
    但是,为什么不想用服务器呢
      

  11.   

    看各位高人发帖真是获益非浅,不过小弟对上面的谈话有两点不懂。
    1,winform是什么啊?
    2,php4activescript.dll或php5activescript.dll怎么注册啊?
      

  12.   

    非常感谢楼上各位大虾的回复,‘xuzuning(唠叨) ’大虾可否再说得明白一些啊,谢谢!!!