Re: [PHP] Compile PHP with MySQL support

2011-10-13 Thread Sharl.Jimh.Tsin
在 2011-10-13四的 08:27 -0400,Nick Khamis写道: > Hello Everyone, > > I am trying to compile php from source using the following config: > > ./configure --prefix=/usr/local/php > --with-apxs2=/usr/local/apache/bin/apxs > --with-config-file-path=/usr/local/php > --with-mcrypt=/usr/local/bin/mcrypt --wit

Re: [PHP] Processing newlines in a text area field

2011-10-13 Thread Jason Pruim
Answer below! Jason Pruim li...@pruimphotography.com On Oct 13, 2011, at 10:49 PM, Stephen wrote: > I have a web page with a form with a text area. I enter: > > foo > > > bar > > PHP processes the POST and inserts the record into MySQL. > > The database field is text. > > I use PDO > >

Re: [PHP] Introducting CRUDsader : a new PHP ORM Framework

2011-10-13 Thread Sharl.Jimh.Tsin
在 2011-10-13四的 19:06 +0100,jean-baptiste verrey写道: > hi everyone, > > I have been developing an ORM framework for the last year (at least) and I > have finally released a beta that is worth of being on internet^^ > so if you have some time to spare have a look at http://www.crudsader.com/. > > Th

[PHP] Processing newlines in a text area field

2011-10-13 Thread Stephen
I have a web page with a form with a text area. I enter: foo bar PHP processes the POST and inserts the record into MySQL. The database field is text. I use PDO For testing I have removed any processing of the text area content. Now, no matter how many blank rows I have between foo and bar

Re: [PHP] Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Nilesh Govindarajan
On 10/13/2011 06:57 PM, Nick Khamis wrote: > Hello Nilesh, > > Thank you so much for your response. I have been stuck on this for two > days. As mentioned earlier > we compiled PHP with the "--with-mysqli" directive however there is no > mysql/i.o to be found anywhere > on the system. And thus we

[PHP] Dennis Ritchie, Father of Unix and C programming language, dead at 70

2011-10-13 Thread Daevid Vincent
#include int main() { printf("R.I.P. Dennis Ritchie: 1941-2011\n"); return 0; } http://www.networkworld.com/news/2011/101311-ritchie-251936.html

Re: [PHP] Compile PHP with MySQL support

2011-10-13 Thread Simon J Welsh
On 14/10/2011, at 1:27 AM, Nick Khamis wrote: > Hello Everyone, > > I am trying to compile php from source using the following config: > > ./configure --prefix=/usr/local/php > --with-apxs2=/usr/local/apache/bin/apxs > --with-config-file-path=/usr/local/php > --with-mcrypt=/usr/local/bin/mcrypt

Re: [PHP] FW: parse error

2011-10-13 Thread Stuart Dallas
Please include the list when replying. On 13 Oct 2011, at 19:44, David Savage wrote: > ok thanks for the quick reply. Still trying to figure out the line that is > causing the problem above that line 1050I'm a novice at php, and > currently use it just for console programming, though I wan

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
Correct. Extensions, such as those found in the PECL repository, are added in that manner. Things compiled into the core, such as what you're doing with MySQLi, are automatically loaded regardless, because they're statically-built into the PHP binary itself.

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
I was just going to try recompilign with mysql instead of mysqli... I hope this fixes it. In terms of mysql being compiled into the core, does this mean I do not have to add extension=mysqli.so extension_dir=/usr/local/php/ include/php/ext/ Thanks in Advance,

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Daniel Brown
On Thu, Oct 13, 2011 at 14:33, Nick Khamis wrote: > I was just going to try recompilign with mysql instead of mysqli... I hope > this fixes it. > In terms of mysql being compiled into the core, does this mean I do not have > to add > > extension=mysqli.so > extension_dir=/usr/local/php/include/php

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Daniel Brown
On Thu, Oct 13, 2011 at 14:19, Nick Khamis wrote: > I have been stuck on this, and have no idea what is causing it. I have > compiled PHP with mysqli support: Right which will use mysqli_connect(), et al. If you didn't compile it with straight MySQL support, then the mysql_*() functions

RE: [PHP] FW: parse error

2011-10-13 Thread Ken Robinson
At 02:06 PM 10/13/2011, Steve Staples wrote : [snip] It's more likely an unterminated quoted string. It looks like PHP is giving up after finding unrecognizable stuff after either the first double or single quote on that line. If you're using an editor that doesn't do syntax high lighting, g

[PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
I have been stuck on this, and have no idea what is causing it. I have compiled PHP with mysqli support: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/php --with-mcrypt=/usr/local/bin/mcrypt --with-mysqli --with-gettext=./ext/gettext

RE: [PHP] FW: parse error

2011-10-13 Thread Steve Staples
-Original Message- From: Ken Robinson [mailto:kenrb...@rbnsn.com] Sent: Thursday, October 13, 2011 1:33 PM To: php-general@lists.php.net Subject: Re: [PHP] FW: parse error At 01:26 PM 10/13/2011, Robert Williams wrote: >On 10/13/11 10:06, "David Savage" wrote: > > > >php -l voip_cdrs.p

[PHP] Introducting CRUDsader : a new PHP ORM Framework

2011-10-13 Thread jean-baptiste verrey
hi everyone, I have been developing an ORM framework for the last year (at least) and I have finally released a beta that is worth of being on internet^^ so if you have some time to spare have a look at http://www.crudsader.com/. The novelty of the framework lies in object automatic forms, config

Re: [PHP] FW: parse error

2011-10-13 Thread Ken Robinson
At 01:26 PM 10/13/2011, Robert Williams wrote: On 10/13/11 10:06, "David Savage" wrote: >php -l voip_cdrs.php >PHP Parse error: parse error, unexpected T_STRING in >/usr/local/cytrex/voip_cdrs.php on line 1050 >Errors parsing voip_cdrs.php > > $alias_sql_stmt="SELECT ani F

Re: [PHP] FW: parse error

2011-10-13 Thread Robert Williams
On 10/13/11 10:06, "David Savage" wrote: >php -l voip_cdrs.php >PHP Parse error: parse error, unexpected T_STRING in >/usr/local/cytrex/voip_cdrs.php on line 1050 >Errors parsing voip_cdrs.php > > $alias_sql_stmt="SELECT ani FROM ldrates WHERE >ani='$termnum10'";// <

Re: [PHP] FW: parse error

2011-10-13 Thread Stuart Dallas
On 13 Oct 2011, at 18:06, David Savage wrote: > I'm sorryI need help with php v. 4.3.9 (cgi). I don't know where else to > turn. I've looked on the php.net web site for details on this particular > error, but am unable to find any. > > this is the version I use. > php -v > PHP 4.3.9 (cgi)

[PHP] FW: parse error

2011-10-13 Thread David Savage
please read the following chain of emails...I'm at my wits end. From: David Savage Sent: Thu 10/13/2011 11:09 AM To: php-general-digest-ow...@lists.php.net Subject: FW: parse error How can I find the answer to the following php issue? I am not sure how to post

Re: Re: [PHP] Local variable protection

2011-10-13 Thread Tim Streater
On 13 Oct 2011 at 16:25, Tedd Sperling wrote: > So, if in your main script you have the statement: > > $myVar = 'test'; > > Then the $GLOBAL['myVar'] has also been created and will hold the value of > 'test' without any additional coding. > > While many of you will say "But of course, that's the

Re: [PHP] Local variable protection

2011-10-13 Thread Tedd Sperling
>> On Oct 12, 2011, at 4:24 PM, Ken Robinson wrote: >> Yes, but scope does not necessarily protect a value. Within a function >> globals are out of scope, but their values can still be accessed through >> $GLOBALS. Tangental to the main point (and probably obvious to many) but I used to believe

[PHP] Re: Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Ian
On 13/10/2011 13:29, Nick Khamis wrote: > Hello Everyone, > > I am trying to compile php from source using the following config: > > ./configure --prefix=/usr/local/php > --with-apxs2=/usr/local/ > apache/bin/apxs > --with-config-file-path=/usr/local/php > --with-mcrypt=/usr/local/bin/mcrypt --wi

Re: [PHP] Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Nilesh Govindarajan
On 10/13/2011 05:59 PM, Nick Khamis wrote: > Hello Everyone, > > I am trying to compile php from source using the following config: > > ./configure --prefix=/usr/local/php > --with-apxs2=/usr/local/ > apache/bin/apxs > --with-config-file-path=/usr/local/php > --with-mcrypt=/usr/local/bin/mcrypt -

[PHP] Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Nick Khamis
Hello Everyone, I am trying to compile php from source using the following config: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/ apache/bin/apxs --with-config-file-path=/usr/local/php --with-mcrypt=/usr/local/bin/mcrypt --with-mysqli --with-gettext=./ext/gettext --with-pear --with-

[PHP] Compile PHP with MySQL support

2011-10-13 Thread Nick Khamis
Hello Everyone, I am trying to compile php from source using the following config: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/php --with-mcrypt=/usr/local/bin/mcrypt --with-mysqli --with-gettext=./ext/gettext --with-pear --with-l

Re: [PHP] Local variable protection

2011-10-13 Thread Benjamin Coddington
On Oct 13, 2011, at 5:05 AM, Stuart Dallas wrote: > On 12 Oct 2011, at 21:06, Benjamin Coddington wrote: > >> Are there any assurances that function local variables are protected from >> code calling the function? >> >> For example, I would like to provide some cryptographic functions such as

Re: [PHP] Local variable protection

2011-10-13 Thread Stuart Dallas
On 12 Oct 2011, at 21:06, Benjamin Coddington wrote: > Are there any assurances that function local variables are protected from > code calling the function? > > For example, I would like to provide some cryptographic functions such as > > function org_secure_string($string) { > $org_key