engel


Member since 11/28/2007

Location: Phoenix, AZ, USA

Website: http://engel.uk.to

4 snippets

16 profile views

0 Comment(s) Posted

View their favorites

Profile

All time reputation: 83

Achievement

first submission:submitting first snipplet popular snippet:having a snipplet with 20 favorites

engel's Recent Snippets



« Prev 1 Next »
  1. FAV

    strstr() and stristr() with Arrays

    Searches an array $haystack for $needle. Returns the value of the element which contains the first result. Use strstr_array() for case-sensitive searches and stristr_array() for case-insensitive searches.
    PHP saved by 1 person 19 views posted 12 years ago engel
  2. FAV

    Append Line to a File

    Running this command will append a line with given values to a file you specify. Replace words between < and > with the values you desire.
    Bash saved by 9 people 9 views posted 12 years ago engel
  3. FAV

    Function Template

    Add this template before functions in a library, in order to give a good description of what it is and what it does. Replace all in < and > with your values.
    PHP saved by 8 people 3 views posted 12 years ago engel
  4. FAV

    Prevent SQL Injection

    Pass a user-inputted variable to this function in order to prevent SQL injection. Example: mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')"); Instead of: mysql_query("INSERT INTO table VALUES('" . $_POST["var...
    PHP saved by 136 people 112 views posted 12 years ago engel
« Prev 1 Next »