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
/** | |
* Hits the creative commons api, gets an xml response. | |
* | |
* @param string $string | |
* @param string $authors | |
* @return string $html license blob | |
*/ | |
private function licensePicker($string, $authors) | |
{ | |
$v3 = false; |
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
# Type the following commands to see current version: | |
cat /etc/redhat-release | |
# To list all packages with updates available with new release, enter: | |
yum clean all | |
yum check-update | |
# Verify open ports and make sure your apps are running without any problems with the following commands: | |
netstat -tulpn | |
tail -f /var/log/messages |
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
protected function csvToAssocArray( $file ) { | |
if ( ! file_exists( $file ) || ! is_readable( $file ) ) return FALSE; | |
$header = NULL; | |
$data = array ( ); | |
if ( ($handle = fopen( $file, 'r' )) !== FALSE ) { | |
while ( ($row = fgetcsv( $handle, 10000 )) !== FALSE ) { | |
if ( ! $header ) $header = $row; | |
else $data[] = array_combine( $header, $row ); | |
} |