Problems grabbing images

Discussion in 'PHP' started by sarahk, Feb 17, 2007.

  1. #1
    I'm setting up a site which will have ads being served from one server and the main site on another server.

    When I send emails using phpMailer I want to embed the images from the adserver.

    My host has just upgraded to PHP5 and thankfully have left safe_mode off (phew).

    Now, I can get my image (which is generated) example and I can create the file to put it in, but I don't seem to be able to put anything in it.

    I've used curl, fopen, file_get_contents and imagecreatefromgif. In each case I just end up with an empty file.

    Is this a problem with the image or with my server? Any ideas?
     
    sarahk, Feb 17, 2007 IP