Script to add fortunes on the Web v0.1
First of all I will explain briefly what do you mean, fortunes. In GNU / Linux is a useful long ago that just shows you a sentence at random from a list. This list is organized by themes, and other languages, and each of these categories is kept in a separate file, so that we find names such as: varios.fortunes or proverbios.fortunes.
What I have done is a function in PHP that displays randomly one of those phrases in a specific file of fortune, without having installed the program or having to make a call to the system from any CGI.
As an example've got the sentence that must exist between the table header of the page and the rest below it on this blog.
The code you put this link in a visible and if you do want to download here, utillizarlo to copy it to the top of the page where you go to use, change the file path you have chosen and put <? Php fortune () > On the page, the site you want, you see the phrase.
He still has a few bugs and I would like to complete it, but good for now worth, if you have something to say or any ideas because you already know: you comment and respond.
| Comments (0) 




