Re: [PHP] mail + pdf + memory question

2002-09-29 Thread Rasmus Lerdorf
$mail->getFile() obviously reads in a file from the disk. You already have your attachment in memory, so don't call that function. Just do $attachment = $data; -Rasmus On Sun, 29 Sep 2002, Jonas Geiregat wrote: > this is my code what I want to do is > generate a pdf file(not save it on hd of

[PHP] mail + pdf + memory question

2002-09-29 Thread Jonas Geiregat
this is my code what I want to do is generate a pdf file(not save it on hd of server but in memory) then send it as attachement to someone $pdf = pdf_new(); pdf_open_file($pdf,""); pdf_begin_page($pdf, 595, 842); pdf