dongzhuji1042 2014-08-21 18:17
浏览 238

使用Chrome运行本地PHP文件的问题

I need to use Chrome to run a local PHP file. I believe I've done all that is required to do this (acc. to multiple web sites, inc. php.net), however, all I get is a blank web page. The things I've done to enable this capability are:

  1. Install MS Visual C++ 2010 x64 Redictributable 10.0.40219
  2. Enable IIS on my Windows 7 Home Premium PC by following instructions at http://php.net/manual/en/install.windows.iis7.php, including executing at the cmd line their "Examples" 2, 3, 4, 5, 6, 9, and the one enabling 64 bit operation
  3. download php-5.4.31-nts-Win32-VC9-x86.zip, then follow instruction re: changing the php.ini file at http://php.net/manual/en/install.windows.manual.php (e.g., copy the php.ini-production into php.ini)
  4. Put my php script into the folder C:\Users\Wade\AppData\Local\Google\Chrome\User Data\Default\User Scripts the script is simple:

<?php $row = "1.jpg"; echo $row; ?>

  1. In Chrome, entered the url http:/localhost/<script-file-name.php>

Please help!

  • 写回答

2条回答 默认 最新

  • dongzhi4690 2014-08-21 18:28
    关注

    If you want to run PHP on IIS server then you can go with Microsoft Web Platform Installer.It automatically configures IIS server with PHP for you.

    评论

报告相同问题?