PHPied has posted a quick reminder for reference when working with resources and references.
When copying one resource to another, you're actually creating a reference to the original resource, this is not an actual copy.
He gives example code using some of the GD functions to create an image resource, create a copy, imagedestroy the original, and try to print out the copy - the result is a resource type of "Unknown".




