Easy Code Share > Articles by: Editorial Staff

Python HTTP Server Accept File Upload in Two Ways

Python HTTP Server Accept File Upload in Two Ways

Upon Apache CGI, Python scripts play the role of HTTP web server that accepts both single and multiple file upload. In the article, first, we review methods of file upload in HTML browser, and then focus on Python scripts about how to receive and store files. All codes here are not complicated, so you can … Read more

Easy Code Share > Articles by: Editorial Staff

Scraping Three Global Weather Channels by Tricks

Scraping Three Global Weather Channels by Tricks

Using web scraping techniques to add a weather crawler module in your apps can help users to crawl temperature and more weather info as they want. For weather inquiry, you can call weather APIs provided by Bureau of Meteorology, or crawl Google and some weather channels. All codes here are not complicated, so you can … Read more

Easy Code Share > Articles by: Editorial Staff

Telegram Bot API Send Weather Message by Python

Telegram Bot API Send Weather Message by Python

Based on the example of a Telegram weather bot, let us learn how Python scripts send messages to apps by using Telegram API. The procedural steps are made up of registering a bot, creating a daemon process for the bot, and handling requests with the help of web crawling skills. All codes here are not … Read more

Easy Code Share > Articles by: Editorial Staff

MySQL Crud by Python DB Class and Error Handling

MySQL Crud by Python DB Class and Error Handling

We are introducing a Python DB class for helping your coding. In Python programming, MySQL connection and CRUD operations seem common, but have risks inside because of potential exceptions. Our open-source database class allows you to derive a child class, customize the child class, and, importantly, handle exceptions to reduce risks. Let’s begin with the … Read more

Easy Code Share > Articles by: Editorial Staff

Python Webapp Demo on Apache CGI for Windows

Python Webapp Demo on Apache CGI for Windows

For Python webapp scripts to run, we enumerate the most concise steps to Apache CGI configuration on Windows and Linux. The JS scripts in browser clients request not only PHP scripts on server sites, but also more competitive services from Python data science and AI. We will guide you on developing mode in Windows, and … Read more

Easy Code Share > Articles by: Editorial Staff

3 Steps Line Notify API Inform Group Member by Token

3 Steps Line Notify API Inform Group Members by Token

Line Notify API with an authorized token allows web applications to occasionally fire information to registered people. If web applications act as services, these services are no longer passive. Services can actively pass messages to users on conditional events or by scheduled jobs. We use Python scripts to implement Line Notify in the post. Line … Read more

Easy Code Share > Articles by: Editorial Staff

How to Create Many Web Chat Rooms Using PHP, JS

How to Create Many Web Chat Rooms Using PHP, JS

Let us investigate how a web chat room in PHP and JS is working in a simple way. In addition, if people require many web chat rooms, how do you let the attendee create more meeting places according to distinct topics. We extend the previous post about a single chat room with unlimited attendees to … Read more

Easy Code Share > Articles by: Editorial Staff

PHP AJAX Live Chat Example for Single Chat Room

PHP AJAX Live Chat Example for Single Chat Room

The PHP live chat is mostly of web-based, AJAX-based. We propose a concise example of client-server structure about a jQuery or JavaScript chat room. And no database is required here. So far, one chat room is provided for unlimited attendees. In next post, we are going to extend it to multiple chat rooms, thus to … Read more

Easy Code Share > Articles by: Editorial Staff

PHP Namespace Example Include Class, Function

PHP Namespace Example Include Class, Function

Namespace in programming implements an abstract concept. The re-usable PHP class, function, or constant of libraries and extensions are grouped to prevent from name collisions. In addition, Namespace aliasing increase readability of codes. The article uses PHP namespace example codes to explain the basics and its variation. All codes here are not complicated, so you … Read more

Easy Code Share > Articles by: Editorial Staff

5 Tips for PHP Image Effect, Watermark, Resize

5 Tips for PHP Image Effect, Watermark, Resize

Apart from softwares like Photoshop, PHP image functions can resize, add an effect to, or put a watermark on an image. Resizing will reduce the storage of mass uploaded pictures. Image filter can append a specific effect to an image. The watermark on an image prevent creative pictures or photographs from misappropriation. All codes here … Read more