| TOTAL: 3 Page: 1 of 1 |
|
Randomizing Text - Create a very simple Quote generator
This script is very useful for features such as 'quote of the day' and 'random links' sort of thing. To implement is very easy. This script will pick a random block of text from a list of texts and display it, so everytime you reload the page a different block of text will appear. It requires one php file. Firstly, we have to define our first block of text: $text[1]="Put some text here"; This is just one block of text, we need more, so we just copy the first line of code but increase t

| Hits: | 117 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Quotes from Rasmus Lerdorf
I get the feeling that Rasmus doesn't like Internet Explorer too much. How about you? "It is not named php-4_0_0_tar.tar, your browser is too stupid to get the name right. What are you using? IE?" "This is your silly web browser doing that. The file is correctly named." "The file is a gzipped tar file. Your browser is playing tricks with you and trying to be smart." "Because you are using a crappy browser from home." "That's your browser screwing up. Has nothing to do with us. Use

| Hits: | 129 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Random Quotes
Learn how to make Random Quotes using the power of PHP. Many people email wondering how the heck we make the random quotes on the title bar at the main page. Well, we're finally releasing the secret, and its not as hard as you think :) Lets write the code to pick a random quote using PHP. Here is what we have to write in English for the processing: Randomize everthing so the same quote doesn't come up. Use the preg_split function to select a random text from a file. What we're doing

| Hits: | 42 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |