yeah saw your post on flashcoders before. have you not had any luck? i've never done this sort of thing before. i've got one script that writes data from a form to xml which i could send you if thats of help? dave
> From: [email protected] > To: [email protected] > Date: Tue, 29 Sep 2009 12:29:48 +0100 > CC: > Subject: [Flashcoders] FW: incorperating automatic thumbnail generator php > script for my flash cms > > > > > > A little while ago flep studio released a free cms and xml generator for > as3; > > > > http://www.flepstudio.org/forum/flepstudio-utilities/4739-flash-xml-editor.h > tml > > > > to build a gallery from the xml file it outputs is fairly simple but i > would like it to create thumbnails on the fly, when the client uploads the > large images a set of thumbnails is automatically create and place in a > thumbs folder in the category folder that the cms creates, it would also be > good to update the xml too, > > i've done a little research and there are some php scripts such as; > > http://www.anyexample.com/programming/php/php_multiple_photo_thumbnail_gener > ator.xml > > > > that seem to do what im after, > > > > i suppose i need to incorperate that into the upload.php file in the cms? > > > > > > > > <?php > > > > //path to storage > > $storage = $_REQUEST["folder"]; > > > > //path name of file for storage > > $uploadfile = "$storage/" . basename( $_FILES['Filedata']['name'] ); > > > > //if the file is moved successfully > > if ( move_uploaded_file( $_FILES['Filedata']['tmp_name'] , $uploadfile ) ) > > { > > $answer="ok"; > > echo "answer=".$answer; > > > > //file failed to move > > }else{ > > $answer="no"; > > echo "answer=".$answer; > > } > > > > ?> > > > > many help much appreciated, > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _________________________________________________________________ MSN straight to your mobile - news, entertainment, videos and more. http://clk.atdmt.com/UKM/go/147991039/direct/01/_______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

