Wednesday, April 09. 2008REST in PostgreSQL Part 2 B - The REST Server service with PHP 5Printer FriendlyRecommended Books: Beginning PHP and PostgreSQL 8 .. Wicked Cool PHP Scripts .. Restful Web Services
Comments
Display comments as
(Linear | Threaded)
Hi,
This is an amazing work. I would like to implement it in PostGreSql runnin in Ubuntu latest build. Can you guide me a bit. For example, pagila db is not available for Ubuntu. Any clue? I really want to test it. Again, amaaaaaaaaazinggggggggg post.
Actually pagila db is not distributed with any PostgreSQL distro to our knowledge. I you read part 1 of our series, it will describe how to download it, install. This should work on any OS.
http://www.postgresonline.com/journal/index.php?/archives/36-REST-in-PostgreSQL-Part-1-The-DB-components.html
Hi! I am working through this tutorial and have been able to implement up until the adodb abstraction library crashes. The drivers in the adodb folder support Postgres through 8.0, but not 9.0. A quick web search doesn't seem to get me any results for updated adodb drivers. Do you have any suggestions for another abstraction library? Thanks in advance,
Sara
Hmm we still use adodb for abstraction. Anyrate adodb is just a thin wrapper around the PHP postgresql drivers. Which PHP version are you using?
As far as PHP database abstraction layers go, there is also Pear DB which is probably more common than ADODB. There are a couple others I can't recall, but again they are all just wrappers around the pdo_pgsql and pgsql PHP drivers so any crashing you are experiencing may be the core PHP driver.
Hi Regina,
Sorry for the late response. I was pulled off of this project for a month or so. The PHP version I have installed is PHP 5.4.4-1 for Ubuntu's Precise Pangolin. I was able to do a quick-connect-type test with adodb with the following script (with my info added in of course): This connected to my Postgres 9.1 database just fine, so I think you are right about it not being a wrapper problem. Any thoughts on a different PHP driver or modifying your file above? I am trying to catch whatever error I am getting step-by-step. Thanks so much for your help. Sara
Sara,
You can change the $conn->debug = true; and it should spit out the sql it is sending along. You might also want to change the pgsql driver it is using. Have you tried looking at the phpinfo(); To insure all your pgsql etc drivers are up to date. Those are often installed separately. with an apt-get install or yum install apt-get install php5-pgsql or php-pgsql forget which it is these days. It could be that driver is out of date and you need to update it. I forget what it's called these days. I think the adodb calling syntax has changed a bit to and what we ahve in the article might be deprecated syntax. |
Entry's LinksQuicksearchCalendar
Categories
Blog Administration |
Tracked: Jul 12, 04:46