Re: [PHP-DB] Manipulate an image automatically

2006-04-13 Thread Anthony Lee
What is the quickest way to manipulate an image? With ImageMagick from PHP: Lot's of good examples here: http://www.cit.gu.edu.au/~anthony/graphics/imagick/annotating/#watermarking -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] flash/php problem

2006-03-10 Thread Anthony Lee
Actually, I don't see why either method would work: The SWF is in a static HTML page. It requests an mp3, and loads it without having to refresh. So it needs an mp3 returned, not another SWF. Updating the DB from the SWF call sounds cool, but serverside wise requires the .htaccess updated to

Re: [PHP-DB] flash/php problem

2006-03-08 Thread Anthony Lee
query("update hitcounter set plays = plays+1 where file = {$_GET['file']}"); header("Location: play.swf?file={$_GET['file']}"); Sorry I didn't read this thread thoroughly enough. This looks like a good solution to me. You just need to have the swf make the request and return the mp3 to the swf

Re: [PHP-DB] flash/php problem

2006-03-08 Thread Anthony Lee
On second thoughts you probably better off with load variables. Flash: var info:String = "YoMama"; var id:Number = 12; loadVariables("http://myserver.com/my_db_update_page.php?id="+id+"&info="+info+"";, this); PHP [my_db_update_page.php]: The function for checking the result is in the flash ma

Re: [PHP-DB] flash/php problem

2006-03-08 Thread Anthony Lee
how can i update my DB through Flash, using PHP. The easy way... Flash: var info:String = "YoMama"; var id:Number = 12; getURL("http://myserver.com/my_db_update_page.php";, "_self", "GET"); PHP [my_db_update_page.php]: This won't tell you if there has been an error during the update. If you

Re: [PHP-DB] flash/php problem

2006-03-08 Thread Anthony Lee
This question isn't really a PHP-DB thang is it? Anyway, it sounds like you have a lot of swfs on the page. One for each song, is that right? In that case your best bet would be something like what you already have: i.e. push the variable into flash from the page that contains it. If you on