Jump to content

b1011

Members
  • Posts

    29
  • Joined

  • Last visited

    Never

Everything posted by b1011

  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
  16. what function returns the name of the current php file? ??? thanks if you help
  17. I am wondering. how do you make dynamic images, that show statistics. I have an online game, and i want to make a dynamic image to show the people logged on. I can handel that, but i need to know how to make a dynamic image. thanks! also. how do you make it so its like ...com/files/index.php/online.gif because i want the dynamic picture on a forum that does not allow it, but i now there are ways of going around that. but how?
  18. What would you use too ask if one string exists in another string?
  19. i am using php and mysql. i need this in Mysql: if value exists in colum 'gangname' then execute code. any ideas? do you know what i mean? im adding a new row, and i dont want the gangname the same as any other ones, so i need to check if the name exists so i DONT execute code.
  20. b1011

    Problems

    why isnt this working? $quim=mysql_query("SELECT gangid FROM gangs WHERE gangname={$r['gang']}"); $rick=mysql_fetch_array($quim); when i take out the WHERE part, the script works (but not what i need it to do) and when i add the WHERE it glitches up. i need to get the value of gangname from table gang and store it in a variable.
  21. How to you find a value at a certain spot in an array? i need to find a value in gangid in table gang where gangname = 0. how do i make mysql (also using php) return the vallue at that section?
  22. yes. it would require a refresh.
  23. has anyone seen those "live" pictures that have stats on them from a PHP page? how can i make one using variables from a PHP web page? prferably BB code. you know what i mean?
  24. it might not b secure, but you could pass it along using $_GET[''] things.
×
×
  • 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.