Recently, to buy their own SSD SSD, so can't wait to the original Windows system to remove the reload, but the use of SSD reinstall the system, PHP environment is also set up, so the original written half of the PHP project back to the Apache directory, found that it does not work properly, Did not know how to get a long time, I hope you give some advice, thank you. (Apache, PHP, MySQL installation is not a problem, the original saved SQL backup file is the normal import, is not the issue of permissions or something else?) )
Append : Actually, not have the error what, is I originally used the CI frame, now in the browser input localhost/demo/index.php but can not run, nothing shows. When I create a new test file in this directory alone ,然后在浏览器上输入localhost/demo/test.php却可以正常显示"test",这是怎么回事呢。不知道我描述的是否清楚。
Reply content:
Recently, to buy their own SSD SSD, so can't wait to the original Windows system to remove the reload, but the use of SSD reinstall the system, PHP environment is also set up, so the original written half of the PHP project back to the Apache directory, found that it does not work properly, Did not know how to get a long time, I hope you give some advice, thank you. (Apache, PHP, MySQL installation is not a problem, the original saved SQL backup file is the normal import, is not the issue of permissions or something else?) )
Append : In fact, there is nothing wrong, that is, I used the CI framework, now in the browser input localhost/demo/index.php but can not run, nothing to display. When I create a new test file in this directory alone !--? php echo ' test '; , and then enter localhost/demo/test.php on the browser to display "test" normally , what's going on here. I don't know if I have a clear description.
See what the wrong game is, at least one of them
You first in the php.ini inside the configuration item error_reporting = E_all (hand hit do not know whether misspelled), in short, the error message is called out, and then go to visit the localhost/demo/index.php , you'll know what's wrong.
Add the following sentence at the beginning of the file, and you may see an error message:
error_reporting (E_all); Ini_set ("Display_errors", 1);
Do I think your previous project used a tag like short tags !--??--> ? PHP has a total of four kinds of tags, this word to set their own to open the short mark.
suspect that you have updated the PHP version, different PHP version of short tags, the default is not the same, it is recommended to check.
I have encountered a similar situation under Linux, refer to http://stackoverflow.com/questions/2476072/tags-not-working-in-php-5-3-1