PHP cURL how to get page image from remote server without errrors
Hi All
I can get a dynamic image to display in my webpage
<td><img src="<? echo image.php" ;?>"
where image.php is some ones example that outputs some characters to screen.
All works fine
But the site is ssl,and It wont load the "foreign" object for security reasons.
I was wondering I cURL could trick the browser into thinking that the image source is still on the same server.
Both sites are ssl!
like
<?php
$remote = 'https://example.com/image.php';
curl_setopt($ch, CURL_SSL_VERIFYPEER,0); // for testing
curl_setopt($ch, CURL_SSL_VERIFYHOST,0); // for testing
curl_exec($ch);
curl_close($ch);
doesn't return anything.
Any ideas would be appreeciated
Last edited by devwink; 04-11-2010 at 07:23 AM.
|