Jump to content
php.lv forumi

Upload Service pielāgošana


archee

Recommended Posts

Tātad ir Upload Service, bet būtu vajadzīga palīdzība ar tā pieregul�#8220;šanu, proti,

1. Vajadz�#8220;tu uztaisīt tā, ka zem "Dz�#8220;šana: Iesl�#8220;gta" jaunā rindā rādītu visu augšuplād�#8220;to failu svaru (pavisam kopā)

2. Kā arī vajadz�#8220;tu uztaisīt, lai viņš augšuplād�#8220;tos failus (to linkus) raksta augš�#8220;jā rindā, nevis jauktā secībā..

Tās itkā ir tās lietas, ar kurām netieku galā, jo PHP esmu iesāc�#8220;js, bet gribas iemācīties to ko nezinu.. tā kā, ja kādam ir idejas, tad lūdzu postojiet..

Edited by archee
Link to comment
Share on other sites

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

1) Ar http://lv.php.net/opendir nolasi direktorijas saturu, ciklē cauri tam un http://lv2.php.net/filesize ieguusti katra faila izmeeru. Tad sasumee un noformee kaa tev vajaga. Varbuut ir arii kaads labaaks veids.

 

2) Ielasi visus failu nosaukumus masiivaa. Katram klaat veel pievieno arii http://lv2.php.net/manual/en/function.filemtime.php, un tad ar http://lv2.php.net/manual/en/function.krsort.php sakaarto. Aptuveni taa.

Link to comment
Share on other sites

maitas :D mjaa double extension faili... buus jaaliek cheks.. a ko juus pashi iesakat mazie hax0ri ? :D skatos viens bija iemetis .php.png.. :D atverot failu man paraadijas afigenija izveelne ar lietaak kaa "delete directory" utt... :) srazu nonesu nost up servisu un failus izdzēsu..

P.S. Ir log fails un shas sametishu visas negeelu IP :)

February 21, 2007 / 03:11:29pm - up_service.jpg image/pjpeg uploaded by 81.198.227.34

February 21, 2007 / 06:28:53pm - screen_xstyle.jpg image/pjpeg uploaded by 81.198.227.34

February 22, 2007 / 01:26:20pm - lightbox2.02.zip application/x-zip-compressed uploaded by 81.198.227.34

February 22, 2007 / 01:27:11pm - lightbox_1.jpg image/pjpeg uploaded by 81.198.227.34

February 22, 2007 / 01:27:19pm - lightbox_2.jpg image/pjpeg uploaded by 81.198.227.34

February 22, 2007 / 04:42:11pm - pokemonize.exe application/octet-stream uploaded by 87.110.17.132

February 22, 2007 / 04:42:39pm - visitor.zip application/x-zip-compressed uploaded by 87.110.17.132

February 22, 2007 / 04:42:55pm - visitor.zip application/x-zip-compressed uploaded by 87.110.17.132

February 22, 2007 / 05:18:40pm - lohs.php uploaded by 81.198.117.143

February 22, 2007 / 05:19:10pm - lohs.php application/x-php uploaded by 81.198.117.143

February 22, 2007 / 05:20:35pm - www.php.gif image/gif uploaded by 81.198.117.143

February 22, 2007 / 05:25:12pm - test.php application/octet-stream uploaded by 87.110.132.114

February 22, 2007 / 05:25:33pm - test.php.png image/png uploaded by 87.110.132.114

February 22, 2007 / 05:27:43pm - hello.php application/octet-stream uploaded by 159.148.117.36

February 22, 2007 / 05:56:15pm - test.php.png image/png uploaded by 87.110.132.114

Edited by archee
Link to comment
Share on other sites


×
×
  • Create New...