php-general Digest 19 Apr 2012 17:30:55 -0000 Issue 7782

2012-04-19 Thread php-general-digest-help
php-general Digest 19 Apr 2012 17:30:55 - Issue 7782 Topics (messages 317607 through 317618): Re: sms class 317607 by: tamouse mailing lists Re: Email Antispam 317608 by: tamouse mailing lists 317610 by: Bastien 317612 by: Matijn Woudt 317613 by:

Re: [PHP] tempnam() not working as expected...

2012-04-19 Thread ma...@behnke.biz
tamouse mailing lists tamouse.li...@gmail.com hat am 19. April 2012 um 07:10 geschrieben: On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz ma...@behnke.biz wrote: mkdir($d,777,true);/* make the directory */ Try using mkdir($d, 0777, true); Herein, my friends, lies the

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Bastien
Bastien Koert On 2012-04-19, at 1:54 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au wrote: On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He literally wants the addresses visible on the sight? [...] Yes,

Re: [PHP] tempnam() not working as expected...

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 9:03 AM, ma...@behnke.biz ma...@behnke.biz wrote: tamouse mailing lists tamouse.li...@gmail.com hat am 19. April 2012 um 07:10 geschrieben: On Mon, Apr 16, 2012 at 3:09 AM, ma...@behnke.biz ma...@behnke.biz wrote: mkdir($d,777,true);                /* make the

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 1:01 PM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-04-19, at 1:54 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au wrote: On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Ashley Sheridan
On Thu, 2012-04-19 at 13:48 +0200, Matijn Woudt wrote: On Thu, Apr 19, 2012 at 1:01 PM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-04-19, at 1:54 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au

[PHP] Variable Question

2012-04-19 Thread Ron Piggott
I am trying to assign variables from an array into variables. This is following a database query. Right now they are in an array: $row[‘word_1’] $row[‘word_2’] $row[‘word_3’] ... $row[‘word_25’] I am trying to use this while look to assign them to variables: $word_1 $word_2 $word_3 ...

Re: [PHP] Variable Question

2012-04-19 Thread Stuart Dallas
On 19 Apr 2012, at 15:46, Ron Piggott wrote: I am trying to assign variables from an array into variables. This is following a database query. Right now they are in an array: $row[‘word_1’] $row[‘word_2’] $row[‘word_3’] ... $row[‘word_25’] Why those indices? Why isn't it just a

Re: [PHP] Variable Question

2012-04-19 Thread Christoph Boget
I am trying to use this while look to assign them to variables: $word_1 $word_2 $word_3 ... $word_25 This should work for you: http://us3.php.net/manual/en/function.extract.php thnx, Christoph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Variable Question

2012-04-19 Thread Shawn McKenzie
On 04/19/2012 09:55 AM, Christoph Boget wrote: I am trying to use this while look to assign them to variables: $word_1 $word_2 $word_3 ... $word_25 This should work for you: http://us3.php.net/manual/en/function.extract.php thnx, Christoph Yes and you can use

[PHP] SqLite INSERT want not write

2012-04-19 Thread Silvio Siefke
Hello, i have a script which should write articles in a Sqlite 0database. The script runs without errors, but nothing is written to the database. The Script: http://nopaste.info/09e68c7e37.html The db.php: http://nopaste.info/afd4dee47a.html The Database file has right 777. Has someone an

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Stuart Dallas
On 19 Apr 2012, at 18:31, Silvio Siefke wrote: i have a script which should write articles in a Sqlite 0database. The script runs without errors, but nothing is written to the database. The Script: http://nopaste.info/09e68c7e37.html The db.php: http://nopaste.info/afd4dee47a.html The

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Silvio Siefke
Hello, On Thu, 19 Apr 2012 18:39:00 +0100 Stuart Dallas stu...@3ft9.com wrote: The script has syntax errors in it. You won't see those errors because PHP won't run a script with syntax errors, so it won't modify the error_reporting and display_errors settings. You can run php -l

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Stuart Dallas
On 19 Apr 2012, at 18:54, Silvio Siefke wrote: On Thu, 19 Apr 2012 18:39:00 +0100 Stuart Dallas stu...@3ft9.com wrote: The script has syntax errors in it. You won't see those errors because PHP won't run a script with syntax errors, so it won't modify the error_reporting and

Fwd: [PHP] sms class

2012-04-19 Thread tamouse mailing lists
-- Forwarded message -- From: DZvonko Nikolov dzvo...@yahoo.com Date: Thu, Apr 19, 2012 at 5:10 AM Subject: Re: [PHP] sms class To: tamouse mailing lists tamouse.li...@gmail.com if this is simple, yes.

Re: [PHP] sms class

2012-04-19 Thread Matijn Woudt
On Wed, Apr 18, 2012 at 10:31 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Apr 18, 2012 at 9:53 PM, Lester Caine les...@lsces.co.uk wrote: Matijn Woudt wrote: It should be possible to hack up an android phone and write some software that sends messages from there, though using one of the

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread tamouse mailing lists
Maybe this will make the syntax errors stand out more: http://dl.dropbox.com/u/571329/Screenshots/Picture%209.png -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Silvio Siefke
Hello, On Thu, 19 Apr 2012 13:21:46 -0500 tamouse mailing lists tamouse.li...@gmail.com wrote: Maybe this will make the syntax errors stand out more: http://dl.dropbox.com/u/571329/Screenshots/Picture%209.png ok i have change it to the function date, but now i has the error message:

RE: [PHP] SqLite INSERT want not write

2012-04-19 Thread Steven Staples
-Original Message- From: Silvio Siefke [mailto:siefke_lis...@web.de] Sent: April 19, 2012 2:53 PM To: php-general@lists.php.net Subject: Re: [PHP] SqLite INSERT want not write Hello, On Thu, 19 Apr 2012 13:21:46 -0500 tamouse mailing lists tamouse.li...@gmail.com wrote:

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Stuart Dallas
On 19 Apr 2012, at 19:52, Silvio Siefke wrote: On Thu, 19 Apr 2012 13:21:46 -0500 tamouse mailing lists tamouse.li...@gmail.com wrote: Maybe this will make the syntax errors stand out more: http://dl.dropbox.com/u/571329/Screenshots/Picture%209.png ok i have change it to the function

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Stuart Dallas
On 19 Apr 2012, at 19:57, Steven Staples wrote: I think all you had to do was change this line: (line 27 in the original paste) $sql = 'INSERT INTO bloggen (date, autor, title, teaser, content) VALUES ('' . date( 'Y-m-s H:i:s', time() ) . '', :autor, :title, :teaser, :content);'; To

Re: [PHP] sms class

2012-04-19 Thread Lester Caine
Matijn Woudt wrote: On Wed, Apr 18, 2012 at 10:31 PM, Matijn Woudttijn...@gmail.com wrote: On Wed, Apr 18, 2012 at 9:53 PM, Lester Caineles...@lsces.co.uk wrote: Matijn Woudt wrote: It should be possible to hack up an android phone and write some software that sends messages from there,

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Silvio Siefke
On Thu, 19 Apr 2012 14:57:04 -0400 Steven Staples sstap...@mnsi.net wrote: I think all you had to do was change this line: (line 27 in the original paste) $sql = 'INSERT INTO bloggen (date, autor, title, teaser, content) VALUES ('' . date( 'Y-m-s H:i:s', time() ) . '', :autor, :title,

RE: [PHP] SqLite INSERT want not write

2012-04-19 Thread Steven Staples
-Original Message- From: Silvio Siefke [mailto:siefke_lis...@web.de] Sent: April 19, 2012 3:11 PM To: php-general@lists.php.net Subject: Re: [PHP] SqLite INSERT want not write On Thu, 19 Apr 2012 14:57:04 -0400 Steven Staples sstap...@mnsi.net wrote: I think all you had to do

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread tamouse mailing lists
On Thu, Apr 19, 2012 at 2:17 PM, Steven Staples sstap...@mnsi.net wrote: -Original Message- From: Silvio Siefke [mailto:siefke_lis...@web.de] Sent: April 19, 2012 3:11 PM To: php-general@lists.php.net Subject: Re: [PHP] SqLite INSERT want not write On Thu, 19 Apr 2012 14:57:04 -0400

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread siefke_lis...@web.de
Hello, On Thu, 19 Apr 2012 15:17:06 -0400 Steven Staples sstap...@mnsi.net wrote: Ok, so I was wrong... ;) it does happen Try this: $sql = INSERT INTO bloggen (date, autor, title, teaser, content) VALUES (' . date('Y-m-d H:i:s') . ', :autor, :title, :teaser,

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Stuart Dallas
On 19 Apr 2012, at 20:40, siefke_lis...@web.de wrote: On Thu, 19 Apr 2012 15:17:06 -0400 Steven Staples sstap...@mnsi.net wrote: Ok, so I was wrong... ;) it does happen Try this: $sql = INSERT INTO bloggen (date, autor, title, teaser, content) VALUES (' . date('Y-m-d H:i:s') .

RE: [PHP] SqLite INSERT want not write

2012-04-19 Thread Steven Staples
-Original Message- From: siefke_lis...@web.de [mailto:siefke_lis...@web.de] Sent: April 19, 2012 3:40 PM To: php-general@lists.php.net Subject: Re: [PHP] SqLite INSERT want not write Hello, On Thu, 19 Apr 2012 15:17:06 -0400 Steven Staples sstap...@mnsi.net wrote:

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Silvio Siefke
Hello, On Thu, 19 Apr 2012 20:43:52 +0100 Stuart Dallas stu...@3ft9.com wrote: On 19 Apr 2012, at 20:40, siefke_lis...@web.de wrote: On Thu, 19 Apr 2012 15:17:06 -0400 Steven Staples sstap...@mnsi.net wrote: What does the script output? The only path through your script that doesn't

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Tommy Pham
On Thu, Apr 19, 2012 at 12:40 PM, siefke_lis...@web.de siefke_lis...@web.de wrote:                Hello, On Thu, 19 Apr 2012 15:17:06 -0400 Steven Staples sstap...@mnsi.net wrote: Ok, so I was wrong... ;)   it does happen Try this: $sql = INSERT INTO bloggen (date, autor, title, teaser,

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Silvio Siefke
On Thu, 19 Apr 2012 13:00:40 -0700 Tommy Pham tommy...@gmail.com wrote: Technically, it's date('now') per [1] :) RTFM FTW! Yes its right, i have read it on sqlite.org. PS: Excuse me, what mean RTFM FTW? Regards Silvio -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] SqLite INSERT want not write

2012-04-19 Thread Bastien
Bastien Koert On 2012-04-19, at 4:11 PM, Silvio Siefke siefke_lis...@web.de wrote: On Thu, 19 Apr 2012 13:00:40 -0700 Tommy Pham tommy...@gmail.com wrote: Technically, it's date('now') per [1] :) RTFM FTW! Yes its right, i have read it on sqlite.org. PS: Excuse me, what mean RTFM