Skip to content Skip to sidebar Skip to footer

Dynamic Php Class Generation Based On Url Parameters

I have an image generating class and a number of sub classes inherited from this. Each sub class generates a different image. I would like to pass the class to generate (or some s

Solution 1:

Apparently there is nothing wrong with your passing values into url that way especially if these image names are unique and are not sensitive data. unique so that you dont execute the same class with two different images. but you could just append/prepend a random string to the image value. also as hamza said hope they aren't php classes

Solution 2:

I am going to go with this answer:

"Instantiate a class from a variable in PHP?"

instantiate a class from a variable in PHP?

Post a Comment for "Dynamic Php Class Generation Based On Url Parameters"