Re: [PHP] Log Lib Recommendation

2007-03-18 Thread Chris
John Comerford wrote: Hi Folks, Could someone recommend a good library for error logging. What I am looking for is something that handles: 1) Error Log written to a DB (mysql) 2) Logging of PHP errors 3) Logging of MySQL errors 4) Logging of Custom errors/events 5) A log viewer would be nice

Re: [PHP] install problems

2007-03-18 Thread Chris
jekillen wrote: Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1 --with-apxs=/usr/local/apache/bin etc etc libphp5.so is no where to be found. It sure is no

Re: [PHP] Re: install problems

2007-03-18 Thread jekillen
On Mar 18, 2007, at 7:51 PM, Haydar TUNA wrote: Hello, This is php.install question but I can help you. Two weeks ago, I faced same problem with Apache 2.2.4 and PHP 5.2.1 in Redhat Linux AS 4 Update 3 operating system. I tried to install apache and php together but I faced to same

[PHP] crc32() and hash('crc32') Differ

2007-03-18 Thread Morgan Doocy
Hi, I'm curious why I'm getting two different digests of the same message using crc32() and hash('crc32'). I've tried both hash('crc32') and hash('crc32b'), and neither match my crc32(). Some example code: echo join("\n", array_map(create_function('$vals', 'return join(" => ", $vals);'), ar

[PHP] Re: install problems

2007-03-18 Thread Haydar TUNA
Hello, This is php.install question but I can help you. Two weeks ago, I faced same problem with Apache 2.2.4 and PHP 5.2.1 in Redhat Linux AS 4 Update 3 operating system. I tried to install apache and php together but I faced to same problem. I tried to install PHP 5.1.6 and Apache 2.

Re: [PHP] Log Lib Recommendation

2007-03-18 Thread Nicholas Yim
Hello John Comerford, log4php,you can find it on apache.org Best regards, === At 2007-03-19, 08:22:13 you wrote: === >Hi Folks, > >Could someone recommend a good library for error logging. What I am >looking for is something that handles: > >1) Error Log written to a DB (mysql) >2)

[PHP] Re: PECL help

2007-03-18 Thread Mike Payson
Never mind... should be temp_dir, not temp-dir... to make you all read that long message for such a silly mistake! On 3/18/07, Mike Payson <[EMAIL PROTECTED]> wrote: I'm trying to install the extension runkit on my shared server. I successfully installed a local copy of PEAR via the instruction

[PHP] PECL help

2007-03-18 Thread Mike Payson
I'm trying to install the extension runkit on my shared server. I successfully installed a local copy of PEAR via the instructions at http://pear.php.net/manual/en/installation.shared.php. Here is the resulting configuration: Configuration (channel pear.php.net): =

[PHP] Log Lib Recommendation

2007-03-18 Thread John Comerford
Hi Folks, Could someone recommend a good library for error logging. What I am looking for is something that handles: 1) Error Log written to a DB (mysql) 2) Logging of PHP errors 3) Logging of MySQL errors 4) Logging of Custom errors/events 5) A log viewer would be nice but not really essenti

[PHP] install problems

2007-03-18 Thread jekillen
Hello; Well, this one I cannot seem to figure out: I installed Apache 1.3.37 with ./configure --enable-module=so --enable-module=rewrite --enable-shared=max Then tried to install php 5.2.1 --with-apxs=/usr/local/apache/bin etc etc libphp5.so is no where to be found. It sure is not in apache/lib

Re: [PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Larry Garfield
On Sunday 18 March 2007 2:17 pm, Robert Cummings wrote: > On Sun, 2007-03-18 at 13:58 -0500, Larry Garfield wrote: > > On Sunday 18 March 2007 5:57 am, Don Don wrote: > > > Hi all, > > > my program outputs some characters along with text from the database, > > > these texts contain chars like ‘

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Al
It doesn't on my Linux system glob("../path/*"); shows files and dirs; foo.ext and dirs Exactly the same as glob("../path/*.*"); I thought using just plain "*" would ignore files; but, it doesn't. Jochem Maas wrote: Al wrote: I thought the "." had meaning since the manual user notes used

Re: [PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Robert Cummings
On Sun, 2007-03-18 at 13:58 -0500, Larry Garfield wrote: > On Sunday 18 March 2007 5:57 am, Don Don wrote: > > Hi all, > > my program outputs some characters along with text from the database, > > these texts contain chars like ‘ ’. How can i get rid of theses chars > > and display their mea

Re: [PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Larry Garfield
On Sunday 18 March 2007 5:57 am, Don Don wrote: > Hi all, > my program outputs some characters along with text from the database, > these texts contain chars like ‘ ’. How can i get rid of theses chars > and display their meaning instead ? I am thinking htmlspecialchars or html > entities w

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Al
That nailed my problem. GLOB_ONLYDIR is a defined constant. It echos as 8192. I inadvertently treated it as a string with quotes, which I didn't include in my original post. I had forgotten that most function flags are simply constants which can be tested for and printed, etc. Many thanks.

[PHP] Re: Preventing unwanted chars from outputting

2007-03-18 Thread Haydar TUNA
Hello, What is your database program? If your database program is MySQL, what is your default charset of database? These questions are more importont to solve your problem.:) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department Ankara / TURKEY

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Jochem Maas
Al wrote: > I thought the "." had meaning since the manual user notes used it it means a literal dot, many people assume that glob expressions use the same syntax as regular expressions but this is not the case. > > Definitely, my php is version 4.4.4; it's on a virtual host. > > I found the gl

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Jim Lucas
Al wrote: I thought the "." had meaning since the manual user notes used it Definitely, my php is version 4.4.4; it's on a virtual host. I found the glob file for the GNU C Library and GLOB_ONLYDIR doesn't seem to be defined correctly, the file appears to rather old. echo GLOB_ONLYDIR; doe

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Al
I thought the "." had meaning since the manual user notes used it Definitely, my php is version 4.4.4; it's on a virtual host. I found the glob file for the GNU C Library and GLOB_ONLYDIR doesn't seem to be defined correctly, the file appears to rather old. I used the numerical value "8196" a

Re: [PHP] phpPgAdmin - prior version available?

2007-03-18 Thread Tijnema !
On 3/18/07, Bob Hartung <[EMAIL PROTECTED]> wrote: Hi all, I have been struggling with phpPgAdmin 4.1 - login failures. There does not yet seem to be a fix. Where can I find a prior version for FC6 - rpm, tar.gz etc. Thanks, Bob Try this one, http://ftp.uni-koeln.de/mirrors/fedora/linux/

[PHP] phpPgAdmin - prior version available?

2007-03-18 Thread Bob Hartung
Hi all, I have been struggling with phpPgAdmin 4.1 - login failures. There does not yet seem to be a fix. Where can I find a prior version for FC6 - rpm, tar.gz etc. Thanks, Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Getting last record ID created from DB

2007-03-18 Thread Satyam
- Original Message - From: I guess maybe most databases support the notion of "auto number" in some form. I haven't used MSSQL recently, but I think their solution is a GUID. You can set an auto-increment attribute on any integer data type. They also have GUIDs, which they recome

Re: [PHP] Re: Getting last record ID created from DB

2007-03-18 Thread markw
> markw@mohawksoft.com wrote: >>> On Sat, 2007-03-17 at 12:19 -0400, Mark wrote: >> There in lies the biggest problem with LAMP, and that's MySQL. The >> architecture of your methodology *only* works with MySQL, and not more >> capable databases like Oracle, DB2, or even PostgreSQL. > I too though

[PHP] Re: install php 5.2.1 with checkinstall

2007-03-18 Thread Man-wai Chang
In case you want a full ./configure line... #!/bin/bash ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-config-file-path=/etc \ --enable-track-vars \ --enable-ftp \ --enable-sysvsem \ --enable-sysvshm \ --enable-sockets \ --enable-gd-native-ttf \ --enable-memory-limit \ --enable-trans-si

[PHP] Re: install php 5.2.1 with checkinstall

2007-03-18 Thread Man-wai Chang
> # rpm -ivh php-5.2.1-1.i386.rpm > file /etc/pear.conf from install of php-5.2.1-1 conflicts with file > from package php-pear-1.4.9-4 > file /usr/share/pear/.channels/pear.php.net.reg from install of > php-5.2.1-1 conflicts with file from package php-pear-1.4.9-4 > file /usr/sha

[PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Don Don
Hi all, my program outputs some characters along with text from the database, these texts contain chars like ‘ ’. How can i get rid of theses chars and display their meaning instead ? I am thinking htmlspecialchars or html entities will do the job will it ? Cheers -

[PHP] install php 5.2.1 with checkinstall

2007-03-18 Thread Tiron Adrian
Hello, I have php 5.1.6 ,the latest available with yum and i wanted to upgrade to 5.2.1 I have downloade 5.2.1 run ./configure,make and the checkinstall. When i wanted to install the newly created rpm i got the following errors: # rpm -ivh php-5.2.1-1.i386.rpm Preparing...

Re: [PHP] works at command line but not in apache

2007-03-18 Thread Jim Lucas
Tijnema ! wrote: On 3/18/07, rwhartung <[EMAIL PROTECTED]> wrote: Thanks, but I have these changes in and it still will not connect: file: pg_hba.conf: # IPv4 local connections: hostall all 127.0.0.1/32 ident sameuser postgrsql.conf: listen_addresses = 'localhost

Re: [PHP] glob(path_pattern, GLOB_ONLYDIR)

2007-03-18 Thread Jim Lucas
Al wrote: I can't use flag "GLOB_ONLYDIR" to work on a Linux, php4.4.4. I only want the dirs. This works; sort of: print_r(glob('../*',)); //It lists all the files AND directories. Yet it seems to ignore the lack of ".*" and finds xxx.yyy. That's OK, I can delete the files remember this is

Re: [PHP] works at command line but not in apache

2007-03-18 Thread Tijnema !
On 3/18/07, rwhartung <[EMAIL PROTECTED]> wrote: Thanks, but I have these changes in and it still will not connect: file: pg_hba.conf: # IPv4 local connections: hostall all 127.0.0.1/32 ident sameuser postgrsql.conf: listen_addresses = 'localhost' port = 5432 I

Re: [PHP] works at command line but not in apache

2007-03-18 Thread Jim Lucas
rwhartung wrote: Hi, I have this short php script: [op;ening removed. $db = pg_connect('dbname=bpsimple user=minitwr password=RWHart') ; print $db . "" . "\n" ; if ($db) { print 'Connection attempt succeeded.' . "" . "\n" ; } else { print 'Connection attempt failed.'. "" . "\n" ; }

Re: [PHP] Re: Getting last record ID created from DB

2007-03-18 Thread Jim Lucas
markw@mohawksoft.com wrote: On Sat, 2007-03-17 at 12:19 -0400, Mark wrote: Robert Cummings wrote: On Sat, 2007-03-17 at 09:43 -0500, Myron Turner wrote: Colin Guthrie wrote: Philip Thompson wrote: For auto increment values, you don't have to specify the id. For example: INSERT INTO t_user