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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Charts from JSON Response</title> | |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
<style> | |
canvas { | |
width: 300px; | |
height: 300px; |
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 | |
class DemoSubject implements SplSubject{ | |
private $observer, $value; | |
public function __construct(){ | |
$this->observers = array(); | |
} | |
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
<project name="Test Job" default="build"> | |
<target name="clean"> | |
<delete dir="${basedir}/svn/_build"/> | |
<delete dir="${basedir}/build"/> | |
</target> | |
<target name="prepare"> | |
<mkdir dir="${basedir}/svn/_build/logs"/> | |
<mkdir dir="${basedir}/build/logs"/> | |
<mkdir dir="${basedir}/build/docs"/> | |
</target> |
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 | |
/* | |
Downoad the new sqlsrv20 drivers from :- http://www.microsoft.com/downloads/en/details.aspx?FamilyID=80e44913-24b4-4113-8807-caae6cf2ca05 | |
Copy to your php extensions directort and add to php.ini (Make sure you pick Thread Safe or None Thread Safe and the correct C compiler version. See top of phpinfo for compiler version). | |
I had ro rename :- | |
php_sqlsrv_53_nts_vc9.dll to php_sqlsrv.dll |
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 | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
protected function _initAutoload() | |
{ | |
$autoloader = new Zend_Loader_Autoloader_Resource(array( | |
'namespace' => '', | |
'basePath' => APPLICATION_PATH, | |
'resourceTypes' => array( |
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 | |
$captcha = new Zend_Form_Element_Captcha('captcha', // This is the name of the input field | |
array('label' => 'Are you human ?', | |
'captcha' => array( // Here comes the magic... | |
// First the type... | |
'captcha' => 'Image', | |
// Length of the word... | |
'wordLen' => 6, | |
// Captcha timeout, 5 mins |