gzipp gelen json farklılık

0 Cevap php


I have a follow implementation problem.
I am working with some api and I must upload image file and get result in gzipped format or a JSON error message. How can I differ json and gzipped files with php (I think they are resource type). I have one idea:
call json function to result and if error occured call php die function .
But I don't think it's a best solution.

Bulunuyor Teşekkürler

0 Cevap