image - PHP failing to check conditions -


im working on script shows minecraft faces based on url, got problem, everytime invalid username inputed, saves skins folder, thing should when when username valid. full script:

sorry, problem has been solved, i'm not going give script away. 

it's quite long know, it's full script. remind, problem script saves invalid usernames too, thing should if username vaild.

try add exit of wrap other code in else{ } statement

 if(!$src){     $src = imagecreatefrompng("http://s3.amazonaws.com/minecraftskins/char.png");     //here's problem, trying display image on screen if not found, reason saves skins folder     imagepng($final);     **exit();**     } 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -