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 files from 1st website and upload them to 2nd website….
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 can use it like:
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:
How to make a Unity WebGL page appears full screen?
I’m sure you tried to export your Unity game to a WebGL version to publish it online. But it does not appear full screen. Well, you can replace your index.html code with this, but do it at your own risk: And, hey, don’t forget you need to change this “Build/WebBuild.json” according your project. In my…
How to make texture chooser system in Unity
This is a demo scene of a Unity project that demonstrates how we can make a texture changing system. You can click one of those two objects inside the scene to show a texture changer interface, then you can select available textures to change the texture of that selected object. The source is available for…
How to make automatic sliding door in Unity
I want to make an automatic sliding door in Unity. The idea is, there will be a door with a sensor area. If a player inside that sensor area, the door will open, and if the player left, the door closes. To make this thing happened in Unity, I need to make a sensor script…
Switching between Zoom In intro camera to the Main Camera in our Unity Game
Let’s say we have two cameras in our Unity game. First one is a camera that zooms in towards a player object at the beginning of the game, and the second one is the main camera. This tutorial will be about how to make a switch between those two cameras very easy. Here you can…
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. It has easy to use Shopping cart, add to cart…
How to make a very simple Cutscene for your game in Unity
Let’s say you are building a race game, and you want to make a cutscene as transition between main menu and the race game itself, this video demonstrates how to make a such simple cutscene. Here I share the project file: https://drive.google.com/file/d/16Rp7opdnwe0iByu-GkL9Cj3ynDigq2Pi/view?usp=sharing
How to load texture from web on run time in Unity and apply it to an object
I have an idea to store texture files on web (on server) and then we allow users to load any textures available on web to apply to an object in Unity. So I experimented with this script: I placed a cube to the scene, also an input field and a button. By entering texture url…
How to create Asset Bundles in Unity by script
I think the only way to make an Asset Bundle in Unity is by using script, this one is taken from Unity official tutorial. Have a folder named Editor in your Assets folder, and make this script inside it: Name the file CreateAssetBundles.cs And then, I think I better show it to you in this…
How to load a Unity Asset Bunde file from web/url
Make an empty object on your scene and attach this script to it: Don’t forget to specify your correct url to the asset bundle you want to reach and the name of object you need. Watch this video demonstration to see more:
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 experimented with: Then the output will be this:
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 have problem seeing above scripts, check out this github link:…
Strange experience with this Unity error: mapfileparser.sh permission denied
As usual, I work on Unity on my Windows PC, then build the Xcode project files from my pc. This time the project files are so big so I tried to zip them. But zipping process didn’t go until the end, before completely zipping the files, I got an error says somehow it can not…
unity ” is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder.
This error happened to me when I was trying to export my Unity project. Then it solved after checking my build settings, and I spotted a deleted scene on my build settings with empty text and check mark. I removed that unwanted scene from build settings and done! It solved. In the other words: Remove…
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 a car controller script in Unity and set-up wheel colliders for a vehicle
In this video below I’m showing how to make a car controller script and how to use it in order to make a movable vehicle in Unity from scratch. This is the script used in this video: If you are interested to get the entire files you see in this video, get this unity package…