Armenian Knowledge Base

Armenian Knowledge Base (https://forum.armkb.com/)
-   Showcase (https://forum.armkb.com/showcase/)
-   -   MegaUploader.Net (https://forum.armkb.com/showcase/28510-megauploader-net.html)

ExtremeSM 05.05.2007 17:34

MegaUploader.Net
 
Инч карцики ек? :cool:
тазайацрел ем :)

Mesrop 07.05.2007 12:50

http://megauploader.net/uploaded/uploaded_by_mesrop.php
sortutyun a :)

ludwig 08.05.2007 17:45

Quote:

Originally Posted by Mesrop (Post 570022)

khi menak sortutyun a :)

ExtremeSM 09.05.2007 10:44

chmod luboj dzevi porcel em anem, [email protected] lriv vor haneci, vabshe voch mi ban chbacec O.o

ExtremeSM 09.05.2007 10:59

ogni eli plz... inchqan porcelem dzem et chi stacvum :(

ludwig 09.05.2007 15:12

du el [email protected]@ vor PHP [email protected] paki uploadi hamar heto vor gtnes vonts en [email protected] pakum nor ktoghnes PHP filer upload anel

ExtremeSM 09.05.2007 16:43

de es el kak raz et ei harcnum vonc pagem vabshe... meka php fileri kariq chka upload anel! mi 3 jama et em man gali, haziv mi tex qta [email protected] pageci php, pl, meke cgi [email protected] baic asum em eli es ham upload papki vric hamel fajli vric haneci [email protected] meka @lnum er phpinfo-n ashxatacnel...

Mesrop 10.05.2007 09:32

xoski nayi.
amenaparz orinakneric
Quote:

$_FILES['userfile']['type']

Mime-тип файла, в случае, если браузер предоставил такую информацию. Пример: "image/gif".
aysinkn ete uzum es nenc anes vor menak GIF Upload lini,
anumes
if($_FILES['userfile']['type']=="image/gif"){
/* copy script */
}
else {echo "wrong format!";}

urish mimetypes karoxes gtnl orinak http://www.codenet.ru/webmast/cgi/mimet.php

ExtremeSM 13.05.2007 21:56

joxovurt, опять проблемы :D
чето у меня с руками не то zzzzz :)
hima el henc uploaderi heta problem, upload anuma baic menak poqr [email protected] :((((( mi hat 15kb fajl porceci qcem arden chi qcum, ha gnum gnum gnuma mi kes jam где-то, heto qcuma page cannot pe displayed... nayum em vrode et language-i patcharova =\\\ hin kodov, [email protected] aranc languageneri er ashxatum, dranov @lnuma...

Intel 15.05.2007 04:36

Quote:

Originally Posted by ExtremeSM (Post 571682)
joxovurt, опять проблемы :D
чето у меня с руками не то zzzzz :)
hima el henc uploaderi heta problem, upload anuma baic menak poqr [email protected] :((((( mi hat 15kb fajl porceci qcem arden chi qcum, ha gnum gnum gnuma mi kes jam где-то, heto qcuma page cannot pe displayed... nayum em vrode et language-i patcharova =\\\ hin kodov, [email protected] aranc languageneri er ashxatum, dranov @lnuma...

Es porceci, arec upload.

imijayloc, izur es file-i anuni himan vra URL karucum. 2 hat nuyn anunov file chi kareli upload anel.

ExtremeSM 15.05.2007 09:36

Quote:

Originally Posted by Intel (Post 572082)
Es porceci, arec upload.

imijayloc, izur es file-i anuni himan vra URL karucum. 2 hat nuyn anunov file chi kareli upload anel.

sry, chhaskaca [email protected]
eli vor chi kareli, file_exist em drel, ete ka asuma exists... ete chka nor uploada anum...

Intel 15.05.2007 11:06

Entadrenk [email protected] uni Nude_Britney_Spears.jpg [email protected], petrosn el uni et file-ic(Nuyn anunov), hima irank uzum en upload anen et [email protected], bayc chen kara

Mesrop 15.05.2007 11:23

Quote:

Originally Posted by Intel (Post 572326)
Entadrenk [email protected] uni Nude_Britney_Spears.jpg [email protected], petrosn el uni et file-ic(Nuyn anunov), hima irank uzum en upload anen et [email protected], bayc chen kara

:D kam server.exe :D

Mesrop 15.05.2007 11:24

ludshe file-n Md5 ara, henc tenum es nuyn Hash-ov file en up arel, talis es hin file-i URL-n ;) vor erkrord angam up chanes ;)

ExtremeSM 15.05.2007 12:13

[email protected] chem haskanum, inchi hamar 2 hat anen nuyn anunov? O.o

Intel 15.05.2007 13:01

Quote:

Originally Posted by ExtremeSM (Post 572369)
[email protected] chem haskanum, inchi hamar 2 hat anen nuyn anunov? O.o

Պատահաբար:

Ինչ ա, հնարավոր չի՞:

ExtremeSM 15.05.2007 15:44

hnaravora baic... ete tenca, ba vonc lini [email protected], uzumes ases ete arden tenc anunov fajl ka, rename ani upload aneluc te vonc? :)

P.S.
indznic cragravorox dus chi ga... :D
localhosti vra test aneluc chem haskanum inchi chi anum... ho etel internetic chi... miqich mnuma, heto tenum em 15kb-anoc fajlic 5kb nor qcela... inch vor shata kaxum imho :(

Mesrop 15.05.2007 16:40

Quote:

Originally Posted by ExtremeSM (Post 572529)
hnaravora baic... ete tenca, ba vonc lini [email protected], uzumes ases ete arden tenc anunov fajl ka, rename ani upload aneluc te vonc? :)

P.S.
indznic cragravorox dus chi ga... :D
localhosti vra test aneluc chem haskanum inchi chi anum... ho etel internetic chi... miqich mnuma, heto tenum em 15kb-anoc fajlic 5kb nor qcela... inch vor shata kaxum imho :(

xoski rename ara mihat ID dir... ludshe tenc, qan pryamoy... :D
Quote:

[email protected] chem haskanum, inchi hamar 2 hat anen nuyn anunov? O.o
xoski du unes qo nkare "yes.jpg" yesel unem im nkare "yes.jpg"
yes upload anem im nkare, itogum qo nkare tam urishnerin? te vonc? :D

ExtremeSM 15.05.2007 16:47

Quote:

Originally Posted by Mesrop (Post 572540)
xoski rename ara mihat ID dir... ludshe tenc, qan pryamoy... :D

xoski du unes qo nkare "yes.jpg" yesel unem im nkare "yes.jpg"
yes upload anem im nkare, itogum qo nkare tam urishnerin? te vonc? :D

looool :D :D :D
ay et rename-i [email protected] lav chem patkeracnum vonc anem, vor ete 30 hat yes.jpg upload anen, sax @lnen tarber anunnerov... session_id-ov dnem [email protected]? :))))) tenc chisht klni?

Mesrop 15.05.2007 21:46

Quote:

Originally Posted by ExtremeSM (Post 572547)
looool :D :D :D
ay et rename-i [email protected] lav chem patkeracnum vonc anem, vor ete 30 hat yes.jpg upload anen, sax @lnen tarber anunnerov... session_id-ov dnem [email protected]? :))))) tenc chisht klni?

:) etqanel djvar ban chka :)
Quote:

$random=rand(1000000, 9999999);
$filename=$random."-".$filename;
xoski amenaprimitiv dzeveric meke... :)

Silver 15.05.2007 22:17

Vay vay vay!

Incompetence!

Silver 15.05.2007 22:23

Isn't it much better to use an autoincrementing ID for any uploaded file and store its filename as a non-unique string to be sent in HTTP headers when the file with the specific ID is requested for a download?

Generating a random number has the same problem (although with seemingly less probability) as identifying files with their filenames.

Mesrop 16.05.2007 06:43

Quote:

Originally Posted by Silver (Post 572708)
Isn't it much better to use an autoincrementing ID for any uploaded file and store its filename as a non-unique string to be sent in HTTP headers when the file with the specific ID is requested for a download?

Generating a random number has the same problem (although with seemingly less probability) as identifying files with their filenames.

imanalov vor ira mot file-neri meja pahvum sax, vochte bazayum, u ira scripti konstrukcyan, drahamar tenc aseci. parza vor tufta dzev a etig :)
2ExtremeSM: mysql sovori :)
isk en harce te icnh girq kardas, vayte forumum tenc topikner kgtnes... :)

Silver 16.05.2007 08:47

De MySQLy tarberakneric mekn a.
Kara voobsche DBMS chlini hetevum.

Intel 16.05.2007 10:59

Quote:

Originally Posted by Silver (Post 572846)
De MySQLy tarberakneric mekn a.
Kara voobsche DBMS chlini hetevum.

Ete menak Auto Increment-i hamar a petk, uremn, IMHO, DBMS petk chi, bayc asenk tarber tesaki statistikaner havaqelu, u hetagayum zargacnelu hnaravorutyun unenalu hamar arden petq a DBMS. Bayc skzbic petk a mi hat lav RTFM. ;)

Н.К.Рерих 16.05.2007 13:21

designcollector.ru porcel eq [email protected] xrgeq? Ete [email protected] ga, karoxa avelacnen iranc mot.

ExtremeSM 16.05.2007 16:05

Mesrop arden sksel em sovorel :D baic internetum lav hasce en asel @ndex... enqan vor [email protected] vor sovorem basic oprecianer anel, kpnel ban pahel anjatvel, [email protected] indz tvuma kga jamanaki het, vonc vor minchev hima sovorel em eli... ;)

ExtremeSM 16.05.2007 16:11

joxovurt, "offtop - inchi chi:
<?php
ini_set(
'upload_max_filesize', '25M');
?>
[email protected] anum? serverica pagac te vonc? '

Intel 16.05.2007 17:31

Quote:

Originally Posted by ExtremeSM (Post 573226)
joxovurt, "offtop - inchi chi:
<?php
ini_set(
'upload_max_filesize', '25M');?>
[email protected] anum? serverica pagac te vonc? '

vorosh settingner karogh en apply chlinel, kam miangamic apply chlinen, orinak:
  • post_max_size
  • upload_max_filesize
  • ...

Karogh es .htaccess file-i mej gres, bayc dra hamar petk a tvyal dir-i hamar
AllowOverride lini Options-i vra(httpd.conf-um), Windows-i tak, ete chem skhalvum, default-ov tenc a, nix system-neri hamar petk a inqd gres, hamenayn deps porci:

Et scriptid dir-um .htaccess file sarqi, mejn el gri.
Code:

php_value upload_max_filesize 25M
heto et dir-um code-it mej
PHP Code:

ini_get('upload_max_filesize'); 

u asa inch eghav.


People, this guy is really crazy, guess what is this??
PHP Code:

[FONT=Courier New][SIZE=1][COLOR=#ff0000]<?[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=1]php
ini_set
([/SIZE][/FONT][FONT=Courier New][SIZE=1][COLOR=#008000]'upload_max_filesize'[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=1], [/SIZE][/FONT][FONT=Courier New][SIZE=1][COLOR=#008000]'25M'[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=1]);[/SIZE][/FONT][FONT=Courier New][/FONT][FONT=Courier New][SIZE=1][COLOR=#ff0000]?>[/COLOR][/SIZE][/FONT]

if no, just post this lines of BB code.

ExtremeSM 17.05.2007 13:59

?????
et im masin eir crazy? xi?!!!

Intel 17.05.2007 14:58

Vortev dzerov guyner es talis code-in, karas sagh [email protected] -i [email protected] vercnes, automat kgunavori.

ExtremeSM 17.05.2007 16:43

imaci nor xosa lol....
copy [email protected] inchi hamara ba?!
:D

ExtremeSM 17.05.2007 16:43

Nushpere-ic copy paste araca, voch te gunavorac dzerov...

Mesrop 17.05.2007 21:28

xpeq irar?! :D
[PHP] tag rulez :D

ExtremeSM 20.05.2007 08:19

Sax hech... rename-i hamar funkcia ka te henc minchev upload [email protected] grem $filename = $rand . "-" . $filename; ?

Mesrop 20.05.2007 17:43

Quote:

Originally Posted by ExtremeSM (Post 574403)
Sax hech... rename-i hamar funkcia ka te henc minchev upload [email protected] grem $filename = $rand . "-" . $filename; ?

rename(); :D
vor uplaodi vaxtel anes, vochmek chi nexana :)

ExtremeSM 20.05.2007 19:24

loool :D mers...

ExtremeSM 20.05.2007 20:29

$nm = $_FILES['userfile']['name'];
$rnd = rand(1,999999);
$rnm = $rnd."-".$nm;
rename(
$_FILES['userfile']['name'], $rnm);
$url = "http://megauploader.net/uploaded/".$rnm;

senc porceci chi @lnum =\
rename($nm, $rnm); el em porcel, menak url-na poxum... fajli [email protected] vonc pti poxi?

Mesrop 21.05.2007 13:12

lool. :D
sxal texic es rename anum :D
nayi. copy-i mejic karox es senc anel.

PHP Code:

$nm $_FILES['userfile']['name'];
$rnd rand(1,999999);
$rnm $rnd."-".$nm;
copy($_FILES['userfile']['tmp_name'], "uploaded/".$rnm);
$url "http://megauploader.net/uploaded/".$rnm


ExtremeSM 21.05.2007 14:14

ok, mersi cavt tanem, [email protected] dra nman mi ban areci stacvav...
skzbic sxal ei jogel menak anunn er poxum ([email protected])...


All times are GMT. The time now is 17:19.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.