April 26, 2008

Enterprise PHP

  • Mike: you actually shouldn't use die() there.
  • Michael: it kills the app.
  • Mike: yeah but look at the script. it would have ended anyways without die().
  • Michael: haha, i wanted to be sure.
  • Mike: haha... you should put a die() at the end of the script.
  • Mike: just wrap the whole thing in
  • if(phpinfo()){
  • ...
  • } else {
  • die("This script requires PHP");
  • }
  • Michael: if(function_exists("phpinfo")){
  • eval(base64_decode("......."));
  • } else {
  • die("This script requires PHP");
  • }
  • Mike: haha brilliant