0

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 .

1 Answer 1

0

Maybe try exec("python pdf.py", $response, $error_code); and see if anything useful is returned in $response or $error_code?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.