Jump to content

b1011

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

b1011's Achievements

Member

Member (2/5)

0

Reputation

  1. I have a "canvas" that is a solid white 110x110 rectangle (its a png file). I want to draw another PNG file on top of it using GD in php however it doesn't draw the alpha values correctly, and I need it to keep the alpha values (so some parts are transparent, etc) but it wont work. Is there anyway to acheive this? If so, could you point me in the right direction?
  2. torb. your idea worked like a charm. Thank you alot. this has been a problem for a while.
  3. I did the mistake of writing my whole website on one index page :-\ The problem is, each page uses if ($_GET['pg']==page){ #code } But if it is not a page, it doesn't execute anything. and the whole site is messed up. Is there anyway to make it so if $_GET['pg'] is not a valid page, then go to a 404 script?
  4. for ffmpeg, its an installer right? meaning id need my host to have it installed? Also, im assuming all videos need to be in mpeg format?
  5. my friend was having this problem You can use $_GET in an include function (.php?something=123) Youll need to include the file then on that file have a function in witch you can pass the variable to.
  6. I am currently adding a video feature to my site, and i need to know a couple things: 1) How can i get a videos duration 2) how can i get a video thumb nail like youtube and other popular video websites 3) And if possible how can i make a custom media player aswell. I know this is alot to ask but it would really help if you could give me any ideas. Thanks in advance.
  7. I have the following script: $color=rand(0,9); switch ($color){ case 0: $cc="#CCFFCC"; break; case 1: $cc="#CC6600"; break; case 2: $cc="#0000CC"; break; case 3: $cc="#CC00FF"; break; case 4: $cc="#00CC66"; break; case 5: $cc="#CCCC00"; break; case 6: $cc="#616D7E"; break; case 7: $cc="#25383C"; break; case 8: $cc="#3BB9FF"; break; case 9: $cc="#9E7BFF"; break; } witch goes to 34 outcomes. How can i make it rerandomize if it was already made? (this was in a while statement) Can i set up an array with the current colors? But how can i check if data exits in an array.
  8. You know how you can do this: array("#ff0000","#ff8800","#0022ff","#33ff33") Well how could i set it up so that in a while statement it adds to the array? And if its possible how can i make it add a random color (#ff0000 etc.); Any ideas? Did i explain good enough?
  9. Is is possible to get PHP to make a pie graph/chart with some data? or do i need to make every "Frame" of the pie graph. Im making a poll on my website and it would be great if i could display a pie graph of the data.
  10. Hello. My website uses sessions for the login functions and then they expire after a while so then it basically logs you out. How can i get it so when they expire they execute some code, see i want to have an online users list and ill need to execute some mysql code when the session expires or they log-off. is this possible? if not, are there any alternatives?
  11. Image magic? whats that?
  12. I have a page with 3 images on it using img src and i was windering if it is possible to change that page into a png type using header('Content-type: image/png'); but it wont let me because im using print. any other ways? Or how do you position images on a png content type?
  13. Im making synamic images, and i need more than one image in the overall png image, created by php. any ideas on how i can position 3 pictuers in a row to make a png image, with php?
  14. shows online status from a mysql database basically i need to fin the end of the url. meaning from http://revelgames.byethost7.com/gmmessengerstatus.php/brad.png i need to call after the last / you know what i mean?
  15. thanks, but i guess it didnt work im trying to make a "hidden" dynamic image i can use for a forum. http://revelgames.byethost7.com/gmmessengerstatus.php/brad.png?user=brad i was hoping that that would return brad.png, instead of gmmessengerstatus.php
×
×
  • 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.