본문 바로가기

Computer/Programing

Python 실행값을 PHP로 불러오기

<?php


$checka= escapeshellcmd('/var/www/cronjob/wx.py');

$checkb = shell_exec($checka);
$data=explode("|", $checkb);
echo $data[0]."\r\n";
echo $data[1]."\r\n";
echo $data[2]."\r\n";

?>