This is a project I made for teaching purpose. First of all, let’s see what is a perfect maze. From Maze Works: A perfect maze is defined as a maze which has one and only one path from any point in the maze to any other point. This means that the maze has no inaccessible …
Read all posts about "Maze" gamePhp
Today I had to generate some passwords, and I am not so creative in doing this. So I coded a function I want to share with you. How does it work? Let’ see the parameters lenght: is the password length (default = 8) use_upper: set to 0 if you do not want to use uppercase …
Very simple and useful code, but hard to find in the internet. You may need it when you code an user authentication script and want to prevent the user to hack it with ascii injection. I will use regular expressions because it is the quickest way, and we want to be quick (almost) everytime… $new_string …
When you need to execute php code inside a WP post you are in trouble. So was I, when I tried to do it. But I found a plugin that saved my life, and my blog. This plugin lets you execute dynamic PHP code in posts. It masks PHP code before balanceTags, and unmask them …
I am coding a quite huge calendar script for various works I have in progress. The barebones of this calendar I have coded today represent a php function that returns a calendar into an html table of any month of any year (according to php limits) with any day offset. This means your calendar could …
Today, an interesting script to check cookies with php. I had to used it because a bad configuration on the server turned off cookie settings, and I have on my server various shopping cart using cookies. You may get different results according to your register_globals settings. Remember to reload the script to have the correct …
Very easy script for a very important need: handle all variables coming with POST or GET methods. With this script you can manage all data coming for every kind of form. This script prints all passed variables with their values. There is nothing more to say, just remember that changing $_POST with $_GET you will …
One of the hardest script you can find in internet is the one that determines connection speed of a surfer visiting our site. From today it’s not anymore a problem (even if nobody had nightmares before…) because we will make a php script in order to fill such lack. Let’s start coding…