[PHP] swf to jpg using ming/imagemagick?
Hey- I'm interested in taking a flash file and somehow extracting a frame of it, saving that frame as a jpg. I see the swf and ming functions in the php docs but it appears that it cannot read an existing SWF. Even if it could, I'm not sure how much help that would be. I've also investigated using imagemagick for this,b ut no luck there, either. Does anyone know if this is possible? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] imagepsloadfont returns wrong datatype
Hi- I *finally* got imagepsloadfont() to work on my Mac OS X box (it helps if you actually have a .pfb file). Now I'm having problems with another aspect of imagepsloadfont(). The docs say it should return an int, however it's returning a resource. I'm guessing this is why imagestring and imagepstext aren't working - because they require an int for the font. Is this a bug? Am I doing something wrong? Am I not understanding the docs? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] imagepsloadfont on mac os x
Hi- I'm trying to get imagepsloadfont() to work. I'm on OS X and know next to nothing about font types or how the Mac might handle them differently. Basically, using the below code, I'm trying to call up Skia.dfont, one of the fonts that comes with OS X. The code I'm using is straight from the manual, with my font path substituted: ?php header (Content-type: image/jpeg); $im = imagecreate (350, 45); $black = imagecolorallocate ($im, 0, 0, 0); $white = imagecolorallocate ($im, 255, 255, 255); $font = imagepsloadfont (/Libarary/Fonts/Skia.dfont); // or locate your .pfb files on your machine imagepstext ($im, Testing... It worked!, $font, 32, $white, $black, 32, 32); imagepsfreefont ($font); imagejpeg ($im, , 100); //for best quality...your mileage may vary imagedestroy ($im); ? However, I get the message error loading font. I've compiled --with-gd --with-t1lib, etc. so I know the command is recognized. This is driving me nuts. Any clues? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] embedding PHP in MySQL
I've been working on this for a few days and can't get it. I would like to stick some php code into a sql databases and be able to evaluate it when it's called up. Foe example, let's say there's some text in a table in MySql that says blah blah blah ? $mysql_query(SELECT * FROM X WHERE 1); $someothercode; ? blah blah blah blah blah. I wan the end, displaying result to be: blah blah blah {executed php code} blah blah blah blah. Now, I know that eval() is involved, but I don't want it accidentally executing code outside the ? ? so I need a way to pluck out bits of code, evaluate them, and put them back in. Any ideas? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] htmlentities() and the macintosh character set
Hello- I have a request but don't know where to send it. Thus, it ends up here. Alternately, I'm looking for some solutions: The request: Can the macintosh character set be added as an option for htmlentities() and other commands? That would be so helpful for our mac-based company. The problem: I'm fairly new to php and have found that the macintosh character set is pretty different from other standard sets, so when someone in our company enters an em-dash (an extended dash, that would be represented as emdash; in html) into our SQL database, browsers display it as Ñ (Ntilde;) because that's the correct mapping in other, standard sets. Of course, I could do a replace on that character, but there are another 6 characters that I know of that will cause problems, and probably more beyond that. The quick and good way is to convert with htmlentities(), but the mac charset is lacking. Any suggestions how to fix this? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php