[PHP] What is wrong here?

2012-04-24 Thread Karl-Arne Gjersøyen
Hello again. I can't figure out what is wrong here. move_uploaded_file() get error message from die() and can't copy/move temp_file into directory bilder I have try to chmod 0777 bilder/ but it did not help. Also I have try to chown www-data.www-data bilder/ since Ubuntu Server run apache as www-

RE: [PHP] NULL Problem

2012-04-24 Thread David Stoltz
Serge, We don't use MSSQL for much, mostly use MySQL... But I don't want to switch out all the drivers for this one issue, which is now resolved (thanks Matijn) -Original Message- From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Tuesday, April 24, 2012 1:45 PM To: Matijn

RE: [PHP] NULL Problem

2012-04-24 Thread David Stoltz
Matijn - it worked! Geez... Strange - I don't need the ->value if it actually has a value, only if it's NULL... But it works! Thanks! -Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] Sent: Tuesday, April 24, 2012 1:40 PM To: David Stoltz Cc: php-general@lists.php.net Su

Re: [PHP] NULL Problem

2012-04-24 Thread Serge Fonville
Have you considered the PHP MSSQL driver? http://www.microsoft.com/download/en/details.aspx?id=20098 Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Google!! They need to add GAL support on Android (star to agree) http://code.google.com/p/android/issues/

Re: [PHP] NULL Problem

2012-04-24 Thread Matijn Woudt
On Tue, Apr 24, 2012 at 7:29 PM, David Stoltz wrote: > Here's my code (using MSSQL): > > $conn = new COM ("ADODB.Connection")or die("Cannot start ADO"); > $conn->open($connStr); > $query = "SELECT * FROM TABLE WHERE id = ".$id; > $rs = $conn->execute($query); > > This code works fine, and I retrie

[PHP] NULL Problem

2012-04-24 Thread David Stoltz
Here's my code (using MSSQL): $conn = new COM ("ADODB.Connection")or die("Cannot start ADO"); $conn->open($connStr); $query = "SELECT * FROM TABLE WHERE id = ".$id; $rs = $conn->execute($query); This code works fine, and I retrieve the values like this: $tmp1 = $rs->fields("column1"); $tmp2 = $

Re: [PHP] Hmm.. this is strange..

2012-04-24 Thread Karl-Arne Gjersøyen
Thank you very much Tolga! if(empty($_FILES['filbane']['name'])) 24.04.2012 17:54 tarihinde, Karl-Arne Gjersøyen yazdı: > Here I try to check if the input file is empty or not. But still it > did not work. I receive OK even when the input file field is empty.. > > if(!isset($_POST['last_opp_

Re: [PHP] Hmm.. this is strange..

2012-04-24 Thread Karl-Arne Gjersøyen
Here I try to check if the input file is empty or not. But still it did not work. I receive OK even when the input file field is empty.. Bildegalleri Bildegalleri Den 16:48 24. april 2012 skrev Serge Fonville følgende: > Hi, > > Instead of just checking if the variable is not set, addi

Re: [PHP] Hmm.. this is strange..

2012-04-24 Thread Serge Fonville
Hi, Instead of just checking if the variable is not set, additionally check if it is empty Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Google!! They need to add GAL support on Android (star to agree) http://code.google.com/p/android/issues/detail?id

[PHP] Hmm.. this is strange..

2012-04-24 Thread Karl-Arne Gjersøyen
Hello. I have a upload form in a html file and a corresponding PHP file that shall take care of the information. But I am doing something newbie error here.. What am I doing wrong? (The text is norwegian, but you still see and understand the PHP code) bildegalleri.html - O

Re: [PHP] Re: No error reporting on

2012-04-24 Thread Jim Giner
Sounds like a very good reason to me? It's a development tool. Add it now, remove it later. "Dotan Cohen" wrote in message news:cakdxfkn+6mn9chuqdwevx5ap0km-rkls0q+carbf5hktvuo...@mail.gmail.com... On Mon, Apr 23, 2012 at 16:53, Jim Lucas wrote: >> Possibly, thanks. I actually don't have acce

Re: [PHP] session lost problem

2012-04-24 Thread bug zhu
2012/4/24 ma...@behnke.biz > > > bug zhu hat am 24. April 2012 um 08:28 geschrieben: > > > thank you for your explanation, > > when i write to $_SESSION after session_commit(),$_SESSION is just a > > regular array > > Yes. Actually session_commit does not "terminate" the session as mentioned > e

Re: [PHP] session lost problem

2012-04-24 Thread ma...@behnke.biz
bug zhu hat am 24. April 2012 um 08:28 geschrieben: > thank you for your explanation, > when i write to $_SESSION after session_commit(),$_SESSION is just a > regular array Yes. Actually session_commit does not "terminate" the session as mentioned earlier but is closes it for writing. You cann