PHP and PostgreSQL connection
PHP and PostgreSQL connection
am 11.01.2006 13:31:20 von Rafael Mora
------=_Part_2013_7175093.1136982680073
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello!
Is there any special config to connect PHP+PostgreSQL+Apache2.0.54?,
because I try to do pg_connect() and it seems that PHP doesn=B4t find the d=
b,
so please any help will be appreciated
Rafa
------=_Part_2013_7175093.1136982680073
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello!
Is there any special config to connect PHP+PostgreSQL+Apache2.0.=
54?, because I try to do pg_connect() and it seems that PHP doesn=B4t find =
the db, so please any help will be appreciated
Rafa
------=_Part_2013_7175093.1136982680073--
Re: PHP and PostgreSQL connection
am 11.01.2006 13:48:35 von Frank Bax
At 07:31 AM 1/11/06, Rafael Mora wrote:
> Is there any special config to connect PHP+PostgreSQL+Apache2.0.54?,=20
> because I try to do pg_connect() and it seems that PHP doesn=B4t find the=
=20
> db, so please any help will be appreciated
Presumably you've already installed php and pgsql. You also need to=20
install php-pgsql package; then enable the module.=20
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Re: PHP and PostgreSQL connection
am 11.01.2006 14:01:05 von Rafael Mora
------=_Part_2369_31025830.1136984465998
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I've found something about erase ";" on ";ext=3D php_pgsql" on my
php.inifile, Im working with WinXP, i put it in C:\WINDOWS as well...
anything else?, how do I enable the module??
Rafa
------=_Part_2369_31025830.1136984465998
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
I've found something about erase ";" on ";ext=3D php_pg=
sql" on my php.ini file, Im working with WinXP, i put it in C:\WINDOWS=
as well...
anything else?, how do I enable the module??
Rafa
------=_Part_2369_31025830.1136984465998--
Re: PHP and PostgreSQL connection
am 11.01.2006 14:10:38 von Javier Carlos
What does your phpinfo() says? It sould say that your version of PostgreSQL
installation is Enabled. If so, what is the error message when you try to
connect with pg_connect ?
Regards,
Javier
On Wed, 11 Jan 2006 07:48:35 -0500, Frank Bax wrote
> At 07:31 AM 1/11/06, Rafael Mora wrote:
> > Is there any special config to connect PHP+PostgreSQL+Apache2.0.54?,
> > because I try to do pg_connect() and it seems that PHP doesn´t find the
> > db, so please any help will be appreciated
>
> Presumably you've already installed php and pgsql. You also need to
> install php-pgsql package; then enable the module.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
--
nediam.com.mx
---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend
Re: PHP and PostgreSQL connection
am 11.01.2006 14:17:23 von Rafael Mora
------=_Part_2537_7071537.1136985443202
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Javier where can I find phpinfo()?? sorry I'm new with this... thanx for
your help
Rafa
------=_Part_2537_7071537.1136985443202
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Javier where can I find phpinfo()?? sorry I'm new with this... thanx f=
or your help
Rafa
------=_Part_2537_7071537.1136985443202--
Re: PHP and PostgreSQL connection
am 11.01.2006 14:41:23 von seem.iges
Hi,
make a simple text/php file e.g. info.php like this:
phpinfo();
?>
place the file into your document root dir set in apache httpd.conf.
Exec info.php in browser and you'll get a nice html table of
your php conf.
regards,
iges.
On Wednesday, 11. January 2006 15:17, you wrote:
> Javier where can I find phpinfo()?? sorry I'm new with this... thanx for
> your help
>
> Rafa
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
Re: PHP and PostgreSQL connection
am 11.01.2006 14:55:10 von Javier Carlos
This is a multi-part message in MIME format.
------=OPENWEBMAIL_ATT_0.575359069084776
Content-Type: text/plain;
charset=iso-8859-1
Create a new file with the following line:
and save as for example "hello.php" (it could be any name).
Then in your browser check it:
http://yourhost/path/to/hello.php
More information about this function: http://www.php.net/phpinfo
Regards,
Javier
PD. After you finish using this file hello.php, I recommend you to delete this file or change its permissions, or move it to another directory that it's not browsable by web.
On Wed, 11 Jan 2006 09:17:23 -0400, Rafael Mora wrote
> Javier where can I find phpinfo()?? sorry I'm new with this... thanx for your help
>
> Rafa
--
nediam.com.mx
------=OPENWEBMAIL_ATT_0.575359069084776
Content-Type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Create a new file with the following line:
<?php echo phpinfo(); ?>
and save as for example "hello.php" (it could be any name).
Then in your browser check it:
http://yourhost/path/to/hello.php
More information about this function: http://www.php.net/phpinfo
Regards,
Javier
PD. After you finish using this file hello.php, I recommend you to de=
lete this file or change its permissions, or move it to another directory t=
hat it's not browsable by web.
On Wed, 11 Jan 2006 09:17:23 -0400, Rafael Mora w=
rote
> Javier=20
where can I find phpinfo()?? sorry I'm new with this... thanx for your=20
help
> =A0
>=20
Rafa
--=20
nediam.com.mx=20
------=OPENWEBMAIL_ATT_0.575359069084776--
Re: PHP and PostgreSQL connection
am 11.01.2006 15:14:22 von Rafael Mora
------=_Part_3125_7207708.1136988862944
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Thank you all guys, it's amazing the speed of answers here!!!!, I'll be
writing you soon If I find more problems after the test, I've listened abou=
t
some install app that installs everything you need, i mean apache, php and
postgresql, have you heard about them??
Thank you very much!!
Regards from Caracas, Venezuela
Rafa
On 1/11/06, Javier Carlos wrote:
>
> Create a new file with the following line:
>
>
>
> and save as for example "hello.php" (it could be any name).
>
> Then in your browser check it:
>
> http://yourhost/path/to/hello.php
>
>
> More information about this function: http://www.php.net/phpinfo
>
> Regards,
>
> Javier
>
> PD. After you finish using this file hello.php, I recommend you to delete
> this file or change its permissions, or move it to another directory that
> it's not browsable by web.
>
>
> *On Wed, 11 Jan 2006 09:17:23 -0400, Rafael Mora wrote*
> > Javier where can I find phpinfo()?? sorry I'm new with this... thanx fo=
r
> your help
> >
> > Rafa
>
>
> --
> nediam.com.mx
>
>
------=_Part_3125_7207708.1136988862944
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Thank you all guys, it's amazing the speed of answers here!!!!, I'll b=
e writing you soon If I find more problems after the test, I've listened ab=
out some install app that installs everything you need, i mean apache=
, php and postgresql, have you heard about them??
Thank you very much!!
Regards from Caracas, Venezuela
Rafa
On 1/11/06, =
Javier Carlos <nediam@nediam=
..com.mx> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Create a new file with the follo=
wing line:
<?php echo phpinfo(); ?>
and save as for e=
xample "
hello.php" (it could be any name).
Then in your browser check =
it:
f=3D"http://yourhost/path/to/hello.php" target=3D"_blank">http://yourhost/p=
ath/to/hello.php
More information about this function:
top.js.OpenExtLink(window,event,this)" href=3D"http://www.php.net/phpinfo"=
target=3D"_blank">http://www.php.net/phpinfo
Regards,
=
Javier=20
PD. After you finish using this file hello.php, I recommend you to =
delete this file or change its permissions, or move it to another directory=
that it's not browsable by web.
On Wed, 11=
Jan 2006 09:17:23 -0400, Rafael Mora wrote
> Javier where can I find phpinfo()?? sorry I=
'm new with this... thanx for your help
>
> Rafa
<=
br>
--
his)" href=3D"http://nediam.com.mx/" target=3D"_blank">
nediam.com.mx
------=_Part_3125_7207708.1136988862944--
Re: PHP and PostgreSQL connection
am 11.01.2006 15:25:21 von Frank Bax
At 08:17 AM 1/11/06, Rafael Mora wrote:
>Javier where can I find phpinfo()?? sorry I'm new with this... thanx for
>your help
>
Have you tried google? Either of the first two hits when searching for
"phpinfo" would have answered this question.
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
Re: PHP and PostgreSQL connection
am 11.01.2006 15:33:11 von Rafael Mora
------=_Part_3345_18654591.1136989991290
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Yeah sure no doubt Google would help me, but I'm doing another project in
Java using RMI, im studying Informatic Engineering (like Computer
Engineering) and I prefered to get your help!! while I'm focused on the
other project...
Rafa
On 1/11/06, Frank Bax wrote:
>
> At 08:17 AM 1/11/06, Rafael Mora wrote:
>
> >Javier where can I find phpinfo()?? sorry I'm new with this... thanx for
> >your help
> >
>
>
> Have you tried google? Either of the first two hits when searching for
> "phpinfo" would have answered this question.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
------=_Part_3345_18654591.1136989991290
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Yeah sure no doubt Google would help me, but I'm doing another project=
in Java using RMI, im studying Informatic Engineering (like Computer Engin=
eering) and I prefered to get your help!! while I'm focused on the other pr=
oject...
Rafa
On 1/11/06, =
Frank Bax <fbax@sympatico.ca
>> wrote:
px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">At 08:17 AM 1/11/06, Rafael Mora=
wrote:
>Javier where can I find phpinfo()?? sorry I'm new with t=
his... thanx for
>your help
>
Have you tried google? Eith=
er of the first two hits when searching for
"phpinfo" would ha=
ve answered this question.
---------------------------(end of br=
oadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining c=
olumn's datatypes do not
match
=
blockquote>
------=_Part_3345_18654591.1136989991290--
Re: PHP and PostgreSQL connection
am 11.01.2006 17:03:09 von Joshua Drake
Rafael Mora wrote:
> Yeah sure no doubt Google would help me, but I'm doing another project
> in Java using RMI, im studying Informatic Engineering (like Computer
> Engineering) and I prefered to get your help!! while I'm focused on
> the other project...
More specifically, the PHP docs will help you. We are happy to help of
course but you should do a little research.
Sincerely,
Joshua D. Drake
>
> Rafa
>
>
> On 1/11/06, *Frank Bax* >
> wrote:
>
> At 08:17 AM 1/11/06, Rafael Mora wrote:
>
> >Javier where can I find phpinfo()?? sorry I'm new with this...
> thanx for
> >your help
> >
>
>
> Have you tried google? Either of the first two hits when
> searching for
> "phpinfo" would have answered this question.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
>
>
--
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: PLphp, PLperl - http://www.commandprompt.com/
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq
Re: PHP and PostgreSQL connection
am 11.01.2006 18:09:43 von Eustache Safari
Rafael,
Open source is :
1. read docs from the software.
2. If you can't find an answer, then you Google it...
3. lastly, people on the distribution will assist.
=46rom your Project, you'll get more benefit by "trying it your self
first". Especially while you're learning.
Regards
-----Original Message-----
From: pgsql-php-owner@postgresql.org
[mailto:pgsql-php-owner@postgresql.org] On Behalf Of Joshua D. Drake
Sent: Wednesday, January 11, 2006 5:03 PM
To: Rafael Mora
Cc: Frank Bax; pgsql-php@postgresql.org
Subject: Re: [PHP] PHP and PostgreSQL connection
Rafael Mora wrote:
> Yeah sure no doubt Google would help me, but I'm doing another project
> in Java using RMI, im studying Informatic Engineering (like Computer=20
> Engineering) and I prefered to get your help!! while I'm focused on=20
> the other project...
More specifically, the PHP docs will help you. We are happy to help of=20
course but you should do a little research.
Sincerely,
Joshua D. Drake
>
> Rafa
>
>
> On 1/11/06, *Frank Bax* >
> wrote:
>
> At 08:17 AM 1/11/06, Rafael Mora wrote:
>
> >Javier where can I find phpinfo()?? sorry I'm new with this...
> thanx for
> >your help
> >
>
>
> Have you tried google? Either of the first two hits when
> searching for
> "phpinfo" would have answered this question.
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire
to
> choose an index scan if your joining column's datatypes do
not
> match
>
>
--=20
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: PLphp, PLperl - http://www.commandprompt.com/
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
Re: PHP and PostgreSQL connection
am 11.01.2006 18:54:57 von operationsengineer1
> Yeah sure no doubt Google would help me, but I'm
> doing another project in
> Java using RMI, im studying Informatic Engineering
> (like Computer
> Engineering) and I prefered to get your help!! while
> I'm focused on the
> other project...
>=20
> Rafa
Rafa, welcome! since i didn't hear this mentioned,
what operating system and version are you using -
Linux, Windows or Mac? I have a reasonably thorough
apache, php and pgsql isntall tutorial for winxp i'd
be glad to share if it is relevant to your case.
good luck.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
Re: PHP and PostgreSQL connection
am 11.01.2006 19:20:45 von operationsengineer1
> > Yeah sure no doubt Google would help me, but I'm
> > doing another project in
> > Java using RMI, im studying Informatic Engineering
> > (like Computer
> > Engineering) and I prefered to get your help!!
> while
> > I'm focused on the
> > other project...
> >=20
> > Rafa
>=20
> Rafa, welcome! since i didn't hear this mentioned,
> what operating system and version are you using -
> Linux, Windows or Mac? I have a reasonably thorough
> apache, php and pgsql isntall tutorial for winxp i'd
> be glad to share if it is relevant to your case.
>=20
> good luck.
>=20
i had a request to post the winxp apache, php and
postrgresql install instructions, so here goes...
http://www.geocities.com/operationsengineer1/
do feel free to provide feedback (good and/or bad). i
think it is close (and should get someone up and
running), but i'm sure it can be improved and i'd be
happy to do so if i get some feedback. of course, the
software versions may well have changed, so feel free
to apply the most up to date software in place of what
i used.
good luck.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
Re: PHP and PostgreSQL connection
am 11.01.2006 19:49:11 von operationsengineer1
if the downloads reach their bandwidth limit, try back
later. i will not be taking them down anytime soon.
as a courtesy to others, though, it would be best to
download apache, get it set up, download php, get it
set up, download pgsql and get it set up.
that way the badwidth will be spread out and more
people will be able to get started.
again, please give feedback - good, bad or ugly. i'd
like to keep improving the documents.
> i had a request to post the winxp apache, php and
> postrgresql install instructions, so here goes...
>=20
> http://www.geocities.com/operationsengineer1/
>=20
> do feel free to provide feedback (good and/or bad).=20
> i
> think it is close (and should get someone up and
> running), but i'm sure it can be improved and i'd be
> happy to do so if i get some feedback. of course,
> the
> software versions may well have changed, so feel
> free
> to apply the most up to date software in place of
> what
> i used.
>=20
> good luck.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org