iamme
Lifer
- Jul 21, 2001
- 21,058
- 3
- 0
Originally posted by: Kev
I like how LoKe says you guys are putting too much thought into it, then proceeds to serve up 40 lines of php code.
LOL, i was thinking the same thing...:laugh:
Originally posted by: Kev
I like how LoKe says you guys are putting too much thought into it, then proceeds to serve up 40 lines of php code.
Originally posted by: austin316
Originally posted by: MathMan
Originally posted by: austin316
anyway to do this as text? or should I just save my quotes as .gifs?
or make an animated .gif?
Actually, you can use the GD lib with PHP to convert a text string into a graphic image on the fly.
It'd be pretty easy to write a PHP script which grabbed a line from a text file containing all of your quotes, and then create a gif file with that quote.
any pointers where I could find a guide to help me?
Originally posted by: MathMan
Originally posted by: austin316
Originally posted by: MathMan
Originally posted by: austin316
anyway to do this as text? or should I just save my quotes as .gifs?
or make an animated .gif?
Actually, you can use the GD lib with PHP to convert a text string into a graphic image on the fly.
It'd be pretty easy to write a PHP script which grabbed a line from a text file containing all of your quotes, and then create a gif file with that quote.
any pointers where I could find a guide to help me?
Ok... I went ahead and just merged two scripts I found that will do that job for you.
Take a look at the code here.
Place this file on your server-- with a php extension, of course. You will also need to place a true-type font file in the same directory (I used arial), as well as your quote file (called quotes.txt, with one quote per line). For best results, also make a subdirectory called "cache" which will store already-created quote images.
The end result can be seen right here.
Hope that helps...
Originally posted by: austin316
Originally posted by: MathMan
Originally posted by: austin316
Originally posted by: MathMan
Originally posted by: austin316
anyway to do this as text? or should I just save my quotes as .gifs?
or make an animated .gif?
Actually, you can use the GD lib with PHP to convert a text string into a graphic image on the fly.
It'd be pretty easy to write a PHP script which grabbed a line from a text file containing all of your quotes, and then create a gif file with that quote.
any pointers where I could find a guide to help me?
Ok... I went ahead and just merged two scripts I found that will do that job for you.
Take a look at the code here.
Place this file on your server-- with a php extension, of course. You will also need to place a true-type font file in the same directory (I used arial), as well as your quote file (called quotes.txt, with one quote per line). For best results, also make a subdirectory called "cache" which will store already-created quote images.
The end result can be seen right here.
Hope that helps...
awesome work. however, what code do I use to make these quotes appear in myspace?
Originally posted by: purbeast0
Originally posted by: austin316
Originally posted by: MathMan
Originally posted by: austin316
Originally posted by: MathMan
Originally posted by: austin316
anyway to do this as text? or should I just save my quotes as .gifs?
or make an animated .gif?
Actually, you can use the GD lib with PHP to convert a text string into a graphic image on the fly.
It'd be pretty easy to write a PHP script which grabbed a line from a text file containing all of your quotes, and then create a gif file with that quote.
any pointers where I could find a guide to help me?
Ok... I went ahead and just merged two scripts I found that will do that job for you.
Take a look at the code here.
Place this file on your server-- with a php extension, of course. You will also need to place a true-type font file in the same directory (I used arial), as well as your quote file (called quotes.txt, with one quote per line). For best results, also make a subdirectory called "cache" which will store already-created quote images.
The end result can be seen right here.
Hope that helps...
awesome work. however, what code do I use to make these quotes appear in myspace?
lol dude you sound like the kids who come in here asking for programming help on some basic c++ stuff but they haven't even opened the book to attempt to learn anything on their own.
Originally posted by: MathMan
well, to get this to work you will need your own webhost that has PHP support.
Put the quotes.php file there, you true-type font file, and your quotes.txt file there.
Once it's there, you just use the full URL for the quotes.php file on your server in your image tag.
For instance, to place my random quote generator in your myspace area, you would you the following HTML:
[ img src="http://www.castechint.com/quotes.php" ]
(replace the [] brackets with < and > )
Originally posted by: wtfbbq
works for me, but i wonder if there is a way to automatically insert breaks when making the picture? longer quotes create an extremely long picture.
Originally posted by: wtfbbq
works for me, but i wonder if there is a way to automatically insert breaks when making the picture? longer quotes create an extremely long picture.
Originally posted by: austin316
Originally posted by: wtfbbq
works for me, but i wonder if there is a way to automatically insert breaks when making the picture? longer quotes create an extremely long picture.
my link works for you? hmmm