This file contains hidden or 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 | |
function print_r2($val){ | |
echo '<pre>'; | |
print_r($val); | |
echo '</pre>'; | |
} | |
?> |
This file contains hidden or 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 | |
function print_r2($val){ | |
echo '<pre>'; | |
print_r($val); | |
echo '</pre>'; | |
} | |
?> |
This file contains hidden or 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
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains hidden or 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
//* | |
* http://stackoverflow.com/questions/1281140/run-process-with-realtime-output-in-php | |
* | |
// | |
$cmd = "ping 127.0.0.1"; | |
$descriptorspec = array( | |
0 => array("pipe", "r"), // stdin is a pipe that the child will read from | |
1 => array("pipe", "w"), // stdout is a pipe that the child will write to | |
2 => array("pipe", "w") // stderr is a pipe that the child will write to |
This file contains hidden or 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 | |
/** | |
* @Rami jamleh - http://php.net/manual/en/pdostatement.execute.php#111823 | |
* @Clair_Shaw(Revision) - http://php.net/manual/en/pdostatement.execute.php#116901 | |
* simplified $placeholder form | |
**/ | |
$data = ['a'=>'foo','b'=>'bar']; | |
$keys = array_keys($data); | |
$fields = '`'.implode('`, `',$keys).'`'; | |
//$placeholder = substr(str_repeat('?,',count($keys),0,-1)); |
This file contains hidden or 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
test |
NewerOlder