0
Sorry if it got very strange the question , I have a system that when the user upload has no image it puts in the following img directory:
/xxxx/estatico/comuns/sem_imagem/
My idea was to generate an index.php in this directory to generate the image, is this method correct or would it use server resources in vain? I have an average of 2000 accesses per day.
your question was left without context, you have an upload system, to which the if the user does not send the image, it will put without correct image? but in case every upload creates a directory on your server ? and you want to put an index.php file to create a copy of a standard image for that directory ?
– Marcos Brinner
Sorry, buddy, here’s the deal. I have a right upload , in this upload I have some data that the user should insert , in this case not all are required as the image , so every time there is an image the system puts in the img src this static directory . I’d like to know if putting an index.php there is the right way to generate an image to stay in place, you know?
– reigelado
Right now I understood, I will post an answer
– Marcos Brinner
Well in case you do not need to create an image every time the user n send aimage and nor apotar to several directories just check if aimage was sent otherwise apota the image to another fixed directory
– Marcos Brinner
is because this is a default system configuration and there are already many uploads like this would have like me to do so?
– reigelado