[PHP-DB] small question php/postgreSQL

2006-11-07 Thread Desmond Coughlan
X-No-Archve: true Hi, I've been trying to get a small DB up and working with PhP. It's a library, and so far, I can't get past the stage of displaying a page. I try the 'hello world' example, and it displays. I then populate a DB and can access it via psql .. cdi= SELECT *

Re: [PHP-DB]: small question php/postgreSQL

2006-11-07 Thread Tony Grimes
Is your server configured to display errors? Try adding this at the top of your script: ini_set('display_errors',true); It won't catch syntax errors, but it should help. Also, try adding this to the top of your script: echo 'test'; If you still get a blank page, then it's probably not a

[PHP-DB] RE : Re: [PHP-DB]: small question php/postgreSQL

2006-11-07 Thread Desmond Coughlan
X-No-Archive: true OK, that gives a blank page, too... which is puzzling, 'cos I tried 'hello.php' before getting into the db 'thang', and I saw the text on the screen. Well .. back to the drawing board... D. Tony Grimes [EMAIL PROTECTED] a écrit : Is your server configured

Re: [PHP-DB] RE : Re: [PHP-DB]: small question php/postgreSQL

2006-11-07 Thread Tony Grimes
Alright, now try commenting out all the script except for the ini_set and echo 'test' at the top. There still might be a syntax error in the code. Essentially, you want to do whatever you can to get the page to display a simple message. Then, work backwards until you get the error/blank page. If

[PHP-DB] RE : Re: [PHP-DB]: small question php/postgreSQL

2006-11-07 Thread Desmond Coughlan
X-No-Archive: Curious. I put this in a file... ?php echo 'pHello World/p' ? Bingo. I then take the *same* file, I don't rename it, I just open it in vi. I copy a single occurrence of 'pg_connect' etc... And the 'hello world' disappears. D. Tony Grimes

Re: [PHP-DB]: small question php/postgreSQL

2006-11-07 Thread Tony Grimes
You should turn on display_errors in your php.ini file. That would make it a lot easier to track down the error. Tony On 11/7/06 9:27 AM, Desmond Coughlan [EMAIL PROTECTED] wrote: X-No-Archive: Curious. I put this in a file... ?php echo 'pHello World/p' ?

Re: [PHP-DB] small question php/postgreSQL

2006-11-07 Thread Chris
Desmond Coughlan wrote: X-No-Archve: true Hi, I've been trying to get a small DB up and working with PhP. It's a library, and so far, I can't get past the stage of displaying a page. I try the 'hello world' example, and it displays. I then populate a DB and can access it via psql