Re: [PHP] Brandon Rampersad wants to chat

2010-05-20 Thread Jochen Schultz
You are inviting the whole general list at once? "Powerful spam protection" doesn't work for outgoing mails? Brandon Rampersad schrieb: --- Brandon Rampersad wants to stay in better touch using some of Google's coolest new pr

[PHP] Re: PDO don't know which is mysql server charset?

2010-05-20 Thread cleverpig
But if I use PDO's query function,there is all right without set charset: $result=$myPDO->query("SELECT * FROM guests ORDER BY lname,fname"); while($row=$result->fetch(PDO::FETCH_ASSOC)){ echo $row["fname"]." ". $row["lname"]; } 2010/5/21 cleverpig : > hi, everybody! > > I encountered a pr

[PHP] Re: [GENERAL] [PHP] Some undefined function errors

2010-05-20 Thread Ketema Harris
you might want to also check your architecture flags for your compiler. i ran into this problem on a mac when I was compiling php and by default it tries to make a 32 bit and 64 bit binary, but pg was compiled as 64 bit only. I found that the php compile did not fail, but i was "missing" some f

Re: [PHP] How to get input from socket client

2010-05-20 Thread Ryan Sun
Thanks for your reply > First, I don't think feof() will do what you think it does. I > wouldn't expect it to show up until after the other end has actually > closed the connection. I found unread_bytes in stream_get_meta_data should be more reliable > TCP is a stream protocol, there > are no gu

Re: [PHP] Some undefined function errors

2010-05-20 Thread Fernando
So php is loading pg. How are you calling these functions? Can you connect or does pg_connect() gives the same error? On 20/05/2010 12:10, Giancarlo Boaron wrote: Yes. Phpinfo() tells me it's ok: pgsql PostgreSQL Support enabled PostgreSQL(libpq) Version 8.4.4 Multibyte character support

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 12:43 PM, Ashley Sheridan wrote: On Thu, 2010-05-20 at 12:40 -0400, Al wrote: On 5/20/2010 12:02 PM, Jim Lucas wrote: Al wrote: On 5/20/2010 11:23 AM, David Otton wrote: On 20 May 2010 15:52, Alwrote: I agree blacklisting is a flawed approach in general. My approach i

Re: [PHP] Question about a security function

2010-05-20 Thread Ashley Sheridan
On Thu, 2010-05-20 at 12:40 -0400, Al wrote: > > On 5/20/2010 12:02 PM, Jim Lucas wrote: > > Al wrote: > >> > >> > >> On 5/20/2010 11:23 AM, David Otton wrote: > >>> On 20 May 2010 15:52, Al wrote: > >>> > I agree blacklisting is a flawed approach in general. My approach is to > stric

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 12:02 PM, Jim Lucas wrote: Al wrote: On 5/20/2010 11:23 AM, David Otton wrote: On 20 May 2010 15:52, Al wrote: I agree blacklisting is a flawed approach in general. My approach is to strictly confine entry text to a whitelist of benign, acceptable tags. The But that's not

Re: [PHP] Some undefined function errors

2010-05-20 Thread Ashley Sheridan
On Thu, 2010-05-20 at 09:21 -0700, Giancarlo Boaron wrote: > Hi Jim. > > I think it depends on each server configuration but I checked in my server > and I don't have the 'pgsql.so' and 'psql.ini' files and neither the 'www' > directory. > > My Apache version is 2.2.15 and my root directory is

Re: [PHP] Some undefined function errors

2010-05-20 Thread Giancarlo Boaron
Hi Jim. I think it depends on each server configuration but I checked in my server and I don't have the 'pgsql.so' and 'psql.ini' files and neither the 'www' directory. My Apache version is 2.2.15 and my root directory is /usr/local/apache2/htdocs. Thank you. --- Em qui, 20/5/10, Jim Lucas

Re: [PHP] Some undefined function errors

2010-05-20 Thread Giancarlo Boaron
Yes. Phpinfo() tells me it's ok: pgsql PostgreSQL Support enabled PostgreSQL(libpq) Version 8.4.4 Multibyte character support disabled SSL support enabled Active Persistent Links 0 Active Links 0 Directive Local Value Master Value pgsql.allow_persistent On On pgsql.auto_reset_pe

Re: [PHP] Some undefined function errors

2010-05-20 Thread Jim Lucas
Giancarlo Boaron wrote: > Hi all. > > Recently, I wrote an email about the problem I was having with some Postgres > functions that when those functions were called, I received the following > error: "Call to undefined function ". > > After some answers, I decided to rebuild a brand new linux v

Re: [PHP] Question about a security function

2010-05-20 Thread Jim Lucas
Al wrote: > > > On 5/20/2010 11:23 AM, David Otton wrote: >> On 20 May 2010 15:52, Al wrote: >> >>> I agree blacklisting is a flawed approach in general. My approach is to >>> strictly confine entry text to a whitelist of benign, acceptable >>> tags. The >> >> But that's not what you've done. Yo

Re: [PHP] Question about a security function

2010-05-20 Thread Ashley Sheridan
On Thu, 2010-05-20 at 11:51 -0400, Al wrote: > > On 5/20/2010 11:23 AM, David Otton wrote: > > On 20 May 2010 15:52, Al wrote: > > > >> I agree blacklisting is a flawed approach in general. My approach is to > >> strictly confine entry text to a whitelist of benign, acceptable tags. The > > > >

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 11:23 AM, David Otton wrote: On 20 May 2010 15:52, Al wrote: I agree blacklisting is a flawed approach in general. My approach is to strictly confine entry text to a whitelist of benign, acceptable tags. The But that's not what you've done. You've blacklisted the following pat

Re: [PHP] Some undefined function errors

2010-05-20 Thread Fernando
Sorry I miss read the question. It does seem that php is not picking up the pg module and cannot find the functions. I assume Postgresql is in fact installed at /usr/local/pgsql. If you run phpinfo(); can you see that PG is installed? On 20/05/2010 10:46, Giancarlo Boaron wrote: ** I mak

Re: [PHP] Question about a security function

2010-05-20 Thread David Otton
On 20 May 2010 15:52, Al wrote: > I agree blacklisting is a flawed approach in general. My approach is to > strictly confine entry text to a whitelist of benign, acceptable tags. The But that's not what you've done. You've blacklisted the following patterns: "\ would sail straight through tha

Re: [PHP] Question about a security function

2010-05-20 Thread Al
On 5/20/2010 10:07 AM, Ashley Sheridan wrote: On Thu, 2010-05-20 at 14:27 +0100, David Otton wrote: On 20 May 2010 13:53, Al wrote: I have a password-protected, user, on-line editor that I'm hardening against hackers just in case a user's pw is stolen or local PC is infected. The user can

Re: [PHP] Content question

2010-05-20 Thread tedd
At 1:07 PM -0400 5/19/10, Ernie Kemp wrote: This is not a direct PHP question but I will be using PHP in the website. After a website has been created there will a need to changes say a product or service page over time. The client asking how he will be able to make changes to these pages. Yes

Re: [PHP] Question about a security function

2010-05-20 Thread Ashley Sheridan
On Thu, 2010-05-20 at 14:27 +0100, David Otton wrote: > On 20 May 2010 13:53, Al wrote: > > > > I have a password-protected, user, on-line editor that I'm hardening against > > hackers just in case a user's pw is stolen or local PC is infected. > > > > The user can enter html tags; but, I restric

[PHP] Some undefined function errors

2010-05-20 Thread Giancarlo Boaron
Hi all. Recently, I wrote an email about the problem I was having with some Postgres functions that when those functions were called, I received the following error: "Call to undefined function ". After some answers, I decided to rebuild a brand new linux virtual machine with Apache + PHP + Po

Re: [PHP] Question about a security function

2010-05-20 Thread David Otton
On 20 May 2010 13:53, Al wrote: > > I have a password-protected, user, on-line editor that I'm hardening against > hackers just in case a user's pw is stolen or local PC is infected. > > The user can enter html tags; but, I restrict the acceptable tags to benign > ones. e.g., , , , etc.  e.g., no

Re: [PHP] Question about a security function

2010-05-20 Thread Peter Lind
On 20 May 2010 14:53, Al wrote: > I have a password-protected, user, on-line editor that I'm hardening against > hackers just in case a user's pw is stolen or local PC is infected. > > The user can enter html tags; but, I restrict the acceptable tags to benign > ones. e.g., , , , etc.  e.g., no >

[PHP] Question about a security function

2010-05-20 Thread Al
I have a password-protected, user, on-line editor that I'm hardening against hackers just in case a user's pw is stolen or local PC is infected. The user can enter html tags; but, I restrict the acceptable tags to benign ones. e.g., , , , etc. e.g., no Just to be extra safe, I've added a fun

RE: [PHP] Automatic PHP Security tool

2010-05-20 Thread Bob McConnell
From: Juan Rodriguez Monti > I would like to know if there´s some App that run automatic test > against a PHP Application to detect security issues, potential bugs > and so on. > > I know this kind of applications exists for other fields of IT, but I > don´t know if there are some application or