Jump to content

pvtpyro

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

About pvtpyro

  • Birthday 01/30/1982

Contact Methods

  • Website URL
    http://

Profile Information

  • Gender
    Not Telling

pvtpyro's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. wow that was fast. just what i was looking for. thank you very much!  :-*
  2. i'm looking for a tutorial that will let me load certain lines in an xml file to show on the page. i don't know what it's called. any links? =)
  3. once i add imagename.gif after $image, the script stops working.  ???
  4. thank you so much!  :D
  5. I made a script that creates an image. It makes the image just the way I want. comes out perfectly! but the [b]imagedestroy($image);[/b] prevents me from being able to save the image. As of now the file saves as a filename.php.gif, but it's not actually a gif. is there a function or something I can use to save the actual image on my server, then show it in the browser for people to see?
  6. Oh wait! I'm sorry. This is the second time today I've corrected my own mistakes. I am sooo sorry for wasting time. I've never done something right on my own before!  :D
  7. Yeah, I'm using POST. I'm using the same method for my other form elements, and they all work fine. it seems that because there's content before and after my $_POST['bgcolor'] that it's not working. I've tried single quotes, double quotes. nothings working.
  8. I'm having a little trouble. I will start by showing what I have done. i have an html form. here's part of it: [code]    <select name="bgcolor">       <option value="000000">Black</option>       <option value="FFFFFF">White</option>       <option value="CCCCCC">Gray</option>     </select>[/code] the forms action is to a php file. this code works just peachy. [code]ImageFill($image, 0, 0, fromhex('ff0099'));[/code] i would like to insert bgcolor from my form in place of ff0099 in the php part. But the only method I know doesn't work. [code]ImageFill($image, 0, 0, fromhex($_POST['bgcolor']));[/code] can someone help me with this?
  9. ah nevermind. figured it out. I'm a dork. haha
  10. Here's what I've got going so far. If you have gd library you can test it. How would I go about loading true type fonts? I've gone through the tutorials here but they explain different types of font. when i simply try to change to tff it doesn't work. I would deeply appreciate any help  :) [code]<?php header("Content-type: image/gif"); $image = imagecreate( 300, 150 ); imagecolorallocate($image,100, 149, 237); $border = imagecolorallocate($image, 0, 0, 0); $string = '(C) blah blah'; $white = imagecolorallocate($image, 255, 255, 255); $black = imagecolorallocate($image, 0, 0, 0); imagestring($image, $font, 10, 10, "Hello", $black); $len = strlen($string); for ($i=1; $i<=$len; $i++) {   imagecharup($image, $font_size, 5, imagesy($image)-($i*imagefontwidth($font_size)), $string, $black);   $string = substr($string,1); } imagegif($image); imagedestroy($image); ?> [/code]
  11. I have some things i'm working on. basically, generators where people can cutomize things. To view their finished product they have to click "view". I want people to be able to see their changes as it's happening. I don't know what to call this. Does someone know of a tutorial? or a script I can see?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.