0
I have a problem when creating an avatar for the user, in development environment everything goes right but in production it triggers the following error message: Error: file_exists(): open_basedir Restriction in Effect.
but upload occurs normally.
that is the code:
mkdir( $target_dir.$nome_pasta);
chmod( $target_dir.$nome_pasta, 0755);
copy("${target_dir}/avatar-user-placeholder.jpg", "${target_dir}/${nome_pasta}");