简体   繁体   中英

Accessing PHP output buffer contents using python

Is it Possible to access or retrieve the data from PHP output buffer using python, In my case i have an png image in php variable,

if i pass the php variable to image.open($image) will it work?

No.

To exchange data between PHP and Python (or any other two languages), use a file, a socket or shared memory (or stdin/stdout through pipes).

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM