Hi All,
I've just started playing with PHP so this may be a stupid question, but here goes.
I want to run a WinCGI that creates a jpeg file and store the resulting image in a variable. To test it I just output the image to the browser. However, the code breaks on the imagecreatefromjpeg function.
<?php
$CGIimg = imagecreatefromjpeg("http://localhost/Code/MyCGI.exe?var1=1&var2=1");
print('<html><body>');
print('<img src="'.$CGIimg.'" ');
print('width="380" height="280" alt="" border="0">');
print('</body></html>');
?>
Can anyone with more experience than me explain what I need to do to get this function to work correctly.
I am running php 4.3.4 for Windows
thanks