HI I am using PHP to execute python script:
pdf.py
import pdfkit pdfkit.from_url('https://www.google.co.in/','google.pdf');
data.php
ini_set('display_errors', 1); error_reporting(E_ALL ^ E_DEPRECATED);
exec("python pdf.py");
I tried executing ython file using php with above data, But script not run.
Maybe try exec("python pdf.py", $response, $error_code);
and see if anything useful is returned in $response
or $error_code
?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.