View Single Post
  #4 (permalink)  
Old 24th June 2009, 00:26
Steve Cooney
Guest
 
Posts: n/a
Default Re: Datetime fields return value in different format?

>
> Unfortunately I use JS eventhandlers with ajax-calls to handle data. It's
> faster. Besides, if setting breakpoints, the process slows down until
> timeout many times or just not to load any more (worse with Firefox, some
> better with IE).
>
> John


Well we all use AJAX hopefully but at the end of the day AJAX is just calling PHP in the background on an asynchronous thread (this is also why you need a PHP debugger doing AJAX as Firebug is not enough). This is where your insert is happening (the MYSQL library is a PHP dll after all) not in the client side javascript. Connection timeouts can be easily upped on the database component or in PHP ini or is maybe a property of the connnectionor a settable default in MySQL. For myself I have patched the VCL
for PHP to use the current build of Xajax which has a more effective/working oncomplete event you can trap in javascript. Also ADODB has moved on in versions and may have improved date handling in MySQL. You should be able to get the current version of that and basically substitrute it for the VCL for PHP version without needing any edits in the core VCL components.

If the Delphi for PHP debugger is driving you nuts, shell out for VS.PHP. It uses Xdebug and is very fast and slices readily through code. You can edit and design in D4PHP and debug in VS.PHP quite happily at the same time, as VS.PHP has a separate PHP/Apache subsystem. There are other options for debugging as well if you dont want to spend money. You can try the eclipse based Aptana or the Eclipse PHP Development Tools (PDT)altyhough these are complex to use and configure.

Also Firebug has had a lot of problems with Ajax and only the most recent builds of Firefox (3.5RC) with Firebug 1.4x are actually working properly again. IE8 now has pretty usable debugger built in as well although not as well integrated as Firebug.
Reply With Quote
Sponsored Links