Anti-Sql_injection alittle question

Results 1 to 3 of 3
  1. #1
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Anti-Sql_injection alittle question

    Hey Guys, I wanted to ask about adding an anti sqli to my website .. so if I want to add a file (like antisqli.php)
    should I make any coding to the web i'm using or just adding this to pages:
    Code:
    include "antisqli.php";
    or require (instead of include dunnu exactly what's the difference xD)
    but my question is:
    should I only add this or another thing

    --------------------------------
    hope you can understand what did I mean xD .. and hope you can help with alittle thing


  2. #2
    Pee Aitch Pee Dave is offline
    MemberRank
    Mar 2011 Join Date
    The NetherlandsLocation
    722Posts

    Re: Anti-Sql_injection alittle question

    Require that file after session_start();.

    If the file does not exist when using require, it will throw a fatal error.
    If the file does not exist when using include, it will throw a warning.

  3. #3
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: Anti-Sql_injection alittle question

    Quote Originally Posted by SuperWaffle View Post
    Require that file after session_start();.

    If the file does not exist when using require, it will throw a fatal error.
    If the file does not exist when using include, it will throw a warning.
    Oh, okay thank you very much, helped me alot ... admin can close thread or whatever
    TY again ...



Advertisement