search

Home  >  Q&A  >  body text

How to modify and run the PHP project for release

I have never been exposed to PHP before. I bought a website system from someone else. We provided the server and they deployed it. He said that the source code was also uploaded to the server. I have been using it for a while and now I want to modify some functions. I downloaded the source code and I don’t know how to run it successfully locally. . . I installed nginx and php environment locally and imported the project into phpstorm. How do I run the project next? 9JQMJ@(D{0QQ1]NI5WHC7UT.png

asenasen1434 days ago1150

reply all(4)I'll reply

  • 星落

    星落2020-12-26 23:01:14

    I think you should be able to access this project by downloading the integration tool, creating a local PHP operating environment, configuring the connection database, creating a domain name, and accessing the project and directory.

    But you have to find this configuration file

    reply
    0
  • asen

    OK, thanks. Now it is running, but there are many places where the error Undefined constant "systemxz" is reported. For example, many codes are written directly in html pages. Is it because the previous lower version of PHP did not have such strict inspection? My locally installed php8 reports an error when running. It must be changed to u['systemxz'], but because there are too many errors on such a page, is there any way to configure php to automatically parse u[systemxz] into u['systemxz '], so as not to manually change them one by one, because there are too many

    asen · 2020-12-30 16:00:57
    asen

    This is written directly in the code

    asen · 2020-12-30 16:02:11
  • 天蓬老师

    天蓬老师2020-12-26 19:43:22

    Use some integrated tools to create a local PHP running environment, copy the PHP source code to the specified web directory, and correctly configure the database connection parameters according to your source code requirements

    reply
    0
  • Cancelreply