Keywords: getimagesize flv
Description: I'm trying to load an swf file and dynamically determine its height and width. Is there something anyone knows about that can read the dimensions of the swf file using PHP? ive been
I'm trying to load an swf file and dynamically determine its height and width. Is there something anyone knows about that can read the dimensions of the swf file using PHP?
ive been searching the php manual, but i cant find a function, and i am wondering if it exists or is possible. is there a function that changes the dimensions of an image file. i am displaying the original dimensions in text boxes, and i want the user to be able to change the values and submit. on submit, i want the dimensions to be permanently altered.
I have a set of three scripts (on a Linux server with PHP 4.4.9) which allow users to upload images to my site via an online image editor API and I'm running into some odd behavior. The basic functions of the the scripts are:upload1.php: Upload form takes user & image to the editor's site, where they edit & resize the image. Image is exported to upload2.php.upload2.php: Uploaded file is saved with move_uploaded_file(). User is taken to upload3.php with header("Location. ").upload3.php: Image dimensions are retrieved with getimagesize(). If dimensions are right, new image is displayed. If dimensions are wrong, image dimensions are displayed along with a "Try Again" button. Image is deleted and user is taken back to upload1.php to start process over.Everything works perfectly unless the Try Again route is taken. Then upload3.php displays the dimensions of the previously-uploaded, incorrect image (along with the "Try Again" button), not the current one (btw, they're both given the same name). However, if I refresh the page, the newly uploaded file is displayed and the upload is declared a success.I use clearstatcache() after every file_exists() call, so info about the old file should no longer be available. It's almost as if upload3.php executes before upload2.php is done so it's accessing the old file. but that doesn't even make sense, because the old file was deleted the first time through. The more I think about this, the more impossible it seems.
I've got a multiple image uploader script deployed across a few of my sites that up until not too long ago worked really well. It essentially allows you up to 5 images at a time, downsizes them to (for example) 640 X 480, then crops square thumbnails from those to (for example) 100 X 100, pops 'em up on the server, puts them in a database, and that's that.
I have an application where users can upload video files of any size, and I'd like to be able to determine the the height/width of a Flash video file (flv or f4v) from a PHP script so that I can size the player appropriately. I'd love a pure PHP solution, but I'd be open to shelling out to a command line tool and parsing the output (if such a tool exists).
I know that can get the dimentions of an image and a video file, but if it possible to get the dimensions of a swf ( flash) file ?