Checking exec() runs successfully or not

前端 未结 4 531
小鲜肉
小鲜肉 2020-12-07 20:13

I have been trying to let know know if the exec() command in php executes successfully or not so i can echo certain messages accordingly. I tried the following

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-07 20:53

    According to PHP's exec quickref, you can pass pointers in to get the output and status of the command.

    
    

    If you want to enumerate the possible errors, you can find the codes over at hiteksoftware

提交回复
热议问题