Home  |  Linux  | Mysql  | PHP  | XML
From:Gunnar Hjalmarsson Date:Sat Jan 12 16:31:06 2008
Subject:Re: perl for uploading file shows weird characters.
[ please do not multi-post! ]

Patrik Hasibuan wrote:
> I am writing perl-cgi application for uploading a file. I did "chmod 
> 777 ../../artikel". But I get weird displayed message:
> "
> ueri: ------------4CyrMz2ZeGIClwYfFsVdcv Co........
> î 6êÎ]Ë kšfþx·¾ ðfS4M3>º {½‡<Óöù³®ï¿½¯3çýGèBù= „¬È›øRƒ.....
> &ƒ ÿƒ&m‡îø'-n nÊÐJ(pÇ 9çqîÎ.........
> Ê ¨‚¡ÀÜ EÖ� z!ª˜Y6�¬úÒ„â0J¼“ñË.......
> [end so on. very longg.............]
> ".
> 
> And no file copied/uploaded in '../../artikel'. But inserting the record onto 
> the mysql run properly.
> 
> Please tell me why.....
> 
> Here I have done:

Well, the code you posted is far too much to my taste. Please post a 
_small_ but complete program that illustrates the problem you are having.

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants