cant execute shell i uploaded with cURL


i uploaded a php shell to a site, and for bypass file upload restriction i used .php.jpg extention. when i open my shell with the web browser it dont execute any things and when open it with cURL command it returns my php web shell code! where is the problem?