Icon View Thread

The following is the text of the current message along with any replies.
Messages 31 to 31 of 31 total
Thread Stuck At Getting JSON Values From PHP Script
Tue, Jul 18 2017 10:52 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Frederick,

<< There was no malice at all and my question was why EWB web server was returning incorrect data or correct in the way you have designed it. If this is expected behaviour and, you have confirmed so, then, how do I respond to it, or better yet, how should EWB web server respond to a server request for a script that it does not support. >>

It should respond in the fashion that it is responding. It has no idea what a PHP script is or if it is binary/text, so it returns the content as an octet-stream, which is the equivalent of saying "I don't have any idea what this is".

<< But you can't really fault the availability of PHP and other free scripting languages because if everyone had to pay or wait for the "perfect" language to create web applications, the Internet would not be what it is today. >>

Nobody is talking about "perfect".  I would consider Object Pascal "imperfect".  PHP is just really, really bad:

https://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/

The main problem is that it isn't obvious and predictable.  You can write code thinking it does one thing, and it does something completely differently *without letting you know*.  At least with Object Pascal, there's a close to 100% chance that what you coded will, at the very least, do what you told it to do, unambiguously.

Tim Young
Elevate Software
www.elevatesoft.com
« Previous PagePage 4 of 4
Jump to Page:  1 2 3 4
Image