php-general Digest 12 Nov 2011 20:02:50 -0000 Issue 7564

2011-11-12 Thread php-general-digest-help
php-general Digest 12 Nov 2011 20:02:50 - Issue 7564 Topics (messages 315650 through 315660): Re: Pipe To A Program 315650 by: tamouse mailing lists 315651 by: Ron Piggott 315652 by: tamouse mailing lists 315653 by: Stuart Dallas 315657 by: Stuart

Re: [PHP] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 1:38 AM, Ron Piggott ron.pigg...@actsministries.org wrote: Does anyone know what variable the e-mail message is assigned within the context of “Pipe To A Program”?  Is there a way to find out?  I can’t figure this out. What I have tried so far is below: ===

Re: [PHP] Pipe To A Program

2011-11-12 Thread Ron Piggott
I used your code and it still didn't work. Would you show me what you put in for your Pipe To A Program settings? What I used is: Rules: To Contains customer service e-mail address Action /usr/local/bin/php /path/to/email_to_ticket_gateway.php - I know the rule is working because I

Re: [PHP] Pipe To A Program

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 5:12 AM, Ron Piggott ron.pigg...@actsministries.org wrote: I used your code and it still didn't work.  Would you show me what you put in for your Pipe To A Program settings? What I used is: Rules: To Contains customer service e-mail address Action

Re: [PHP] Pipe To A Program

2011-11-12 Thread Stuart Dallas
On 12 Nov 2011, at 07:38, Ron Piggott wrote: I am looking at CPanel’s “E-Mail filtering” option “Pipe To A Program” http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/FilterOptions The goal I am working towards is saving the contents of an incoming e-mail address into a

[PHP] question about best practice for coding sql statements

2011-11-12 Thread tamouse mailing lists
I'm curious how others feel about this. When I'm creating an SQL string, either for a non-prepared or prepared execution, I build it in a variable and then pass the variable to the query or prepare function. This lets me easily add something to view the SQL statement, and also if there's an error,

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread Stephen
On 11-11-12 06:30 AM, tamouse mailing lists wrote: I'm curious how others feel about this. When I'm creating an SQL string, either for a non-prepared or prepared execution, I build it in a variable and then pass the variable to the query or prepare function. This lets me easily add something to

[PHP] mysqli question

2011-11-12 Thread Peet Grobler
Not sure if this is the correct mailing list to be asking this question but here goes: I've got a prepared statement. $stmt = $dbh-prepare (insert into test values (?, ?)) or die (Error: . $dbh-error); $stmt-bind_param ('ii', $var1, $var2) or die (Error: . $dbh-error);

Re: [PHP] Pipe To A Program

2011-11-12 Thread Stuart Dallas
On 12 Nov 2011, at 11:49, Ron Piggott wrote: Ok. It works. I finally am able to display the contents of an e-mail! Now I am able to write my apps I see your monster of all incoming e-mail processors ;) Thanks for showing me this. I will look it over when I am more awake. I kind of

[PHP] problem with sending AT command in php

2011-11-12 Thread a dehqan
In The Name Of Allah The compassionate merciful Hello ; Am trying to send AT commands to my GSMmodem device , in linux with PHP Am sure it is /dev/ttyusb1 But with [URL=http://pastebin.com/aut4ygXf]this code[/URL] device respond the same command and code prints that command e.g if we send ATD00

Re: [PHP] problem with sending AT command in php

2011-11-12 Thread Negin Nickparsa
are you sure about ATD03518726535\n? can you try if ( dio_write($handle, 'AT') )?

Re: [PHP] problem with sending AT command in php

2011-11-12 Thread a dehqan
dio_write($handle, 'AT') dio_write($handle, AT) make firefox times out on Waiting for localhost ... . But dio_write($handle, AT\n) makes it prints AT exactly the same command or A A , .. On Sat, Nov 12, 2011 at 10:02 PM, Negin Nickparsa nickpa...@gmail.comwrote: are you sure about

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread Geoff Shang
On Sat, 12 Nov 2011, tamouse mailing lists wrote: I'm curious how others feel about this. When I'm creating an SQL string, either for a non-prepared or prepared execution, I build it in a variable and then pass the variable to the query or prepare function. This lets me easily add something to

Re: [PHP] mysqli question

2011-11-12 Thread Tommy Pham
On Sat, Nov 12, 2011 at 6:15 AM, Peet Grobler p...@hivemind.net wrote: Not sure if this is the correct mailing list to be asking this question but here goes: I've got a prepared statement. $stmt = $dbh-prepare (insert into test values (?, ?))        or die (Error: . $dbh-error);

Re: [PHP] mysqli question

2011-11-12 Thread Peet Grobler
On 2011-11-13 1:42 AM, Tommy Pham wrote: or db_error ($dbh, $__FILE__, $__LINE__); __FILE__ are reserved keywords __LINE__. If you intended to use variables represent the similar meaning, the suggested approach would Yes, sorry, was a bit quick there - I'm using __FILE__ __LINE__ to

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread tamouse mailing lists
On Sat, Nov 12, 2011 at 7:01 AM, Stephen stephe...@rogers.com wrote: While I am not a big fan of OOP, I do like PDO, and recommend its use. Right -- I wasn't actually inquiring about how to access a data base, merely the pactice of using a variable for the SQL -- In your example, you are doing