FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » execution just stops when it gets to DB::connect
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
execution just stops when it gets to DB::connect [message #175940] Wed, 09 November 2011 18:57 Go to next message
garey is currently offline  garey
Messages: 1
Registered: November 2011
Karma: 0
Junior Member
Hello -

I am trying to move a PHP application from PHP 4 to PHP 5.3.2.
The application was using an old PEAR DB.php, so I replaced it with a
new DB.php downloaded with a new PEAR.

Now, when the application tries to get a connection to the
database, the program just stops. Nothing is being logged. The DSN
looks correct, and the connect call is just

$db =& DB::connect($DSN)

has anyone seen this when upgrading?

Any help would be appreciated;

Garey Mills
Re: execution just stops when it gets to DB::connect [message #175949 is a reply to message #175940] Thu, 10 November 2011 05:35 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 11/9/2011 1:57 PM, garey wrote:
> Hello -
>
> I am trying to move a PHP application from PHP 4 to PHP 5.3.2.
> The application was using an old PEAR DB.php, so I replaced it with a
> new DB.php downloaded with a new PEAR.
>
> Now, when the application tries to get a connection to the
> database, the program just stops. Nothing is being logged. The DSN
> looks correct, and the connect call is just
>
> $db =& DB::connect($DSN)
>
> has anyone seen this when upgrading?
>
> Any help would be appreciated;
>
> Garey Mills
>

Enable error reporting and display all errors. In your php.ini file for
your development system you need:

error_reporting=E_ALL
display_errors=on

Note - do NOT leave these on in your production system!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to allow only certain users to download uploaded file
Next Topic: about a piece of code from drupal 3.0.x
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 07 18:38:46 GMT 2024

Total time taken to generate the page: 0.03689 seconds