c r/comicsu/danteferno3 Feb 2010 Spot the error [C&H] gocomics.com/calvinandhobbes/1987/07/21 17 points12 commentsSaveSavedHideCopy linkHideCopy linkOpen on Reddit
on I am really bad at organizing files. How does /r/php structure their projects? in r/PHPdanteferno31 May 2012 isn't a little bit risky to have your classes and views in the public folder? 12 pointsCopy link
on I am really bad at organizing files. How does /r/php structure their projects? in r/PHPdanteferno31 May 2012 And as a plus...i give my client ftp access only to the public html folder...no way he can get to the core code. 3 pointsCopy link
on What are some genuine criticisms of PHP? in r/PHPdanteferno27 Mar 2012 http://www.youtube.com/watch?v=lMZynsHG8QM 3 pointsCopy link
on PHP newbie here, what steps should I take to guard against SQL injection/other security risks? in r/PHPdanteferno1 Apr 2011 I usually parametrize my inputs (prevent sql injection) with pdo, and sanitize my outputs using htmlentities (prevent XSS). And that covers the basics. 3 pointsCopy link
on Question about arrays in the POST/GET data. in r/PHPdanteferno4 Apr 2012 Well, thats because with PHP you have to use braces on your arrayed form elements name tag: PHP if (isset($_POST)) foreach ($_POST['array'] as $element) echo $element HTML <form method="POST"> <input type="text" name="array[]"/> <input type="text" name="array[]"/> <input type="submit"/> </form> 2 pointsCopy link
isn't a little bit risky to have your classes and views in the public folder?
And as a plus...i give my client ftp access only to the public html folder...no way he can get to the core code.
http://www.youtube.com/watch?v=lMZynsHG8QM
I usually parametrize my inputs (prevent sql injection) with pdo, and sanitize my outputs using htmlentities (prevent XSS). And that covers the basics.
Well, thats because with PHP you have to use braces on your arrayed form elements name tag:
PHP
HTML