Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Daniel On Wed, Dec 1, 2010 at 1:28 AM, Daniel P. Brown wrote: > On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh > wrote: > > it seems that the problem is in pg_connect(). > > Do you have PostgreSQL support compiled into PHP? > >Command line: >php -i | egrep -i 'postgres|pg

Re: [PHP] PHP shows nothing

2010-11-30 Thread Daniel P. Brown
On Tue, Nov 30, 2010 at 16:51, Mohammad Taghi Khalifeh wrote: > it seems that the problem is in pg_connect(). Do you have PostgreSQL support compiled into PHP? Command line: php -i | egrep -i 'postgres|pgsql' Web: -- Dedicated Servers, Cloud and Cloud Hybrid Solu

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Marc On Wed, Dec 1, 2010 at 1:02 AM, Marc Guay wrote: > >if(!$db = @pg_connect($connection_string)) { > >return FALSE; > >} > >return $db; > > > > how can I find the problem and fix it? > > > The @ symbol is telling it to ignore errors. Remove it and you'

Re: [PHP] PHP shows nothing

2010-11-30 Thread Marc Guay
>        if(!$db = @pg_connect($connection_string)) { >                return FALSE; >        } >        return $db; > > how can I find the problem and fix it? The @ symbol is telling it to ignore errors. Remove it and you'll see them if that's where the problem is. http://php.net/manual/en/lan

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
Bob and tedd On Tue, Nov 30, 2010 at 11:20 PM, Bob McConnell wrote: > From: Mohammad Taghi Khalifeh > > > On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell wrote: > >> From: Mohammad Taghi Khalifeh > >>> Hi there, > >>> I have a package written in pure PHP, some .php files that refer to > >>other

RE: [PHP] PHP shows nothing

2010-11-30 Thread Bob McConnell
From: Mohammad Taghi Khalifeh > On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell wrote: >> From: Mohammad Taghi Khalifeh >>> Hi there, >>> I have a package written in pure PHP, some .php files that refer to >>others >>> via require_once(''), >>> but when I try to see package's contents via a brows

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
On Tue, Nov 30, 2010 at 10:39 PM, Steve Staples wrote: > On Tue, 2010-11-30 at 22:26 +0330, Mohammad Taghi Khalifeh wrote: > > Hi there, > > I have a package written in pure PHP, some .php files that refer to > others > > via require_once(''), > > but when I try to see package's contents via a br

Re: [PHP] PHP shows nothing

2010-11-30 Thread tedd
At 10:26 PM +0330 11/30/10, Mohammad Taghi Khalifeh wrote: Hi there, I have a package written in pure PHP, some .php files that refer to others via require_once(''), but when I try to see package's contents via a browser, the pacakge just shows nothing: a blank page. I've activated all log levels

Re: [PHP] PHP shows nothing

2010-11-30 Thread Mohammad Taghi Khalifeh
On Tue, Nov 30, 2010 at 10:38 PM, Bob McConnell wrote: > From: Mohammad Taghi Khalifeh > > > Hi there, > > I have a package written in pure PHP, some .php files that refer to > others > > via require_once(''), > > but when I try to see package's contents via a browser, the pacakge > just > > show

Re: [PHP] PHP shows nothing

2010-11-30 Thread Steve Staples
On Tue, 2010-11-30 at 22:26 +0330, Mohammad Taghi Khalifeh wrote: > Hi there, > I have a package written in pure PHP, some .php files that refer to others > via require_once(''), > but when I try to see package's contents via a browser, the pacakge just > shows nothing: a blank page. > I've activat

RE: [PHP] PHP shows nothing

2010-11-30 Thread Bob McConnell
From: Mohammad Taghi Khalifeh > Hi there, > I have a package written in pure PHP, some .php files that refer to others > via require_once(''), > but when I try to see package's contents via a browser, the pacakge just > shows nothing: a blank page. > I've activated all log levels, and it seems tha