#ZegnatWhen you pass a thing to a function that wants a resource (true === is_resource($thing)), the function has no idea what you passed to it. Is it a file it can write to? (That’s what most will want!) Or is it a MySQL server connection that it can’t do anything with.