PHP project does not run properly under Ci-windows

Source: Internet
Author: User
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

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.