Tags » PHP 2

PHP IBM i Toolkit - Security Awareness of HTTP transport - Sending UserId and Password in Clear Text

With many open source security exploits coming out (shellshock, Heartbleed and recently Ghost exploits) I decided to look into the open source PHP IBM i toolkit that many people are using to access the IBMi. 249 more words

Php

Reset ID tiap ada perubahan tahun

-- Create table
DROP TABLE IF EXISTS test;
CREATE TABLE test (
    id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
    tahun YEAR,
    nama VARCHAR(20),
    PRIMARY KEY (tahun, id)
) ENGINE=MyISAM;

-- Insert data
INSERT INTO test (tahun, nama) VALUES
('2014', 'Dian'),
('2014', 'Sastro'),
('2014', 'Wardoyo'),
('2015', 'Raisa'),
('2015', 'Andriana'),
('2016', 'Dinda'),
('2016', 'Kanya'),
('2016', 'Dewi');

-- View
SELECT * FROM test;
Backend Development

PHP: Select between 2 string

A simple way to catch in between 2 string.

function get_between($input, $start, $end)
{
$substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) – strpos($input, $end))*(-1));
return $substr;

45 more words
Php

Environment specific configuration in zend

In software development life cycle, we generally need different type of environments for different purpose like – “development”, “testing”, “production” etc.

And all these environments has some environment specific configuration. 538 more words

Article

Unicode UTF-8 Issue with YII and MSSQL framework

Error :
QLSTATE: General error: 20018 Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier. 123 more words

Database

PHP Basics

Hello there,

I am thinking of starting this blog again. I have read the comments and realised that there are many users out there who needs help in different topics. 314 more words

PhP

Cron path

/usr/bin/php -q /home/kentcricket/public_html/cron.php

PHP