ฉันจะดำเนินการต่อไปนี้ในคำสั่ง shell_exec ของ PHP ได้อย่างไร
csvsql --db postgresql://postgres:[email protected]/mydb --no-constraints --insert --table geocoding_9D91EEDE-0BA5-4622-B4DC-DAE62FD3295F_1 "/tmp/9D91EEDE-0BA5-4622-B4DC-DAE62FD3295F/1/Test.csv"
การดำเนินการโดยตรงจากเทอร์มินัลจะทำงานได้ 100% แต่เมื่อดำเนินการจาก shell_exec หรือ exec ของ php ก็ไม่มีอะไรเกิดขึ้น