ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
php text image (General Discussion)
php text image // General DiscussionmakiMar 23, 2003, 11:11pm
i saw awhile back in awn00by a few images, just single color background and
single color font, but you could change the URL and make a new image, with the text you add to the URL, so something like domain.com/image.php?text=blah+blah, can't remember the exact code of the URL, would make an image that said 'blah blah' on it. anyone know where i could find this or the code for it? thanks. maki makiMar 24, 2003, 12:05am
well i found ananas' font php script (http://oct31.org/fonts/ ) have
transferred the files to my server, uploaded the symbol.ttf, changed the FONTNAME.ttf to symbol.ttf in the script, tried numerous things and nothing seems to work. :( i can't even get the image to create, it just shows the little red 'X' in IE and doesn't display in AW - ananas' creates a blank image, but that one i couldn't even get to show text, am i just losing my mind? help? :\ maki [View Quote] ananasMar 24, 2003, 6:00am
TTF is an optional module in PHP, maybe your server doesn't
have it or it isn't activated. You can check it with a single- line PHP script : <?PHP phpInfo(); ?> Upload this line in a file phpinfo.php. Loading this script in a web browser reveals all configured options. Check for --with-ttf=somepath and '--enable-gd-imgstrttf' in the page it sends. Another thing you can do is : load the font script in NetScape, it will not show an image either - but you can choose "View - Page source" from the menu and find PHP error messages within the JPG codes. [View Quote] makiMar 24, 2003, 6:47pm
i looked and couldn't find '--enable-gd-imgstrttf' - found the other one
though. so i just can't use it on my server then if that's not enabled? anyway i can enable that? depend on my host? maki [View Quote] ananasMar 24, 2003, 6:58pm
The basic PHP configuration, the included modules,
depend on your host, yes. Have you checked the error message in the PHP file with "view source"? Maybe it is just a path problem. [View Quote] makiMar 24, 2003, 9:18pm
had to download netscape, heheh. attached is the 'source'. not sure what it
means... maki [View Quote] begin 666 i.php M/&)R/ at H\8CY787)N:6YG/"]B/CH at ($-O=6QD(&YO="!F:6YD+V]P96X at 9F]N M="!I;B \8CXO:&]M92]V:7)T=6%L+W-I=&4R-S$O9G-T+W9A<B]W=W<O:'1M M;"]F;VYT<R]I+G!H<#PO8CX at ;VX at ;&EN92 \8CXU-SPO8CX\8G(^"O_8_^ ` M$$I&248``0$```$``0``__X`/D-214%43U(Z(&=D+6IP96< at =C(N," H=7-I M;F< at 24I'($I014< at =C8R*2P at 9&5F875L="!Q=6%L:71Y"O_;`$,`" 8&!P8% M" <'!PD)" H,% T,"PL,&1(3#Q0=&A\>'1H<'" D+B< at (BPC'!PH-RDL,#$T M-#0?)SD].#(\+C,T,O_;`$,!"0D)# L,& T-&#(A'"$R,C(R,C(R,C(R,C(R M,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,C(R,O_ `!$(`0`! M``,!( at `"$0$#$0'_Q `?```!!0$!`0$!`0```````````0(#! 4&!P at )" at O_ MQ "U$ `"`0,#` at 0#!04$! ```7T!` at ,`!!$%$B$Q008346$'(G$4,H&1H0 at C M0K'!%5+1\"0S8G*""0H6%Q at 9&B4F)R at I*C0U-C<X.3I#1$5&1TA)2E-45597 M6%E:8V1E9F=H:6IS='5V=WAY>H.$A8:'B(F*DI.4E9:7F)F:HJ.DI::GJ*FJ MLK.TM;:WN+FZPL/$Q<;'R,G*TM/4U=;7V-G:X>+CY.7FY^CIZO'R\_3U]O?X M^?K_Q `?`0`#`0$!`0$!`0$!`````````0(#! 4&!P at )" at O_Q "U$0`"`0($ M! ,$!P4$! `!`G<``0(#$00%(3$&$D%1!V%Q$R(R at 0 at 40I&AL<$)(S-2\!5B M<M$*%B0TX27Q%Q at 9&B8G*"DJ-38W.#DZ0T1%1D=(24I35%565UA96F-D969G M:&EJ<W1U=G=X>7J" at X2%AH>(B8J2DY25EI>8F9JBHZ2EIJ>HJ:JRL[2UMK>X MN;K"P\3%QL?(R<K2T]35UM?8V=KBX^3EYN?HZ>KR\_3U]O?X^?K_V at `,`P$` M`A$#$0`_`/?Z*** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH * M*** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HH MHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB M at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** M"BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH * M*** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HH MHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB M at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** M"BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH * M*** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HH MHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB M at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** M"BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH * M*** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HH MHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB M at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** M"BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH * M*** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HH MHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB M at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** M"BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH * M*** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HH MHH **** "BBB at HHHH **** "BBB at HHHH **** "BBB at HHHH **** /__9 "( H` ` end ananasMar 25, 2003, 5:30am
<br>
<b>Warning</b>: Could not find/open font in <b>/home/virtual/site271/fst/var/www/html/fonts/i.php</b> on line <b>57</b><br> That means your server and your PHP is supplied with all modules you need, just the line ImageTTFText ($im, $size, 0, 0, $pos, $fore, "symbol.ttf", $line); is wrong somehow. Upper/Lowercase maybe? Different directory? Read access not allowed? [View Quote] makiMar 26, 2003, 12:13am
ananas <vha at oct31.de>:
>, just the line > > ImageTTFText ($im, $size, 0, 0, $pos, $fore, "symbol.ttf", $line); > > is wrong somehow. > > Upper/Lowercase maybe? > Different directory? > Read access not allowed? well, i lowercased the symbol.ttf on my server, and changed it in the script to such, it's in the same directory as i.php, and i CHMOD'ed it as 777 to see if it would work and that didn't help so i wouldn't think anything else would - 777 is everything.. :\ thanks for the help ananas, i 'spose it's alright if i don't figure it out, just thought it would be fun, something different to use. maki ananasMar 26, 2003, 4:49am
You could try
ImageTTFText ($im, $size, 0, 0, $pos, $fore, "./symbol.ttf", $line); maybe there's some default directory where it looks for the fonts. Another very important thing si : you have to upload the ttf file with FTP set to binary mode, transferring it ASC (Text mode) will destroy the file. [View Quote] |