Subject | Re: [firebird-php] Problems conecting to Firebird 1.5 with PHP in RedHat 9 |
---|---|
Author | Dariusz Zelichowski |
Post date | 2004-05-22T17:34:30Z |
Julio, could you please post the steps you performed to set
PHP/FB on Fedora? Were these the same steps you described
in the original post of this thread? And also, did you
install Fedora with Apache and PHP support, or did you ad
those after the OS was installed? I will appreciate any
information.
I just spent a lot of time trying to figure this out and I
am defeated. I have been using PHP/FB for over 2 years o
Windows 2000 without any problems. The Windows setup steps
seems like a child's game but are not very helpful for
Linux.
Under RH 9.0 I did exactly the steps you did, but with FB
1.03 ad I still have the same problems as you reported.
My test code is:
<?php
echo "test1<BR>";
$conn =
ibase_pconnect("localhost:/opt/firebird/examples/employee.gdb","SYSDBA","masterkey");
echo "test2<BR>";
?>
The output is (without quotes):
"test1" but "test2" never prints to the browser so it
appears that my earlier suggestion to you was useless. I
tried trapping some errors, using conditional output etc
but I learned nothing. All I see for now is that as soon
as I try to connect to FB via PHP the PHP code flips out ad
stops any further output to the page.
Is there anyone who has a list of steps to configure PHP
with FB on a major Linux distro (RH, Mandrake, SuSe, Fedora
etc). I mean steps such as Martha Stewart gives to cook
pierogis or some killer cookies � they simply work every
time you follow the suggested steps.
In case someone has doubts: yes, I did plow thorough each
and every single post regarding the subject in Mers Lists,
IBPhoenix, this list and others - took me all of yesterday
and 6 hous today. So far, apart from some anecdotal and
greatly scattered fragments of information I found little
of real use. I also discovered a few other sites where the
topic was discussed but consisted mainly of questions and
doubts. These were posts by people who seemed to have
discovered FB fairy recently and the general feeling I
could sense from the posts is the lack of reliable
information, especially in regards to PHP/FB. This is
pretty bad and I�m afraid it won�t encourage an increased
use of FB. I�m not intending to give up on FB after years
of use for custom applications, but as far as web
development I feel a bit discouraged for now
OK, sorry about the ranting. I must be tired after some 16
hours of experiments, which yielded no solutions.
--- Kamus <e18278@...> wrote:
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
PHP/FB on Fedora? Were these the same steps you described
in the original post of this thread? And also, did you
install Fedora with Apache and PHP support, or did you ad
those after the OS was installed? I will appreciate any
information.
I just spent a lot of time trying to figure this out and I
am defeated. I have been using PHP/FB for over 2 years o
Windows 2000 without any problems. The Windows setup steps
seems like a child's game but are not very helpful for
Linux.
Under RH 9.0 I did exactly the steps you did, but with FB
1.03 ad I still have the same problems as you reported.
My test code is:
<?php
echo "test1<BR>";
$conn =
ibase_pconnect("localhost:/opt/firebird/examples/employee.gdb","SYSDBA","masterkey");
echo "test2<BR>";
?>
The output is (without quotes):
"test1" but "test2" never prints to the browser so it
appears that my earlier suggestion to you was useless. I
tried trapping some errors, using conditional output etc
but I learned nothing. All I see for now is that as soon
as I try to connect to FB via PHP the PHP code flips out ad
stops any further output to the page.
Is there anyone who has a list of steps to configure PHP
with FB on a major Linux distro (RH, Mandrake, SuSe, Fedora
etc). I mean steps such as Martha Stewart gives to cook
pierogis or some killer cookies � they simply work every
time you follow the suggested steps.
In case someone has doubts: yes, I did plow thorough each
and every single post regarding the subject in Mers Lists,
IBPhoenix, this list and others - took me all of yesterday
and 6 hous today. So far, apart from some anecdotal and
greatly scattered fragments of information I found little
of real use. I also discovered a few other sites where the
topic was discussed but consisted mainly of questions and
doubts. These were posts by people who seemed to have
discovered FB fairy recently and the general feeling I
could sense from the posts is the lack of reliable
information, especially in regards to PHP/FB. This is
pretty bad and I�m afraid it won�t encourage an increased
use of FB. I�m not intending to give up on FB after years
of use for custom applications, but as far as web
development I feel a bit discouraged for now
OK, sorry about the ranting. I must be tired after some 16
hours of experiments, which yielded no solutions.
--- Kamus <e18278@...> wrote:
> Hi.__________________________________
>
> I try with Fedora Core 2 and Firebird 1.0 and works fine.
>
> Is problem of Firebird 1.5 ???
>
>
> >
> >
> >
> >
> > Dariusz Zelichowski wrote:
> >
> > > I had exactly the same problem with FB 1.03 and
> PHP 4 under
> > > Windows 2000 Server. ReferencING of fields by
> their index
> > > won't work but referring to them by field name
> works OK, so
> > > I just settled for that.
> > >
> > > So you may try changing your code to:
> > >
> > > while ($fila = ibase_fetch_row($resultado))
> {
> > > echo
> $fila->FIELDNAME1.'
> > '.$fila->FIELDNAME2.'<br />';
> >
> > ibase_fetch_row() gives an array with column numbers as
> the field elements.
> > ibase_fetch_assoc() gives an array with column names as
> the field elements.
> >
> > I had a problem with ADOdb working only with numbered
> fields, but going direct is OK
> > when I try it.
> >
> > Dmitry
> > Try adding the field names to the query, using * is
> very sloppy, and you may not get
> > the same order of columns if the database is modified
> later!
> >
> > --
> > Lester Caine
> > -----------------------------
> > L.S.Caine Electronic Services
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> > To visit your group on the web, go
> > to:http://groups.yahoo.com/group/firebird-php/ To
> unsubscribe from this group,
> > send an email
> to:firebird-php-unsubscribe@yahoogroups.com Your
> use of Yahoo!
> > Groups is subject to the Yahoo! Terms of Service.
>
>
> _____________________________________
>
> Julio Carlos Canaviri C.
> e-mail : e18278@...
> Linux Registered User #306526
> _____________________________________
>
>
>
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer