Jump to content

christianmatthew

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by christianmatthew

  1. This is kind of a tricky one... How do I change apache to accept a different file extension for php. Example: I want a file named index.boo or something, but apache doesn't understand it as php and shows the code like a text file. How do I make it register different extensions, as well as keep .php as one of those extensions.  (so I can have both index.php and index.boo) I've seen this done before, just can't find anywhere on how to do it.
  2. [!--quoteo(post=350220:date=Feb 28 2006, 09:35 AM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Feb 28 2006, 09:35 AM) [snapback]350220[/snapback][/div][div class=\'quotemain\'][!--quotec--] Statements-------- Value Format -------------dynamic Rows ---------------0 Next Autoindex--- 6 how do i set the auto index back to 0 ? [/quote] I'm no expert; but if worst comes to worst I believe emptying the table will set it back to 0. As in "Empty" rather then delete all the data. SQL: TRUNCATE TABLE <TABLENAME>
  3. I've been working on something which takes multiple PNG Transparent images and layers them on top of each other to make another transparent image. So far it kind or works, however the background turns completely black and I'm not sure what to do from here. So my main question is, how do I make a transparent background without killing my antialising (I don't want to set a transparent color and place that color as background)? HERE IS MY CODE: $im = @imagecreatetruecolor(200, 200) or die("Cannot Initialize new GD image stream"); // Loading Images $red = imagecreatefrompng("red.png"); imagealphablending($red, true); imagesavealpha($red, true); $blue = imagecreatefrompng("blue.png"); imagealphablending($blue, true); imagesavealpha($blue, true); $green = imagecreatefrompng("green.png"); imagealphablending($green, true); imagesavealpha($green, true); // Flattening layers imagecopy($blue, $red, 0, 0, 0, 0, 200, 200); imagecopy($green, $blue, 0, 0, 0, 0, 200, 200); imagecopy($im, $green, 0, 0, 0, 0, 200, 200); imagealphablending($im, true); imagesavealpha($im, true); // Save image to disc imagepng($im, "final.png"); // Deallocate memory of image imagedestroy($im);
×
×
  • 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.