Re: My script can't upload the data

2002-06-18 Thread bss96kci
On Tue, 18 Jun 2002, David vd Geer Inhuur tbv IPlib wrote: > > Hi, > > It looks like some stuff is mixed up. > Who is what ?? > > $foto ?? > $path/$number/$foto ?? > > Let's make this difference : > > if($picture) { ## If possible of course > open(F, ">$path/$number/$foto") || die "Cannot

Re: My script can't upload the data

2002-06-18 Thread Connie Chan
> if($foto) { > open (F, ">$path/$number/$foto") || die "Cannot open $!"; > while(<$foto>) { Why use while ? $foto is one data. To write one data, I don't think it is nessary to use while unless you are try to write an array to the file handle like : print F $_ while (@array); But if you are

Re: My script can't upload the data

2002-06-18 Thread drieux
On Tuesday, June 18, 2002, at 08:27 , Nikola Janceski wrote: [..] >> >> if($foto) { >> open (F, ">$path/$number/$foto") || die "Cannot open $!"; >> while(<$foto>) { > ## should be > while() { >> print F $_; >> } >> close F; >> } [..] Not really - since that would mean trying to read from a file

Re: My script can't upload the data

2002-06-18 Thread David vd Geer Inhuur tbv IPlib
Hi, It looks like some stuff is mixed up. Who is what ?? $foto ?? $path/$number/$foto ?? Let's make this difference : if($picture) { ## If possible of course open(F, ">$path/$number/$foto") || die "Cannot open $!"; Now what do you want to store into this file. You opened the file in overwr

RE: My script can't upload the data

2002-06-18 Thread Nikola Janceski
see below > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 18, 2002 11:22 AM > To: [EMAIL PROTECTED] > Subject: My script can't upload the data > > > Hello! > > The following part of code uploads 0k. > > #!/usr/bin/perl > > ... > > if