search

Home  >  Q&A  >  body text

tp5.0|php8.0 Write scheduled tasks on the window system and report errors when executing

I am learning PHP recently. The PHP version is 8.0. I use the TP5 framework. My computer is a window system. I want to learn how to write scheduled tasks, but I find that an error occurs during execution. The error is as follows. Required parameter $length follows optional parameter $start, is it because of the PHP version? Please tell me, if I don’t change the version of php, how can I modify it to make it run?

1111.png

2222.png

3333.png

暗夜蝶梦暗夜蝶梦1300 days ago1175

reply all(1)I'll reply

  • 猪老湿

    猪老湿2021-08-04 08:45:10

    According to the error message, the parameters are incorrect. Please read the official manual or check the tp source code to see the parameter description

    reply
    0
  • Cancelreply