Kohana — Command Line

后端 未结 6 1723
情话喂你
情话喂你 2021-02-14 02:54

I\'m trying to \"faux-fork\" a process (an email being sent via SMTP) in my web application, and the application is built on Kohana.

    $command = \'test/emai         


        
6条回答
  •  温柔的废话
    2021-02-14 03:34

    I had a similar issue

    Did you or anyone add the SERVER_NAME to the index.php file?

    If so either remove the code outside the index.php (and or bootstrap) OR you can wrap it it in a

    if (PHP_SAPI === 'cli') 
    { 
       // ... 
    }  else {
     //....
    }
    

提交回复
热议问题