This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
class EmailValue | |
{ | |
protected $value; | |
public function __construct($emailAddress) | |
{ | |
//sanitize for DB (NULL bytes, HTML and PHP tags stripped) | |
$emailAddress = strip_tags($emailAddress); | |
//Supposedly does more than strip tags | |
$emailAddress = xss_clean($emailAddress); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
try | |
{ | |
$user="BOB"; | |
$id="2"; | |
$db=new PDO("ReplceW/ConnectionString"); | |
$stmt=$db->prepare("UPDATE `users` SET user=:user WHERE ID =:ID"); | |
$stmt->bindParam(":user",$user); | |
$stmt->bindParam(":id",$id); | |
$stmt->execute(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====ZF2.3.3 PHPLoc==== | |
\htdocs\vendor\zendframework>php phploc.phar --log-csv log.csv --progress . | |
phploc 2.0.6 by Sebastian Bergmann. | |
Directories 417 | |
Files 2389 | |
Size | |
Lines of Code (LOC) 304378 | |
Comment Lines of Code (CLOC) 111994 (36.79%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Directories 352 | |
Files 1712 | |
Size | |
Lines of Code (LOC) 337972 | |
Comment Lines of Code (CLOC) 152185 (45.03%) | |
Non-Comment Lines of Code (NCLOC) 185787 (54.97%) | |
Logical Lines of Code (LLOC) 61708 (18.26%) | |
Classes 59208 (95.95%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\vendor\symfony\symfony\src\Symfony\Component>php phploc.phar --log-csv log.csv --progress . | |
phploc 2.0.6 by Sebastian Bergmann. | |
Directories 449 | |
Files 2417 | |
Size | |
Lines of Code (LOC) 283341 | |
Comment Lines of Code (CLOC) 66130 (23.34%) | |
Non-Comment Lines of Code (NCLOC) 217211 (76.66%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\vendor\symfony\symfony\src\Symfony\Component>php phploc.phar --log-csv log.csv --progress . | |
phploc 2.0.6 by Sebastian Bergmann. | |
Directories 449 | |
Files 2417 | |
Size | |
Lines of Code (LOC) 283341 | |
Comment Lines of Code (CLOC) 66130 (23.34%) | |
Non-Comment Lines of Code (NCLOC) 217211 (76.66%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Directories 352 | |
Files 1712 | |
Size | |
Lines of Code (LOC) 337972 | |
Comment Lines of Code (CLOC) 152185 (45.03%) | |
Non-Comment Lines of Code (NCLOC) 185787 (54.97%) | |
Logical Lines of Code (LLOC) 61708 (18.26%) | |
Classes 59208 (95.95%) | |
Average Class Length 36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====ZF2.3.3 PHPLoc==== | |
\htdocs\vendor\zendframework>php phploc.phar --log-csv log.csv --progress . | |
phploc 2.0.6 by Sebastian Bergmann. | |
Directories 417 | |
Files 2389 | |
Size | |
Lines of Code (LOC) 304378 | |
Comment Lines of Code (CLOC) 111994 (36.79%) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Call this script in pase using: | |
// Call QP2TERM | |
// /usr/local/zendsvr/bin/php-cli /www/zendsvr/htdocs/test.php | |
// This script will use the current user thats logged in and the default database. | |
// Note: We can't use $_SERVER['APP_ENV'] because PHP-CLI doesn't get that value. | |
// That value is set by Apache on web requests | |
$db2Connection = db2_connect( '', '' , '',array()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Model | |
{ | |
protected $_dbh = null; | |
protected $_table = 'MYTABLE'; | |
public function __construct() | |
{ |
OlderNewer