Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Jim Lucas
s To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 8:34 AM Subject: [PHP] very weird PHP behaviour... I don't know what it is... but PHP is acting very weird today... or I am becoming crazy... can anyone tell me which one? I have this function: function Upload($source_file,$s

Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Christian Dechery
that's exactly the problem... damn, how couldn't I think of this.. I didn't realise that when a file is NOT uploaded its value is set to 'none'... and I was using empty() to check it... thanks a lot. At 10:54 14/11/01 -0600, Steve Cayford wrote: >Sure sounds like you're hitting this function t

Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Steve Cayford
Sure sounds like you're hitting this function twice by accident. Are you sure you're only calling it once? That would explain why you only get one output with the die(), but two without it. -Steve On Wednesday, November 14, 2001, at 10:34 AM, Christian Dechery wrote: > I don't know what it i

[PHP] very weird PHP behaviour...

2001-11-14 Thread Christian Dechery
I don't know what it is... but PHP is acting very weird today... or I am becoming crazy... can anyone tell me which one? I have this function: function Upload($source_file,$source_filename,$dest_dir,$allowed_types=array()) { global $upload_errmsg; if( count($allowed_types) ) { $file_ext=Arqu