Sometimes for security reason we need to detect and capture what is our user’s IP address. To detect client’s IP address we can use this simple PHP script. Watch the video here: Click here if you want to try to get your IP address live...
Category: PHP
How to make any url in a string into clickable links with PHP & Linkify
Let’s say we have a string variable containing article content and there is a url but not in a link format (not in an a href tag, for example). With Linkify function in PHP we can turn that url into a clickable link automatically. This...
An easy example of making email based Contact Us page using PHPMailer
PHP Mailer is a simple email sending PHP class that you can download it from here: https://github.com/PHPMailer/PHPMailer This blog post is showing you an example of a Contact Us page with a simple form, that if you fill the form and hit send button, it...
Lipsum Cakes V3 – Free Cake Shop Online Order Website Form
Hello every body, Habibie here. in this video i’m going to introduce the the tihrd version of Lipsum Cakes website template. With this website template, you will be able to sell cakes or any similar products. You can simply view cake images, click to choose...
How to PHP Localize and Translate your Website UI
How to localize and translate your website UI into many different languages? How to make a language change switch buttons/links? Watch this video I will show you how:
Delicifood – A free PHP based ecommerce platform
Delicifood is a free PHP based ecommerce platform that enable you to make a very simple and yet fully functioning ecommere platform, for example a food & beverage marketplace. Features:
PHP MySQL Travel History Questionnaire during Covid19
This is a simple single page PHP and MySQL based Questionnaire regarding travel history during Covid19. You will see a questionnaire page asking you 5 questions: Your name Phone number Have you been to China in last 2 weeks? Have you travelled out of Singapore...
Free Open Source Online Quran with Translations
Online Quran with translation based on HTML5 and PHP. If you have any question, feel free to contact me 😀 It’s optimised for mobile view. Has language change feature, theme selection, and options for changing Arabic and translation text sizes. Available languages are: English, Bahasa...
Lorem Ipsum Cakes V2 – Simple Cake Shop Online Order System
Lorem Ipsum Cakes V2 is a simple cake shop online order system using HTML5 and PHP. It simply record client’s orders on your website database and your client can simply chat with you by using WhatsApp, either web version on their desktop devices or mobile...
How to list all files in a directory and read each of them in PHP
This code snippet is useful to me when I need to read all files inside a directory and showing it on web browser in PHP:
One line PHP code to remove characters except numbers and letters
I found this few lines of PHP script useful to sanitize user input, it removes characters except numbers and letters: Or this one: Original post is here: https://coderwall.com/p/bn47ka/remove-all-characters-except-letters-and-numbers-in-php
HealthCon Responsive HTML5 Website Template
A responsive and excellence HTML5 website with slide-able style menu and sub menu feature for both mobile and desktop version. Below image is the desktop version of this website template: You can view it in action in this video: Get this template from this link:...
How to send POST request to another website from a PHP script
Let’s say we have a website like somewebsite.com and there is an input form, but we don’t want to submit that form from that website, instead we send POST request to that page from another website. Here is a handy PHP script to do so:
PHP listing files in a directory and renaming them
I have a tons of files in a directory that has underscore in their names, and I need to rename them by replacing underscore to dash. I wrote this script in PHP and it worked!
How to resize QR Code image generated by phpqrcode library
In this tutorial I will show you how to modify the phpqrcode library to generate more bigger and larger QR Code image. By default if we generate a QR Code of short text or string, we will get a small QR Code image approximately less...
Simple and easy PHP and Unity POST and GET http request tutorial
This tutorial is about simple and easy HTTP POST and GET request from Unity. Watch this video to see how it works: First, take a look this php program, you can test sending POST and GET request directly from web browser if you are running...
How to use Facebook Comments plugin dynamically in your PHP websites
This tutorial in this video showing you how to use Facebook Comments Plugin dynamically on each page of your website without adjusting it one by one on each page with the help of PHP.
Generating random a mix of random letters and numbers in PHP
By calling str_shuffle method in PHP, we can generate a random mix of latters and numbers. For example, if we want to fill $bookid string variable with 10 letters and numbers (mixed of them), we can do it this way: And the result is this:...
Checking uploaded file extension with PHP before storing it on our server
We often allow our users to upload files to our server. It is important to limit file extensions that we accept. For example, we need to only accept .pdf and .txt files from our users, we don’t want them to send us any other files...
Silly PHP Number Encoder and Decoder Program
Imagine you are creating a PHP program and you can pass some number parameter in url to retrieve content from your server. Then maybe you are thinking if you let people seeing those numbers in their url, they can change that number to any number...