Re: [PHP-DB] Loading extensions

2001-03-20 Thread Yasuo Ohgaki
I've posted notes on PHP Manual http://www.php.net/manual/en/install-windows.php It might help. -- Yasuo Ohgaki ""Shahmat Dahlan"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have IIS 4 with PHP 4pl1 run

Re: [PHP-DB] functions and using vars outside of them

2001-03-30 Thread Yasuo Ohgaki
I think it's time to read the manual. http://jp.php.net/manual/en/langref.php http://jp.php.net/manual/en/language.variables.scope.php http://jp.php.net/manual/en/functions.php -- Yasuo Ohgaki ""olinux"" <[EMAIL PROTECTED]> wrote in message 000f01c0b83

Re: [PHP-DB] Problem with single qoutes

2001-03-30 Thread Yasuo Ohgaki
pends on your DB. -- Yasuo Ohgaki ""Matt Braynard"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have created a news script and to my dismay, the script is breaking when > there is a single quote - ' - in

[PHP-DB] Re: PHP + Postgresql + Linux = Frustration

2002-01-27 Thread Yasuo Ohgaki
lation instruction closely (PostgreSQL, Apache, PHP) there would be no problems. Make sure you build/install them with this order. PostgreSQL->Apache->PHP. > > Is there an easy way to do this sort of stuff on Linux or is it better to > just buy off the shelf products that work?

[PHP-DB] Re: Problems with pg_FieldNum

2002-02-13 Thread Yasuo Ohgaki
no matter what I pass to pg_FieldNum(), I get -1 (error) in > return. > > Anyone spot what I am doing wrong? > > I am using PostgreSQL 7.0.2 and PHP 4.0.3 on RH Linux 7.0. > I think you need to upgrade your PHP versoin. I'm using 4.2.0-dev/PostgreSQL 7.1.3. I do not have

Re: [PHP-DB] Session confusion :-(

2002-02-18 Thread Yasuo Ohgaki
Read current manual page. If you still have problem, let me know what's the problem. http://www.php.net/manual/en/ref.session.php -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: Postgress+ODBC+BLOB

2002-03-01 Thread Yasuo Ohgaki
r that. > I can't use Large Object cause I connecting to Postgres via ODBC > ( there is no support for large objects ). > Have anybody solved this problem? is there any alternative datatypes or ways > of solution? If you are using PostgreSQL and PHP, just use pgsql extension. -- Y

[PHP-DB] Re: Postgress+ODBC+BLOB

2002-03-01 Thread Yasuo Ohgaki
r that. > I can't use Large Object cause I connecting to Postgres via ODBC > ( there is no support for large objects ). > Have anybody solved this problem? is there any alternative datatypes or ways > of solution? If you are using PostgreSQL and PHP, just use pgsql extension. -- Y

[PHP-DB] Re: pg_pconnect Causing SegFaults?!?!

2002-03-01 Thread Yasuo Ohgaki
Could you post backtrace and CC the meesage to me? I'm almost sure pgsql module will never cause segfault like this, I can tell more if you send backtrace. PS: If you don't know how to get backtrace, visit http://bugs.php.net/ -- Yasuo Ohgaki Kevin Traas wrote: > Greet

[PHP-DB] New PostgreSQL functions

2002-04-07 Thread Yasuo Ohgaki
you can replace old PostgreSQL module by new one. There are many new functions that will be avaiable in PHP 4.2.0 also. Bug reports and comments are welcome. Enjoy. -- Yasuo Ohgaki [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] New PostgreSQL functions

2002-04-08 Thread Yasuo Ohgaki
; sometimes my windows counterparts (who write in ASP or iHTML) > think it's funny PHP has so many ways to do certain things, and so > few ways to do other things. =) Oh no. You are saying PHP is like a PERL. PHP stands for "People Hate PERL". (Just kidding, I like PERL and other

Re: [PHP-DB] New PostgreSQL functions

2002-04-08 Thread Yasuo Ohgaki
Adam Voigt wrote: > think it's funny PHP has so many ways to do certain things, and so > few ways to do other things. =) I forgot to ask. May I ask what kind of features/functions are missing? It does not have to be about PostgreSQL module. -- Yasuo Ohgaki -- PHP Database Mailing

Re: [PHP-DB] New PostgreSQL functions

2002-04-08 Thread Yasuo Ohgaki
ne. > 2. Weak Error Handling, We could not get the custom error PHP5 has "try", "catch". However, there are many rooms for improvements... > in ASP or iHTML for that matter, I'm a pure PHP evangelist from > top to bottom. :) -- Yasuo Ohgaki > > Adam Voi

[PHP-DB] Re: Mysql and memory issue

2002-04-09 Thread Yasuo Ohgaki
ficient? Is it my modelling-scheme that > sucks or could it be that mysql is leaking memory in some way? > Would it help to move mysql to a separate machine? If you do normal query, mysql store whole result in memory! You can avoid that. It's in the manual. -- Yasuo Ohgaki

[PHP-DB] Re: Mysql and memory issue

2002-04-10 Thread Yasuo Ohgaki
server process can allocate... -- Yasuo Ohgaki Trond Erling Hundal wrote: > Thanks Yasuo Ohgaki and Gurhan Ozen. > > My system has 256mb of DDR ram, it's a Intel PIII 900Mhz processor. > > Ps -aux | grep mysql shows that about all of the mysql connections uses > about 15mb o

[PHP-DB] Re: Postgres-Php-Transaction

2002-05-20 Thread Yasuo Ohgaki
Does this happen with latest PHP? If yes, please report this as a bug. PS: Current PostgreSQL module is trying to rollback uncommitted transactions when request is finished. This is old postgresql module issue, probably. -- Yasuo Ohgaki Max Buvry wrote: > Hi, > > I use Postgresql

[PHP-DB] Re: [Q] EXT SQL IN PostgreSQL

2002-06-21 Thread Yasuo Ohgaki
print all records in a result set. -- Yasuo Ohgaki Brown wrote: > # Sorry to my poor English > > I have a procedure ( named by select_table ) > > ## > BEGIN; > select select_table('select_cur','tab

[PHP-DB] Re: Session data not being deleted on browser close.

2002-07-09 Thread Yasuo Ohgaki
Don't cross post such question... All you need to understand is how cookie is managed unless you are passing session id via URL. Read RFC2965 and RFC2964. You probably want to read netscape cookie spec also. -- Yasuo Ohgaki Youngie wrote: > Why would my session data not be deleted

[PHP-DB] Re: pg_fetch_result returns something other than boolean???

2002-09-03 Thread Yasuo Ohgaki
Matthew Newby wrote: > I am having trouble with the pg_fetch_result function when trying to access > a boolean field in a PostgreSQL database. Here's the code snippet: It's a spec. PostgresSQL's boolean is returned as 't' or 'f' and both are string. T

[PHP-DB] Re: pg_query creates wrong query

2002-09-05 Thread Yasuo Ohgaki
table ttt ("ThisIsNumber" int); CREATE test=# \d ttt Table "ttt" Column| Type | Modifiers --+-+--- ThisIsNumber | integer | test=# create table (ThisIsNumber int); CREATE test=# \d Table "" Column| T

[PHP-DB] Re: pg_fetch_result returns something other than boolean???

2002-09-05 Thread Yasuo Ohgaki
xplicitly > states: I didn't notice this documentation error. (I suppose it was correct when it is written, but psql return 't' or 'f' now) Thanks. It is fixed. -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: unicode with postgresql

2002-09-25 Thread Yasuo Ohgaki
.postgresql.org/idocs/ -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: Postgres-Transaction-user_ignore_abort-Connection stop by theclient

2002-10-16 Thread Yasuo Ohgaki
; UPDATE the second bank account with v+1 (debit) > COMMIT WORK It works for me. (at least with CVS version) If there is uncommitted transaction, pgsql module rollback automatically. BTW, if you have too long timeout limit, your site became weaker for DoS attack. -- Yasuo Ohga

[PHP-DB] Re: PostgreSQL and HTML output

2002-10-18 Thread Yasuo Ohgaki
Edwin Robertson wrote: > With psql you can get all your output in HTML format. Anyone know of a way > to do this in PHP? It's psql feature and there is no automatic HTML format in PHP's pgsql module. If really would like, you can use passthru() and psql. where

[PHP-DB] Re: PostgreSQL and HTML output

2002-10-18 Thread Yasuo Ohgaki
ould like, you can use passthru() and psql. > > passthru('/usr/local/pgsql/bin/psql -f select.sql -H -U yohgaki -d test'); > ?> > > where "select.sql" is query you need. > > -- > Yasuo Ohgaki > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Automattic Rollback on User Cancel with MySQL

2002-10-19 Thread Yasuo Ohgaki
IIRC, someone added automatic rollback to MySQL from PHP 4.3.0 just like PostgreSQL. BTW, PostgreSQL module rollbacks uncommitted transaction automatically from PHP3. -- Yasuo Ohgaki John W. Holmes wrote: I Am using the latest PHP version 4.2.3 with MySQL 3.23.51-max. I use InnoDB tables for

Re: [PHP-DB] create type

2001-04-11 Thread Yasuo Ohgaki
Why you want to create MAC address type? It's already there in V7. macaddr| XX:XX:XX:XX:XX, MAC address Besides, do you have functions defined for INPUT and OUTPUT? You must define them. Refer to PostgreSQL User Manual for details. Regards, -- Yasuo Ohgaki "Olivier Thauvi

Re: [PHP-DB] connection to database

2001-04-11 Thread Yasuo Ohgaki
PHP takes care of closing it, just like other resources. However, it seems there is bug in closing none persistent PgSQL link in current version. 4.0.5 hopefully fix this. Regards, -- Yasuo Ohgaki "Sharmad Naik" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"&

Re: [PHP-DB] connection to database

2001-04-12 Thread Yasuo Ohgaki
ively faster, I think it's acceptable to use pg_Connect() in most cases. I haven't tested how transaction will be performed on persistent link. Does anyone know transaction issues on persistent link? What happens if there are multiple transactions on the same database link? Thanks,

Re: [PHP-DB] Postgres auto increment.

2001-04-15 Thread Yasuo Ohgaki
this helps. -- Yasuo Ohgaki "John Starkey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've been using mysql too much lately. > > Can anyone tell me how to set up an auto increment in postgres? I need > to select a r

Re: [PHP-DB] Connecting to a remote postgres database

2001-04-18 Thread Yasuo Ohgaki
Did you have install pgsql.dll in your system directory? and load the extension? I noticed pg_cmdtuples() is missing, though. -- Yasuo Ohgaki ""Jerome O Macaranas"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > using PHP 4.0 under Win2K IIS 5.0

Re: [PHP-DB] Connecting to a remote postgres database

2001-04-19 Thread Yasuo Ohgaki
pg_cmdtuples(), it would be really nice. -- Yasuo Ohgaki ""Jerome O Macaranas"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > using PHP 4.0 under Win2K IIS 5.0 > > got this error > -> Fatal error: Call to undefined function: pg_connect() in C

Re: [PHP-DB] Problem with session vars !

2001-04-23 Thread Yasuo Ohgaki
It not related to database. Anyway, If you use $HTTP_SESSION_VARS, forget about session_(un)register(). (Do not use them) Just use $HTTP_SESSION_VARS. It's known issue. (If you use global vars, only use global vars and use session_(un)register()) Regards, -- Yasuo Ohgaki ""

[PHP-DB] PostgreSQL7.1: It's worth to upgrade.

2001-04-23 Thread Yasuo Ohgaki
h 7.1 libpq for PHP4.0.4pl1, could you tell where to get or send it to me?) -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DB] apache 1.3.9 pgsql 7.1 php4 on solaris 2.7

2001-04-25 Thread Yasuo Ohgaki
pq7.1. With 7.0, it will gives you a lot of troubles. Regards, -- Yasuo Ohgaki ""Marc Blum"" <[EMAIL PROTECTED]> wrote in message 9c64tv$k7u$[EMAIL PROTECTED]">news:9c64tv$k7u$[EMAIL PROTECTED]... > Hello > > We're trying to get this running. ph

Re: [PHP-DB] compilation does not support pg_cmdtuples()?

2001-04-25 Thread Yasuo Ohgaki
E_ALL for one, different setting for other. Regards, -- Yasuo Ohgaki ""Brad Hubbard"" <[EMAIL PROTECTED]> wrote in message 015301c0cdfc$bc211030$3200a8c0@BADNOTE">news:015301c0cdfc$bc211030$3200a8c0@BADNOTE... > Does anyone know what causes PHP to generate the

Re: [PHP-DB] pgsql 7.1 build

2001-05-02 Thread Yasuo Ohgaki
gards, -- Yasuo Ohgaki "Ron Patterson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I'm building the new PHP-4.0.5 with support for PostgreSQL 7.1 database and get the following build error: gmake[3]: Entering directory `/

[PHP-DB] Re: Postgresql/PHP backend error

2001-08-21 Thread Yasuo Ohgaki
o post your problem in PostgreSQL list. If you are not using 7.1.2, upgrade to 7.1.2 see if you have problem. If you get core file, confiugre/build PostgreSQL with debug and post back trace to list. -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP-DB] Re: PostgreSQL connections within classes & collisions.

2001-08-26 Thread Yasuo Ohgaki
I have very smilar code and they are working for me. I'm using - PHP4.0.6 and PHP4.0.7RC1 - PostgreSQL 7.1.3 They are built from source. Your PHP might be linked against older libpq(?) than your PostgreSQL? -- Yasuo Ohgaki Justin Buist wrote: > I recently did a re-install of Postgr

[PHP-DB] Re: PostgreSQL connections within classes & collisions.

2001-08-26 Thread Yasuo Ohgaki
I have very smilar code and they are working for me. I'm using - PHP4.0.6 and PHP4.0.7RC1 - PostgreSQL 7.1.3 They are built from source. Your PHP might be linked against older libpq(?) than your PostgreSQL? -- Yasuo Ohgaki Justin Buist wrote: > I recently did a re-install of Postgr

[PHP-DB] Re: Who is the interbase maintainer?

2001-08-31 Thread Yasuo Ohgaki
php-dev list ([EMAIL PROTECTED]) Someone will takes care of your patch. If you really would like to know who is the maintainer, take a look at EXTENTIONS file in source. Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

[PHP-DB] Re: Trapping and masking errors

2001-12-02 Thread Yasuo Ohgaki
> > Anyone hints, tips or just downright solutions would be greatly appreciated > :) > -torrent How about take a look at the manual page? http://www.php.net/manual/en/ref.errorfunc.php You may also be interested in output buffering. Look for ob_start(), ob_end_clean(), etc. -- Yasuo

[PHP-DB] Re: How to set SEND TIME in mail function

2001-12-07 Thread Yasuo Ohgaki
ill have problem with 4.1.0RC5, submit bug report. Regards, -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DB] Re: memory leak???

2001-12-13 Thread Yasuo Ohgaki
ad php.ini-dist or php.ini-recommened) -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP-DB] Re: PHP and dBase file support?

2001-12-13 Thread Yasuo Ohgaki
ten, no need to report this. BTW, it seems dbase extesion does not require any external lib. You should be able to use it under UNIX, if it is working :) Use of dbase for production system is not recommended as described in the manual. -- Yasuo Ohgaki -- PHP Database Mailing List (http://w

[PHP-DB] Re: Table to BIG to dump, how ?

2001-12-18 Thread Yasuo Ohgaki
me here.. > It sounds like memory limmit and bailout problem. Get rid of memory limit or increase memory limit, it this is the case. -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

[PHP-DB] Re: PHP Extensions

2001-12-19 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: > Where I can get PHP Library Extensions for linux redhat 7.1, i need > dbase library > > Thanks > > Accoding to config.m4, dbase extension does not require external lib. I might be worng, though. -- Yasuo Ohgaki -- PHP Database Mailing List (

[PHP-DB] Re: Problem with PHP4 and dba_open

2001-12-19 Thread Yasuo Ohgaki
ve extension php_db and php_dba (and some others) included in as > modules. so.. what's wrong? > > - Juffe > If you are using PostgreSQL module, do not use PostgreSQL for now. I'll work on conflict issue later, but I don't think it will be fixed any time soon -- Y

Re: [PHP-DB] Re: PHP Extensions

2001-12-20 Thread Yasuo Ohgaki
odule() function in the so file. Strange, since it is in source. Which PHP version are you using? Try 4.1.0 or 4.2.0-dev see if it helps. -- Yasuo Ohgaki _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP

[PHP-DB] Re: Saving sessions info in MySql DB

2002-01-10 Thread Yasuo Ohgaki
#x27;, value = '$value' >WHERE sesskey = '$SID' AND expiry > " . time(); > $result = mysql_query($qry); > } > } > > function sess_destroy($SID) { > global $SESS_TABLE; > > $qry = "DELETE FROM $SESS_TABLE WHERE sesskey = '$SID'"; > $result = mysql_query($qry); > } > > function sess_gc($SESS_LIFE) { > global $SESS_TABLE; > > $qry = "DELETE FROM $SESS_TABLE WHERE expiry < " . time() - $SESS_LIFE; > $result = mysql_query($qry); > > return mysql_affected_rows($result); > } > > session_set_save_handler( > "sess_open", > "sess_close", > "sess_read", > "sess_write", > "sess_destroy", > "sess_gc"); > ?> > -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP-DB] postgresql vs mysql

2002-12-27 Thread Yasuo Ohgaki
haring database server with many users until PostgreSQL 7.3) -- Yasuo Ohgaki Boaz Yahav wrote: This is why i was amazed to see this : http://www.mysql.com/eweek/index.html -Original Message- From: David Bryant [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 26, 2002 10:43 PM To: &#x

Re: [PHP-DB] postgresql vs mysql

2002-12-27 Thread Yasuo Ohgaki
ought original poster would like to compare PostgreSQL and MySQL. What's this got to do with PHP? Nada... Happy New Year! Compare performance PostgreSQL and MySQL using PHP? Have a happy new year. -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, v

[PHP-DB] Re: Upgrading PostgreSQL broke some PHP scripts

2003-01-03 Thread Yasuo Ohgaki
broken. Are you using the same version of libpq? i.e. When you connect to 7.3 backend, use libpq comes with 7.3. 7.3 is not compatible with earlier versions of libpq as noted in PostgreSQL documents. -- Yasuo Ohgaki -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http