Re: [PHP] Random php

2009-04-11 Thread Phpster



On Apr 11, 2009, at 10:12, Gary gwp...@ptd.net wrote:

Is there a way to have a php include called ramdomly?  For example,  
I have
an area that I am using to show various quotes and I would like the  
quotes

to be ramdom.

Thanks for your help

Gary



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Best is to use a storage system ( either file with a quote in each  
line or a database ) and then randomly select  a record from the  
database or an item from the file. If you do a quick search on www.hotscripts.com 
 or just goodle 'php random quote' you'll see lots of samples or  
complete code.


Bastien

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Random php

2009-04-11 Thread Gary
Thanks much for your quick reply, I'll take a look (and maybe even find one 
that spell checks my posts first!).

Gary


Phpster phps...@gmail.com wrote in message 
news:146a4da4-0114-474c-92f8-b8d3a5ecc...@gmail.com...


 On Apr 11, 2009, at 10:12, Gary gwp...@ptd.net wrote:

 Is there a way to have a php include called ramdomly?  For example,  I 
 have
 an area that I am using to show various quotes and I would like the 
 quotes
 to be ramdom.

 Thanks for your help

 Gary



 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 Best is to use a storage system ( either file with a quote in each  line 
 or a database ) and then randomly select  a record from the  database or 
 an item from the file. If you do a quick search on www.hotscripts.com or 
 just goodle 'php random quote' you'll see lots of samples or  complete 
 code.

 Bastien 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Random php

2009-04-11 Thread Gary
I had been on that site before, but seems like it is a breeding ground for 
spam and links to free commercial sites.  Ran into a few bad or broken 
links, several listings as different scripts only to take you to the same 
best price hosting company with no scripts at all.  Is this common, is 
that site on its way out?

Would you have another suggestion?

Thanks for your help.

Gary


Phpster phps...@gmail.com wrote in message 
news:146a4da4-0114-474c-92f8-b8d3a5ecc...@gmail.com...


 On Apr 11, 2009, at 10:12, Gary gwp...@ptd.net wrote:

 Is there a way to have a php include called ramdomly?  For example,  I 
 have
 an area that I am using to show various quotes and I would like the 
 quotes
 to be ramdom.

 Thanks for your help

 Gary



 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


 Best is to use a storage system ( either file with a quote in each  line 
 or a database ) and then randomly select  a record from the  database or 
 an item from the file. If you do a quick search on www.hotscripts.com or 
 just goodle 'php random quote' you'll see lots of samples or  complete 
 code.

 Bastien 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Random php

2009-04-11 Thread 9el
On Sun, Apr 12, 2009 at 1:32 AM, Gary gwp...@ptd.net wrote:

 I had been on that site before, but seems like it is a breeding ground for
 spam and links to free commercial sites.  Ran into a few bad or broken
 links, several listings as different scripts only to take you to the same
 best price hosting company with no scripts at all.  Is this common, is
 that site on its way out?

 Would you have another suggestion?


Well, I also browsed through that site.. yes what you claimed is true.
Facility/Opportunity comes with a price. So, you can go through the
ads/sponsors but there are working examples/free code snippets as well.

Just googling with that  random quote php could yield you a lots of
practical results.

Regards

Lenin

www.twitter.com/nine_L