skip to Main Content

SVG from PHP script is not working in img src

I'm trying to open SVG file first in PHP and then return this data: $file = dirname(__FILE__) . $_GET["file"] . ".svg"; if (!file_exists($file)) { $file = dirname(__FILE__) . $_GET["file"] . ".png"; if (!file_exists($file)) { throw new NotFoundHttpException(); } else header('Content-Type:…

VIEW QUESTION
Back To Top
Search