Using wget to download contents of entire ftp directory
wget -r ftp://127.0.0.1/* --ftp-user=user --ftp-password=password
Add comment | October 17th, 2008
wget -r ftp://127.0.0.1/* --ftp-user=user --ftp-password=password
Add comment | October 17th, 2008
Redirect domain with .htaccess
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.domain.com$
RewriteRule ^(.*) http://www.domain.com/$1 [QSA,L,R=301]
Add comment | October 13th, 2008
Hi Guys!
I changed the math for the cards, after finished a Magic card game, I think to make a casino game. I enjoy when I play blackjack, so… I make it.
In this version, the tables rules are the next:
Please, tell me what do you think about it!
I hope you enjoy it!
Add comment | April 10th, 2008
Hi again!
This is second child of the family. I make a very simple interface, with no sound/music and no presentation. To play you need to find the couples between numbers and operations. The main goal of the game is clear all the pieces finding the valid operations. You have two way to to that.
1- Match the result of the operation with a number.
2- Two equal numbers
In all the level you can clear all the pieces.
Here the game!
I hope you enjoy It!
Add comment | April 10th, 2008
Hi guys!
This is my first flash game, the history is simple. One day I wake up with the idea to combine math with games, but in a easy way. The best option was Flash, the first steps was very hard, but always you have options, this time my option was my best friend, he is a flash game guru (take a look to his page).
I make a very simple interface, with no sound/music and no presentation. The game is very basic. I want to make it pretty and funny (this is a little complicated, because the most people hate maths!).
To play you need to find the couples between numbers and operations. The main goal of the game is clear all the pieces finding the valid operations. You have three way to to that.
1- Match the result of the operation with a number.
2- Two equal numbers
3- Two operations with the same result.
In all the level you can clear all the pieces.
Here the game!
I hope you enjoy It!
Add comment | April 10th, 2008
Hi guys,
Here the php code to get the actual name of the file. This is very usefull when you need to get the name of the file and you only have the full path like /download/games/getfile.php. To get the name I use the $_SERVER[”PHP_SELF”] var.
Here the code:
If $_SERVER[”PHP_SELF”] is /download/games/getfile.php the value of $file is getfile.php
Yes, I know, it’s very simple, but (at least for me) very usefull
Add comment | December 10th, 2007
Hi guys,
With this code you can get the extension of a file. This is very simple and useful.
If the value of $file is “/files/games/mathattach.swf” the value of $ext will be “.swf”;
Add comment | November 10th, 2007
Hi guys!
With this script you can make a permanent 302 redirection with php headers. This is very usefull when you want to make that google think that your domain.com is the same that www.domain.com.
Here the script:
It’s very simple, but very usefull.
Add comment | November 10th, 2007
Hi guys,
With this script you can control the access to your files with a ACL from secures referrers.
Here the code:
Add comment | June 16th, 2007
Hi Guys,
If we need make a backup of a directory, the best options is use tar.
For example, you have a directory called /home/emanuelq/files and you would like to compress this directory,you can type tar command as follows:
The above command will create an archive called backup.tar.gz in the current directory.
If you want to extract the content of the file you need to run this command.
The above command will be extract the files in the current directory.
Add comment | February 21st, 2007