Profile
Achievement
Sverri's Recent Snippets
- All /
« Prev 1 Next »
A simple PHP function for fetching tweets. Just provide your Twitter screen name and how many tweets you want and that is it. The function returns a simplified result set because you rarely need all the stuff that the Twitter API throws your way. If...
1
972
posted 12 years ago by Sverri
The code is not particularly pretty but it does the job.
If you call this file css.php you can call it like this:
css.php?files=reset,style,iefix&minify=yes
1
940
posted 14 years ago by Sverri
The player selects a range from 0 to n, remembers a number in this range and then the script asks the player a question trying to guess the number. The PC will always guess the correct number.\r\n\r\nI could have added more varied questions, but the...
0
630
posted 14 years ago by Sverri
When working in PHP I sometimes want to know exactly what is in a variable. This is easy enough to find out, but having this function around it is even easier, as it includes the HTML pre tag making it easier to read, and it allows you to choose how...
1
844
posted 14 years ago by Sverri