I have tried everything I can think of with passthru and imagecreatefrompng and whatnot. I cant copy the file to a web directory, so that is out. I just have to be able to display the image.
So, my php script calls a program that creates an image based on user input:
$file_name = “/site.com/public/www/prod/data/” . $var1 . “" . $var2 . "” . $var3 . PHP_EOL;
$image_name = $file_name . “_pic.png”;
So the program saves the image, say…
/site.com/public/www/prod/data/12_24_36_pic.png
And yeah, I can totally see the image there. It looks great.
However,
The site’s web root directory is this:
/site.com/public/www/prod/htdocs/
So the image is sitting in a directory above what the browser can see. How can I display that image to people?