[PHP] Hmmm? PHP+PostgreSQL

2001-10-24 Thread Alexey Prohorenko

I've installed PostgreSQL into /usr/local/pgsql, then I tried
to include into my PHP support for PostgreSQL and made next:
(I had pre-compiled support for mySQL before that)

make clean
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning 
--enable-track-vars --with-pgsql --with-mysql
make
make install

(I have mySQL, too)
Compilation process was great, no errors. 
Nevertheless, next little PHP script:

html
head
titletesting needed functions of current-gtlg with PHP+PostgreSQL/title
/head
body bgcolor=white
?php
$conn = pg_connect (host=localhost port=5432 dbname=test user=postgres);
?
/body
/html

still says:
Fatal error: Call to undefined function: pg_connect() in 
/usr/local/apache/htdocs/pg-php/index.php on line 7

What I did wrong, guys?

Will be looking forward your answer,
please, CC: to [EMAIL PROTECTED]

Thanks.

-- 
green
[http://www.extrasy.net] 

-- 
PHP General 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] LONGINT... ? to be or not to be?...

2001-08-28 Thread Alexey Prohorenko

Hello,

I have one question. How can PHP work with longint (in C we call
them unsigned long) variables?
F.e., I want to do next thing:

65536  4096 = 0 (this is right)
65536  65536 = 65536 (again, everything is okay)
196608  65536 = 65536 (perfect, it works great)

but,

3221225472  1073741824 = 0 (this is wrong, right answer isn't 0
 but 2147483648)

So, can anybody help me with this? Any suggestions? 

Thanks, anyway. Looking forward your answers.
Will check my mailbox every 5 minutes. :-)

-- 
green
[http://www.extrasy.net] 
[http://www.unix-how-to.net]

-- 
PHP General 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]