Easy Code Share > More

How Moving HTTP to HTTPS Gets Free of Charge

How Moving HTTP to HTTPS Gets Free of Charge

If wondering which SSL certificate has lower price, you should take a glance at moving HTTP to free HTTPS in this article. HTTPS using SSL certificates transfer sensitive data in safe way. Unfortunately, most website founders who are not aware of free approaches spend money upon this topic. Here we introduce Let’s Encrypt, which an … Read more

Easy Code Share > More

Trigger Remote Shell Script on Linux via Http Browser

Trigger Remote Shell Script on Linux via Http Browser

We present a way to achieve: (1) http browser clients can trigger a remote script to run, (2) Windows browsers auto refresh status for remote system on Linux. Obviously, that give us an alternative view about what common HTML layout can do. All codes here are not complicated, so you can easily understand even though … Read more

Easy Code Share > More

PHP Codes Access Shared Memory in Linux with Lock

PHP Process Access Shared Memory on Linux

A global counter example introduced here applys Shared Memory to store a common counter value for Linux processes, which tend to get incremental amounts randomly. Moreover, we assume HTTP requests require this counter, and then focus on the behavior of child processes forked by Apache daemon. As experimental proof, the simulation model in another Linux … Read more

Easy Code Share > More

How to Pass HTTP Request into Queue using PHP

Pass HTTP Request to Queue using PHP on Linux

An alternative way to treat HTTP requests is introduced. It passes a request to a Queue, but get result from another Queue. At opposite ends of two Queues, a running daemon process get token from a global counter file, and then return it into Queue. Before that, for clarification, basic knowledge about Apache MPMs will … Read more

Easy Code Share > More

Yii 1.1 PHP Web App Quick Start using Gii

Yii 1.1 PHP Web App Quick Start using Gii

Yii 1.1 is one of famous PHP MVC (Model-View-Controller) frameworks. Although Yii 2.x had launched with big change in structure, Yii 1.1 will still be worth attention as some existing systems are running under it by now. With its Gii component, WebApp developing staff can create Model class with ease, and therefore leverage CRUD operations … Read more