search

Home  >  Q&A  >  body text

Please help me with the require_once() problem in php

In PHP projects on freebsd, the files introduced by require_once() are the previous versions. The new version files will not take effect. Use require() to take effect. The new version files will take effect. Then switch to require_once() or the imported previous version files.

卍*卍*1809 days ago1086

reply all(1)I'll reply

  • 殘留の回憶

    殘留の回憶2019-12-05 19:05:01

    First of all, you need to understand the difference between require_once and require()

    require_onceIf there are multiple require_once with the same path, it will only be executed once

    require is the opposite. You can send the details Let’s refer to your code again

    reply
    0
  • Cancelreply