Cant get php exec to work

前端 未结 3 1530
孤城傲影
孤城傲影 2021-01-17 03:15

I\'ve been fighting with this for a few hours now, and I can\'t seem to work it out. tried exec(), shell_exec(), and system(). Nothing works. I have this:

ex         


        
3条回答
  •  迷失自我
    2021-01-17 04:11

    > The last line from the result of the command. If you need to execute 
    > a command and have all the data from the command passed directly back
    > without any interference, use the passthru() function. To get the output
    > of the executed command, be sure to set and use the output parameter.
    

    I am not looking for output, and the last two arguments of exec() are optional. I my case what I really need is to be able to open a folder on the desktop. This exact syntax worked very well in MAMP_PRO_1.9.6, but no longer works in MAMP_PRO_2.0.5 (it's broken)

    
    

提交回复
热议问题