If I understand you correctly the answer is that you can't using plain PHP. There's no low level memory addressing functions. You could write an extension in C or something that could query the address of a handle, but I think handles are just strings that act a bit like pointers anyway, so you'd need to lookup the real address in PHP's address table. It'd be very tricky.
Why do you need to do this anyway? The only thing I can think of would be that you're trying to access the memory area using some sort of external application. I wouldn't go there if I were you. It's asking for trouble.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
OK...I'm trying to print a report with TCPDF, I need to show an image but within save it. Something like this:
<?php
$image = imagecreate(300,60);
...
ImagePNG($image);
//In this point i need to get the handler of that image in order to pass it to $pdf->GDImage($image, 50, 25, 40);
ImageDestroy($image);
?>
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]