PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
hey yall. i use a winamp plugin to report the currently playing song to a php file which draws an image displaying the song name that i use in my signature on a lot of bulletin boards. if that was confusing, here it is:
what i want to do is make it so the song name scrolls like as if i was using the <marquee> tag in html. but i cant figure out how to do it and keep it as a single image to use on other websites. my friend said i could prolly write a script something about the GD2 image library something something but im lost. any ideas?
also as a side note, when linking this image i currently link it as http://myip/np.[b]php[/b] how can i output it to a file so i can link it as http://myip/np.[b]png[/b]?
well the reason i want to do this with php is bc i dont know any java or flash and its already in php and i want to keep it so i can link it with a simple image tag so i can display it easily. i dont think this can be done as easily with java or flash, though i dont know cause i dont know them. an animated gif wouldnt be bad but how would i get it to update the song name without doing it manually?
Honestly, I think this is probably a lot harder than you're anticipating. Perhaps even more so than making a bunch of gifs.
To do it with PHP, you'll have to pre-build the images -- no different than building them by hand in Photoshop or somesuch. PHP just doesn't have real-time dynamic animation abilities that I've ever heard of anyone using successfully. Anyone else here know how to do it live?
Honestly, if you have access to flash, this type of animation would take you about 3-4 hours to write (at worst) starting from a zero flash knowledge point.
Use PHP to generate the img tag, passing the name of the song to flash. Flash handles the scroll.