Php album function implementation (including php image upload, background management, browsing and deletion) Tutorial example ,. Php album function implementation (including php image upload, background management, browsing and deletion) Tutorial example, album function implementation (including php image upload, background management, browsing and deletion) the tutorial example includes five php photo album functions (including php image uploading, background management, browsing, and deletion,
The following is an example of how to implement the photo album function (including php image upload, background management, browsing, and deletion:
I. album homepage
Album homepage The simple photo album.
"; If ($ page! = Ceil ($ temp [0]/8) {$ current_size = 8;} else {$ current_size = $ temp [0] % 8 ;} if ($ current_size = 0) {$ current_size = 8 ;}for ($ I = 0; $ I
$ Temp [1]; if ($ flag [0]> 180 | $ flag [1]> 100) {echo "width = 180 height = ". ceil ($ flag [1] * 180/$ flag [0]);} echo "border = \" 0 \ ">" ;}else {echo "";}}} echo"";} Echo"
"; $ Prev_page = $ page-1; $ next_page = $ page + 1; if ($ page <= 1) {echo" first page | ";} else {echo "$ PATH_INFO? Page = 1'> first page | ";} if ($ prev_page <1) {echo" previous page | ";} else {echo" $ PATH_INFO? Page = $ prev_page '> Previous page | ";} if ($ next_page> $ p_count) {echo" next page | ";} else {echo" $ PATH_INFO? Page = $ next_page '> Next page | ";} if ($ page >=$ p_count) {echo" last page
\ N ";}else {echo" $ PATH_INFO? Page = $ p_count '> last page
\ N ";}?>
Upload Files
II. background management
Background processing page
"; Echo" the specified file has been uploaded successfully! "; Echo""; Echo" Click Back ";} failed to upload the else {echo" file! ";}}?>
3. Upload Images
Album Upload page