[PHP] Good tutorial for compiling last PHP with Apache support from source

2012-10-01 Thread Alan Hoffmeister
Hello fellows, Does any one know a good guide for noobs to compile last PHP with Apache support from source code? I was planning to use Ubuntu 11.10. Already googled it but could only find old references that cannot be used anymore. Thanks. -- Att, Alan Hoffmeister -- PHP General Mailing List

Re: [PHP] Basic Statistics

2012-10-01 Thread Sebastian Krebs
Hi, Something like http://php.net/ref.stats ? Regards, Sebastian Am 01.10.2012 18:37, schrieb George R Smith: Can anyone recommend a basic php stat package, easy to install and use. Just basic stuff like mean, median, range std dev etc thanks george -- PHP General Mailing List (http://w

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tim Dunphy
> > I think the comment about your "cannot insert query" was because it really > did not make sense. Once truly cannot "insert a query". Since you ask > tho, a more approp message might be > "Insert query failed to execute.Error returned was " . mysqli_error() > . "Query was $q" > > As for your i

[PHP] Basic Statistics

2012-10-01 Thread George R Smith
Can anyone recommend a basic php stat package, easy to install and use. Just basic stuff like mean, median, range std dev etc thanks george

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:20 PM, Tim Dunphy wrote: hey thanks guys adding debugging info worked. Actually it was mysqli_error() providing me with a specific error of where the problem was. Cannot insert query:Duplicate entry '0' for key 'PRIMARY' This is the data in the table mysql> select * from guita

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tim Dunphy
hey thanks guys adding debugging info worked. Actually it was mysqli_error() providing me with a specific error of where the problem was. Cannot insert query:Duplicate entry '0' for key 'PRIMARY' This is the data in the table mysql> select * from guitarwars; ++-+

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
oops - I added a an extra "id" field. There were only 4 in OP's DESCRIBE email. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this for

Re: [PHP] php can't insert data mysql table

2012-10-01 Thread Stuart Dallas
On 1 Oct 2012, at 05:32, Tim Dunphy wrote: > Hello list, > > I'm trying to learn and get comfortable with HTML forms in PHP. In one > example I am trying to include a file upload in one of the forms. I can > connect to the database but for some reason the MySQL query string is bad. > I've been o

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 9:12 AM, Tommy Pham wrote: On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner wrote: In this case, I do think that your insert statement is incorrect - I could be wrong. I think the VALUES clause s/b just 'VALUE'. Also if you added MYSQLI_ERROR to your error handling you should get a ver

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tommy Pham
On Mon, Oct 1, 2012 at 6:03 AM, Jim Giner wrote: > In this case, I do think that your insert statement is incorrect - I could > be wrong. I think the VALUES clause s/b just 'VALUE'. Also if you added > MYSQLI_ERROR to your error handling you should get a very helpful message. > VALUES also wor

[PHP] Re: php can't insert data mysql table

2012-10-01 Thread Jim Giner
On 10/1/2012 12:32 AM, Tim Dunphy wrote: Hello list, I'm trying to learn and get comfortable with HTML forms in PHP. In one example I am trying to include a file upload in one of the forms. I can connect to the database but for some reason the MySQL query string is bad. I've been over this for

Re: [PHP] SSHA Password Encryption

2012-10-01 Thread viper
On Mon, Oct 1, 2012 at 1:01 PM, Coşkun Bağrıaçık wrote: > Hi guys, > > I wanna change password into ldap directory, but password's encryption is > SSHA. > How do I encrypt the string to SSHA from php ? http://php.net/manual/en/function.sha1.php look @ user contribuited notes for "SSHA LDAP pass

Re: [PHP] SSHA Password Encryption

2012-10-01 Thread Matijn Woudt
On Mon, Oct 1, 2012 at 1:01 PM, Coşkun Bağrıaçık wrote: > Hi guys, > > I wanna change password into ldap directory, but password's encryption is > SSHA. > How do I encrypt the string to SSHA from php ? > > Thanks. > Don't want to be rude, but did you try Google? There are plenty examples out ther

[PHP] SSHA Password Encryption

2012-10-01 Thread Coşkun Bağrıaçık
Hi guys, I wanna change password into ldap directory, but password's encryption is SSHA. How do I encrypt the string to SSHA from php ? Thanks. -- *Coşkun Bağrıaçık* *Mustafa Kemal Üniversitesi BAUM*