简体   繁体   中英

how to add resize photos to my site ? , how to ftp photos to server

I have the necessity to upload some photos to my server (giving users the capability to), but before doing it, I need the user to be able to resize the photo, like they do in picasa when the pic is to big, or online in this sites, reducePhoto.com or shrinkPictures.com

that is task one... now for the second task, need to add some ftp functionality, so the user can upload the photos to the server(like filezilla style, but with some web site front page that the user just select what to upload, and clicks "upload")

  • hopefully using PHP

Thanks!

I'm not a php expert, but it looks like there are image functions available. See the php api:

http://vn2.php.net/manual/en/book.image.php

and notably, the imagecopyresized function:

http://www.php.net/manual/en/function.imagecopyresized.php

As for uploading files via a website form..there are tons of exmamples of this online. You should try google first.

http://www.tizag.com/phpT/fileupload.php

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM