[DUG] Delphi for PHP
Rohit Gupta
r.gupta at xtra.co.nz
Mon Mar 14 01:26:19 NZDT 2011
Graham,
I have simply not believed the deploy tool and uploaded the complete vcl
to the web. This way, I know its not an issue.
I had wondered about the php version, but not blaming that yet.
Really the major issue is php itself - based on basic (arguably the
first kiddy language invented over 30 years ago). I cant believe we are
using it now !! Slight misspelling of an identifier and one is history
with errors that have nothing to do with reality. I have had ajax stop
working. Then query->open would not work but query->active = true
would etc....
The issue of the oncreate firing multiple times turned out to be caching
(probably by the php engine itself - nothing else makes sense) as I had
cleared the browser cache. Once I fixed that with some html tags, the
refresh from ajax has stopped working. It no longer refreshes the
control as it used to - until the form is submitted.
I am going to have one more go at ajax based data control refresh on
another form. If that doesnt work, then I will convert all of the
delphi stuff to php. The ide is still useful as a project manager.
I finally discovered the _problem with constants_ in another file. if
there is no vcl in the page (form) then the constants work. As soon as
vcl is involved, they are no longer visible...
I discovered the _problem with functions_ in another file. There must
be no spaces between the identifier and the bracket. Then they work.
Rohit
On 13/03/2011 5:25 p.m., Graham Marsden wrote:
> Hi Rohit
>
> When I had a play with D4PHP I fould the same
> frustrations you have reported recently and had
> the same problem with stuff working locally but
> failing when deployed to the net. If you follow
> the delpoy instructions (such as they are) then
> that may be one problem in not installing the
> deploy files (only a few of which surely are used
> for a simple app) in the correct ind searchable
> folders. Another and maybe more significant source
> of errors is the fact that D4PHP assumes you are
> going to have PHP 5 on the host, which may or may
> not be the case - check with phpinfo() This last
> one plus the poor documentation has put my D4PHP
> life on hold until the situation clears - aside to
> Embarcadero !! - can we have some better
> documentation and examples ? - please
>
> Best of luck
>
> Graham Marsden
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5949 (20110313) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110314/a02991df/attachment.html
More information about the Delphi
mailing list