AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Nov 10, 2003, 07:46   #1
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
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.
path@ vonc ases grel em,
file@ phpuploadtemp folder anum a hastat.
bayc @ndeic im tvac tex@ chi anum.
permissionner@ nayum em read/write 2n el check a arac.

INCHIC KARA LINI?? INCH STUGEM??

10x !
__________________
... for long you live and high you fly ...
Timewind is offline   Reply With Quote Quote selected
Old Nov 10, 2003, 10:37   #2
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 892
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to Aram Ghazanchyan
Mi hat anhamest harc - karogha hostingt WorldWebHosters.com-na?
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Old Nov 10, 2003, 11:39   #3
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
Quote:
Originally posted by Aram Ghazanchyan
Mi hat anhamest harc - karogha hostingt WorldWebHosters.com-na?
che iPowersWeb-n a

site@ www.rideacar.com
__________________
... for long you live and high you fly ...
Timewind is offline   Reply With Quote Quote selected
Old Nov 10, 2003, 12:12   #4
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 892
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to Aram Ghazanchyan
Im mot mi angam et dzev eghela, worldwebhosters-i vra. Es et tegh reseller ei, et site-@ jnjeci, noric baceci, amen inch eghav. Mi hat xndri iranq el et tipi anen, karogha ev dzvi.
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Old Nov 10, 2003, 13:27   #5
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
Quote:
Originally posted by Aram Ghazanchyan
Im mot mi angam et dzev eghela, worldwebhosters-i vra. Es et tegh reseller ei, et site-@ 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.
__________________
... for long you live and high you fly ...
Timewind is offline   Reply With Quote Quote selected
Old Nov 10, 2003, 13:32   #6
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 892
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to Aram Ghazanchyan
Permissionerin karogh es dzerq chtal, ban chi poxvi, ete sxal drac liner Permission Denied ktar. Ete support@ qez cri, asi karogha menq code-i mej enq mtnelu (vonc vor im het eghav), et jamanak kases mi hat account@ backup areq, pakeq, u noric baceq.
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Old Nov 10, 2003, 14:03   #7
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
Quote:
Originally posted by Aram Ghazanchyan
Permissionerin karogh es dzerq chtal, ban chi poxvi, ete sxal drac liner Permission Denied ktar. Ete support@ qez cri, asi karogha menq code-i mej enq mtnelu (vonc vor im het eghav), et jamanak kases mi hat account@ backup areq, pakeq, u noric baceq.
ok, hesa tenam inch en grum, yesli chto tenc kanem.

thanx po lyubomu
__________________
... for long you live and high you fly ...
Timewind is offline   Reply With Quote Quote selected
Old Dec 19, 2003, 06:32   #8
Младенец
 
Join Date: Dec 2003
Location: Abovyan-Armenia
Posts: 6
Rep Power: 0
Reputation: 10
Lightbulb ENCTYPE=multipart/form-data

Indz mot nman situatsia arajatesel e erb ENCTYPE-@ upload anogh form-i mej chem drel ,naii ete ko mot el chka avelatsru hetevyal@.
Gutse Ogni ...

<form ENCTYPE="multipart/form-data" ..........>
Norair is offline   Reply With Quote Quote selected
Old Dec 19, 2003, 06:55   #9
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 892
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to Aram Ghazanchyan
Re: ENCTYPE=multipart/form-data

Quote:
Originally posted by Norair
Indz mot nman situatsia arajatesel e erb ENCTYPE-@ upload anogh form-i mej chem drel ,naii ete ko mot el chka avelatsru hetevyal@.
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?
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Old Dec 19, 2003, 07:27   #10
Младенец
 
Join Date: Dec 2003
Location: Abovyan-Armenia
Posts: 6
Rep Power: 0
Reputation: 10
upload report

enctype-@ chdnel@ tarber patcharov kara lini,tekuz amenaanhetet@, 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 kaskatsner@
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 is offline   Reply With Quote Quote selected
Old Dec 19, 2003, 12:47   #11
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
Re: upload report

Quote:
Originally posted by Norair
enctype-@ chdnel@ tarber patcharov kara lini,tekuz amenaanhetet@, 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 kaskatsner@
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 harc@,
parzvum er chmod-@ cher utum server@
chgitem tenc VONC kara lini ...
kornevoy directory-n jnjeci, heto nersin@ vor@ pet er (777-ov)
texum sarqeci.
ashxatec...

10x amen depqum.
__________________
... for long you live and high you fly ...
Timewind is offline   Reply With Quote Quote selected
Old Dec 19, 2003, 13:09   #12
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 892
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to Aram Ghazanchyan
Kstati 777 chmod, naskol'ko ya znayu imeet Execute option dlya vsex. Opasno useru davat' takoy permission
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Old Dec 19, 2003, 13:24   #13
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 847
Rep Power: 7
Reputation: 14
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
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
__________________
... for long you live and high you fly ...
Timewind is offline   Reply With Quote Quote selected
Old Dec 19, 2003, 13:46   #14
Младенец
 
Join Date: Dec 2003
Location: Abovyan-Armenia
Posts: 6
Rep Power: 0
Reputation: 10
Lightbulb echo "Upload Error";

kani vor ERROR_reporting -@ sovorabar menak log filerum en
pahum,ev da bnakanabar chisht a,
permission-i Nman khndir@ 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
Norair is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:04.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link