Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Showcase
Register

Reply
 
LinkBack Thread Tools
Old 15.05.2007, 14:01   #16
Дошкольник
 
Join Date: 10 2004
Location: Yerevan
Age: 29
Posts: 116
Downloads: 8
Uploads: 0
Reputation: 2 | 0
Default

Quote:
Originally Posted by ExtremeSM View Post
[email protected] chem haskanum, inchi hamar 2 hat anen nuyn anunov? O.o
Պատահաբար:

Ինչ ա, հնարավոր չի՞:
Reply With Quote
Old 15.05.2007, 16:44   #17
I Love BMW!
 
ExtremeSM's Avatar
 
Join Date: 11 2006
Location: reload();
Posts: 63
Downloads: 2
Uploads: 0
Reputation: 0 | 0
Default

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...
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
__________________
http://megauploader.net/ ------ new designed, new engine powered now still free, fast and without registration...
Reply With Quote
Old 15.05.2007, 17:40   #18
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

Quote:
Originally Posted by ExtremeSM View Post
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...
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...
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?
Reply With Quote
Old 15.05.2007, 17:47   #19
I Love BMW!
 
ExtremeSM's Avatar
 
Join Date: 11 2006
Location: reload();
Posts: 63
Downloads: 2
Uploads: 0
Reputation: 0 | 0
Default

Quote:
Originally Posted by Mesrop View Post
xoski rename ara mihat ID dir... ludshe tenc, qan pryamoy...

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?
looool
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?
Reply With Quote
Old 15.05.2007, 22:46   #20
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

Quote:
Originally Posted by ExtremeSM View Post
looool
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...
Reply With Quote
Old 15.05.2007, 23:17   #21
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

Vay vay vay!

Incompetence!
Reply With Quote
Old 15.05.2007, 23:23   #22
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

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.
__________________
http://sssilver.googlepages.com/blog...ner_300x30.jpg

http://www.hra.am/img/Gulyan1.gif

You must spread before giving to Silver again.
Reply With Quote
Old 16.05.2007, 07:43   #23
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

Quote:
Originally Posted by Silver View Post
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...
Reply With Quote
Old 16.05.2007, 09:47   #24
Easy rider
 
Silver's Avatar
 
Join Date: 11 2005
Location: tristeza
Age: 32
Posts: 1,082
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default

De MySQLy tarberakneric mekn a.
Kara voobsche DBMS chlini hetevum.
Reply With Quote
Old 16.05.2007, 11:59   #25
Дошкольник
 
Join Date: 10 2004
Location: Yerevan
Age: 29
Posts: 116
Downloads: 8
Uploads: 0
Reputation: 2 | 0
Default

Quote:
Originally Posted by Silver View Post
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.
Reply With Quote
Old 16.05.2007, 14:21   #26
Николай Константинов
 
Н.К.Рерих's Avatar
 
Join Date: 01 2002
Location: Гималаи
Age: 33
Posts: 5,571
Downloads: 1
Uploads: 0
Blog Entries: 1
Reputation: 36 | 5
Default

designcollector.ru porcel eq [email protected] xrgeq? Ete [email protected] ga, karoxa avelacnen iranc mot.
Reply With Quote
Old 16.05.2007, 17:05   #27
I Love BMW!
 
ExtremeSM's Avatar
 
Join Date: 11 2006
Location: reload();
Posts: 63
Downloads: 2
Uploads: 0
Reputation: 0 | 0
Default

Mesrop arden sksel em sovorel 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...
Reply With Quote
Old 16.05.2007, 17:11   #28
I Love BMW!
 
ExtremeSM's Avatar
 
Join Date: 11 2006
Location: reload();
Posts: 63
Downloads: 2
Uploads: 0
Reputation: 0 | 0
Default

joxovurt, "offtop - inchi chi:
<?php
ini_set(
'upload_max_filesize', '25M');
?>
[email protected] anum? serverica pagac te vonc? '
Reply With Quote
Old 16.05.2007, 18:31   #29
Дошкольник
 
Join Date: 10 2004
Location: Yerevan
Age: 29
Posts: 116
Downloads: 8
Uploads: 0
Reputation: 2 | 0
Default

Quote:
Originally Posted by ExtremeSM View Post
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.
Reply With Quote
Old 17.05.2007, 14:59   #30
I Love BMW!
 
ExtremeSM's Avatar
 
Join Date: 11 2006
Location: reload();
Posts: 63
Downloads: 2
Uploads: 0
Reputation: 0 | 0
Default

?????
et im masin eir crazy? xi?!!!
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 08:51.


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