Current location: Hot Scripts Forums » Programming Languages » PHP » php in image?

php in image?

Reply
  #1 (permalink)  
Old 03-22-04, 06:47 AM
lazygamer lazygamer is offline
New Member
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
php in image?

Is there a php tutorial or scripts example of how you can input php results into a image like just this one

http://sig.die-ohne-clan.de/sig.php?...type=Supremacy

thanks

Last edited by lazygamer; 03-22-04 at 06:52 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-22-04, 07:10 AM
Bonzo's Avatar
Bonzo Bonzo is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 340
Thanks: 0
Thanked 0 Times in 0 Posts
Use tables

echo "<table width='100%' background='image.jpg'>";
echo "<tr>";
echo "<td><p>Text or results from php</p></td>";
echo "</tr>";
echo "</table>";

or

echo "<table width='100%'>";
echo "<tr>";
echo "<td background='first bit of pic'></td>";
echo "<td background='second bit of pic'><p>Text or results from php</p></td>";
echo "<td background='third bit of pic'></td>";
echo "</tr>";
echo "</table>";

A lot of this could be done with css as well.

Anthony
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-22-04, 09:08 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,250
Thanks: 0
Thanked 0 Times in 0 Posts
Bonzo, what are you thinking!!?
the lazygamer is talking about how can you write text into images!

to do this you have to use GDlib which is a very looong story !


P.S. to Bonzo using too many echos like you did will slow your script!
__________________
We don't need a reason to help people - Zidane [FF9]

Last edited by NeverMind; 03-22-04 at 09:14 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 03-22-04, 12:28 PM
Bonzo's Avatar
Bonzo Bonzo is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 340
Thanks: 0
Thanked 0 Times in 0 Posts
GDlib

I have had a look around for you Lazygamer and have come up with this tutorial.

http://www.snipe.net/geek/toolz/img_...how_source=yes

Note to NeverMind :

would it be better to echo the table this way or is there a better way ?

echo "<table width='100%' background='image.jpg'><tr><td><p>Text or results from php</p></td></tr></table>";


Anthony
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 03-22-04, 02:11 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,250
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
would it be better to echo the table this way or is there a better way ?

echo "<table width='100%' background='image.jpg'><tr><td><p>Text or results from php</p></td></tr></table>";
this is good but using single quote is faster ..
you can simply use multilines without any problems since php ignores spaces..
PHP Code:
echo '<table width="100%" background="image.jpg">
  <tr>
    <td><p>Text or results from php</p>
    </td>
  </tr>
</table>'

__________________
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 03-23-04, 02:25 AM
lazygamer lazygamer is offline
New Member
 
Join Date: Mar 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
thanks for all of your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP image slideshow hockeykid Script Requests 4 06-13-04 07:08 PM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 12:31 AM
Need help on a image slide show using php! xelanoimis PHP 2 10-16-03 06:51 PM
Rotate an image (CW, CCW) in php? borgo PHP 4 08-16-03 03:47 AM
PHP Live Support image change Jakenorton Script Requests 2 07-28-03 04:28 AM


All times are GMT -5. The time now is 04:15 AM.
vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.