Let’s say we have our local webserver, in my case I use XAMPP so I can have a local web in my localhost. Then, by accessing this local web page over wifi from my mobile phone web browser, I can upload some files from my...
Category: PHP
PHP JSON to Unity C# and Vice Versa
So, you have a backend script in PHP that returns JSON string and you want to parse that data from your Unity game. What would you do?Based on my experience, here is how I do it. PHP Let’s say I have a PHP script (index.php)...
Some handy PHP functions to create database table and add a column to it easily
I personally really like to do “make a table if not exists” and “add a column if not exists” to mysql database when working with PHP. By doing that I don’t have to manually create table and add column before populating it with data from...
How to access your localhost website running with XAMPP from another devices (like Android phone)
Hi there, I know you often develop an online websites on your local environment using local webserver such as XAMPP before you deploy it on real web server online. Sometimes you need to access your local website that is running on localhost for example in...
How to develop a WordPress plugin : Very Simple Way
Basically making a WordPress plugin is very easy. If you know the basic, you can make it super complicated, depending on what you want to achieve. First Step: Make the directory and plugin file To make a plugin, simply create a directory inside wp-content->plugins folder...
How to retrieve current database name, user and password of a WordPress site
When you are working on WordPress development (theme deelopment or plugin development), probably you will need to retrieve current website database name, database user and password. To get those information you can write these lines on your theme/plugin: The last three lines will echo the...
How to make your own online file storage with this simple PHP program
This PHP program you can use it to upload your personal files to your website directory so you can access them anywhere. By default username and password are admin and admin, you can change them by editing index.php file. To get the source code, go...
PHP File Downloader
It is a simple PHP program to download any file from URL to your server Let’s say we have two websites, the old one has some files that we need to move them or copy them to the second website. Obviously we can download those...
How to get the size of a directory in PHP
Sometimes we need to know how much is the size of a directory including files inside it in PHP. Here is a nice simple PHP function to do so. Just call the function and it takes one parameter which is directory location. For example we...
Simple PHP function to convert numbers in bytes to nice kb, mb, gb etc…
Hi, this is a nice function maybe useful for your coding need in PHP. This function will convert any numbers in bytes to a nice format like kb, mb, gb and so on. Here we go:
WhatsUp Online Shop – A PHP, MySQL and WhatsApp based online store CMS for free
This tutorial teaches you how to make an online shop that works with WhatsApp for free without using WordPress or Joomla CMS. This PHP software is a lightweight and simple CMS system that allows you to post products with pictures, description, pricing, quantity and options....
How to use array and object-array in PHP
There is Array in PHP, and there is also object. We can simply make array that each member contains a value such as string or integer or we can also store object as the value of each array member. This is the example that I...
How to make Unity & PHP Login Logout and Register
Hello guys! Watch this series of my videos to see how we can make Unity login, logout and register easily: And here are the code I wrote: First, config.php file Then the index.php backend file And the last file is UnityLoginLogoutRegister.cs file In case you...
How to make PHP based cooldown button
This cooldown button program detects is the current visitor already visited the website or not, if he/she visited already it checks when is that, and then decide does he/she can click the cooldown button again or not. Here is the code, a bit messy:
How to read and write file in PHP
My previous post shows you how to read a file and retrieve its content in PHP. This one, you will see how to read file and also write to a file with easy: Here is the code:
How to read a file in PHP
This simple script can be used to read a file and displaying it contents into a web browser. Watch the video here:
How to make Videos Website with Ciihuy Online Videos CMS
This is a PHP based online videos website content management system. Features included: Post publishing Video file upload Video thumbnail image upload Category management Search entire content Custom logo, color and icon change ability And so on… Watch this video to see how to set...
How to make an Online Listing Directory Website with Delicifood 2
Delicifood is a free PHP based ecommerce platform or online listing website system that enable you to make a very simple and yet fully functioning ecommere platform, for example a food & beverage marketplace, electronics, property and so on. Features: User login & registration Add...
Upload and resize image with PHP before storing in upload folder
We can not allow users to upload any files and any images to our server, we need to make rule, for example we don’t allow them to upload an image bigger than 1mb/2mb or image that its width is more than 512px. Here with this...
Nice and easy PHP Social Sharing Buttons for your site
Just include this php file then call its function to make social share buttons on any page of your site easily. Watch how to do it in this video: Get the source code used in this video from my GitHub page: https://github.com/habibieamrullah/PHP-Social-Sharing-Buttons Sharing buttons powered...