Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 10.11.2003, 07:46   #1
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default php copy() problem

phpistner jan, mi hat harc.

php unem grac, pic a upload anum.
im serveri vra ashxatum a, upload em anum hosting provider-i mot chi anum...

2 servern el linux/apache/php 4.3

vot:
copy($pic, $DOCUMENT_ROOT."/path/filename.jpg");

prosto chi anum, error message chka.
[email protected] vonc ases grel em,
[email protected] phpuploadtemp folder anum a hastat.
bayc @ndeic im tvac [email protected] chi anum.
[email protected] nayum em read/write 2n el check a arac.

INCHIC KARA LINI?? INCH STUGEM??

10x !
__________________
... for long you live and high you fly ...
Reply With Quote
Old 10.11.2003, 10:37   #2
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Mi hat anhamest harc - karogha hostingt WorldWebHosters.com-na?
Reply With Quote
Old 10.11.2003, 11:39   #3
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default

Quote:
Originally posted by Aram Ghazanchyan
Mi hat anhamest harc - karogha hostingt WorldWebHosters.com-na?
che iPowersWeb-n a

[email protected] www.rideacar.com
Reply With Quote
Old 10.11.2003, 12:12   #4
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Im mot mi angam et dzev eghela, worldwebhosters-i vra. Es et tegh reseller ei, et [email protected] jnjeci, noric baceci, amen inch eghav. Mi hat xndri iranq el et tipi anen, karogha ev dzvi.
Reply With Quote
Old 10.11.2003, 13:27   #5
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default

Quote:
Originally posted by Aram Ghazanchyan
Im mot mi angam et dzev eghela, worldwebhosters-i vra. Es et tegh reseller ei, et [email protected] jnjeci, noric baceci, amen inch eghav. Mi hat xndri iranq el et tipi anen, karogha ev dzvi.
thanx Aram jan, support-i vra mi hat mail em grel ...
tenam inch kasen

dzeri het el porcum em permissionneri het xaxam ...
tenam inch kpoxvi.
Reply With Quote
Old 10.11.2003, 13:32   #6
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Permissionerin karogh es dzerq chtal, ban chi poxvi, ete sxal drac liner Permission Denied ktar. Ete [email protected] qez cri, asi karogha menq code-i mej enq mtnelu (vonc vor im het eghav), et jamanak kases mi hat [email protected] backup areq, pakeq, u noric baceq.
Reply With Quote
Old 10.11.2003, 14:03   #7
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default

Quote:
Originally posted by Aram Ghazanchyan
Permissionerin karogh es dzerq chtal, ban chi poxvi, ete sxal drac liner Permission Denied ktar. Ete [email protected] qez cri, asi karogha menq code-i mej enq mtnelu (vonc vor im het eghav), et jamanak kases mi hat [email protected] backup areq, pakeq, u noric baceq.
ok, hesa tenam inch en grum, yesli chto tenc kanem.

thanx po lyubomu
Reply With Quote
Old 19.12.2003, 06:32   #8
Младенец
 
Join Date: 12 2003
Location: Abovyan-Armenia
Age: 56
Posts: 6
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Lightbulb ENCTYPE=multipart/form-data

Indz mot nman situatsia arajatesel e erb [email protected] upload anogh form-i mej chem drel ,naii ete ko mot el chka avelatsru [email protected]
Gutse Ogni ...

<form ENCTYPE="multipart/form-data" ..........>
Reply With Quote
Old 19.12.2003, 06:55   #9
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default Re: ENCTYPE=multipart/form-data

Quote:
Originally posted by Norair
Indz mot nman situatsia arajatesel e erb [email protected] upload anogh form-i mej chem drel ,naii ete ko mot el chka avelatsru [email protected]
Gutse Ogni ...

<form ENCTYPE="multipart/form-data" ..........>
"php unem grac, pic a upload anum.
im serveri vra ashxatum a, upload em anum hosting provider-i mot chi anum..."

Ete Enctype drac cheghav, vonca ira serveri vra ashxatum?
Reply With Quote
Old 19.12.2003, 07:27   #10
Младенец
 
Join Date: 12 2003
Location: Abovyan-Armenia
Age: 56
Posts: 6
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Default upload report

[email protected] [email protected] tarber patcharov kara lini,tekuz [email protected], ira server-its nuinutiamb copy chanelu patcharov
ete hamozvats ek vor da chi u
ete copy zhamanak permission-i khndir chka,uremn mnum e kaskatsel upload-i vra, vorpisi batsarven [email protected]
kareli a mi pokrik report dzevavorel ,vorits heto karli klini
knnarkel:
aysetgh xphoto-n form-i <input type=file name=xphoto...>

$upload_file = $_FILES['xphoto'];
extract($upload_file, EXTR_PREFIX_ALL, "f");
echo "<br><br>
<center>
<table>
<tr><th colspan=2 align=center><u>UPLOAD REPORT</u></th></tr>
<tr><td align=right><b>UPLOAD TMP FILE:</b></td><td>$f_tmp_name</td></tr>
<tr><td align=right><b>FILE NAME:</b></td><td>$f_name</td></tr>
<tr><td align=right><b>FILE SIZE:</b></td><td>$f_size</td></tr>
<tr><td align=right><b>FILE TYPE:</b></td><td>$f_type</td></tr>
</table>
</center>\n";
Reply With Quote
Old 19.12.2003, 12:47   #11
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default Re: upload report

Quote:
Originally posted by Norair
[email protected] [email protected] tarber patcharov kara lini,tekuz [email protected], ira server-its nuinutiamb copy chanelu patcharov
ete hamozvats ek vor da chi u
ete copy zhamanak permission-i khndir chka,uremn mnum e kaskatsel upload-i vra, vorpisi batsarven [email protected]
kareli a mi pokrik report dzevavorel ,vorits heto karli klini
knnarkel:
aysetgh xphoto-n form-i <input type=file name=xphoto...>

$upload_file = $_FILES['xphoto'];
extract($upload_file, EXTR_PREFIX_ALL, "f");
echo "<br><br>
<center>
<table>
<tr><th colspan=2 align=center><u>UPLOAD REPORT</u></th></tr>
<tr><td align=right><b>UPLOAD TMP FILE:</b></td><td>$f_tmp_name</td></tr>
<tr><td align=right><b>FILE NAME:</b></td><td>$f_name</td></tr>
<tr><td align=right><b>FILE SIZE:</b></td><td>$f_size</td></tr>
<tr><td align=right><b>FILE TYPE:</b></td><td>$f_type</td></tr>
</table>
</center>\n";

Norair jan, mersi shat.
lucel em et [email protected],
parzvum er [email protected] cher utum [email protected]
chgitem tenc VONC kara lini ...
kornevoy directory-n jnjeci, heto [email protected] [email protected] pet er (777-ov)
texum sarqeci.
ashxatec...

10x amen depqum.
Reply With Quote
Old 19.12.2003, 13:09   #12
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Kstati 777 chmod, naskol'ko ya znayu imeet Execute option dlya vsex. Opasno useru davat' takoy permission
Reply With Quote
Old 19.12.2003, 13:24   #13
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default

Quote:
Originally posted by Aram Ghazanchyan
Kstati 777 chmod, naskol'ko ya znayu imeet Execute option dlya vsex. Opasno useru davat' takoy permission
right.

prosto et directory-i hamar execute er petq, vor ban porcei ...
heto poxel em iharke
Reply With Quote
Old 19.12.2003, 13:46   #14
Младенец
 
Join Date: 12 2003
Location: Abovyan-Armenia
Age: 56
Posts: 6
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Lightbulb echo "Upload Error";

kani vor ERROR_reporting [email protected] sovorabar menak log filerum en
pahum,ev da bnakanabar chisht a,
permission-i Nman [email protected] shat arag kbatsahaytver ete

copy($pic, $DOCUMENT_ROOT."/path/filename.jpg");

pokharen grver!

if(!(copy($pic, $DOCUMENT_ROOT."/path/filename.jpg")))
echo "Upload Error";

Bolor depkerum Lav e vor lav e verjanum
Hajoghutian maghtanknerov
NH
Reply With Quote
Sponsored Links
Reply

Thread Tools


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

All times are GMT. The time now is 14:01.


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