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
PGM PARM(&INSPLF &INJOB &INUSER &INJOBN &INSPLN + | |
&EXISTS) | |
/* Thanks to Scott Campbell and Larry Nies */ | |
/* Incoming parms */ | |
DCL VAR(&INSPLF) TYPE(*CHAR) LEN(10) | |
DCL VAR(&INJOB) TYPE(*CHAR) LEN(10) | |
DCL VAR(&INUSER) TYPE(*CHAR) LEN(10) | |
DCL VAR(&INJOBN) TYPE(*CHAR) LEN(6) |
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
# Created by Zend Server | |
<VirtualHost *:${port}> | |
# Make ZF2 path available as environment variable | |
SetEnv ZF2_PATH /usr/local/zendsvr6/share/ZendFramework2/library | |
# Tell apache to serve index.php if the requested resource doesn't exist. | |
# This allows static files to be served directly while "ZF-friendly URLS" | |
# are sent to index.php |
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 | |
abstract class AbstractValue | |
{ | |
protected $value; | |
private function __construct(){} | |
protected function filter() | |
{ |
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 | |
namespace Sabel; | |
abstract class AbstractController | |
{ | |
protected $diContainer; | |
public function __construct(DiContainer $diContainer){ | |
$this->diContainer = $diContainer; | |
} |
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 ItemsGateway extends AbstractGateway | |
{ | |
protected $table = 'SCF906'; | |
public function fetchAll() | |
{ | |
// Try to fetch from the cache first | |
$response = zend_shm_cache_fetch('itemCodes'); | |
// If itemCodes list isn't in cache |
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 | |
namespace IbmiToolkit; | |
use Zend\Mvc\ModuleRouteListener; | |
use Zend\Mvc\MvcEvent; | |
class Module | |
{ | |
public function onBootstrap(MvcEvent $e) | |
{ |
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
# learn what php-cli is doing | |
cat /usr/local/zendsvr/bin/php-cli | |
# learn what configuration values are set | |
cat /etc/zce.rc | |
# learn what extensions are enabled in php.ini | |
cat /usr/local/zendsvr/etc/php.ini | grep extension | |
# see extensions included | |
/usr/local/zendsvr/bin/php-cli -r "phpinfo();" | grep conf.d | |
# things you should probably create for setting up php-cli specific configuration |
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
#1 get latest iconv php extension which is included in the php-src | |
git clone http://git.php.net/repository/php-src.git | |
#2.0 find your PHP Version | |
php -v | |
#2.1 check out your specific branch of PHP | |
git checkout PHP-5.6.7 | |
#3 If you dont have libiconv.a, Get libiconv from perzl and then fix it |
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
#!/usr/bin/env python | |
#coding: utf-8 | |
import os | |
import imp | |
import time | |
import signal | |
import argparse | |
import commands |
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
stop; | |
-- Publish the data within a table using SQL | |
with json_rows (j) as ( | |
select json_object( | |
key 'EMPNO' value empno, key 'FIRSTNME' value firstnme, | |
key 'MIDINIT' value midinit, key 'LASTNAME' value lastname, | |
key 'WORKDEPT' value workdept, key 'PHONENO' value phoneno, | |
key 'HIREDATE' value hiredate, key 'JOB' value job, |
OlderNewer