Mike Keen

I'm a Web architect/strategist in Atlanta, GA.

Enterprise PHP

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