Martin wrote:
[color=blue]
> I looked at the "iframe" that was suggested. I found a web site that
> had a working example of that and verified that it does work on both
> the IE/Windows and on the Mozilla/Linux clients. Like the applet
> concept, it appears that it would do the job but it's still more than
> what I actually need.[/color]
Hmmmm.... If IFRAME will work for you, I hardly consider it to be
overkill. It is more portable than what you are currently doing with a
client-side socket, using a Win32 DLL.
Note that you had to use a platform specific mechanism, for sockets,
because the browser did not support sockets natively. This means that
every other browser (Netscape/Mozilla/Opera/Safari/Konquerer/etc) will
all have to have their own platform specific mechanism... yuck.
IFRAMEs are part of the HTML standard, so if you can get it working with
IFRAMEs, I would highly suggest doing so. It is less overkill than an
ActiveX DLL.
[color=blue]
> I downloaded a Javascript from
>
http://www.phpfreaks.com/phpmanual/p...f.sockets.html but have not
> been able to get it to work yet. I don't know if it's even "workable".
>[/color]
Just a note... PHP is a scripting language, just like Javascript is.
The difference is that PHP is a server-side scripting environment
(similar to ASP or CGI). Basically, you write a script, that the server
executes BEFORE it sends it to the browser. (The server needs to know
how to read PHP) The output of the script must be HTML/Javascript or an
image, or something that a browser can recognize.
By using sockets in PHP, on the server, you can have your PHP script
connect to something, like a database, or some service on another
server, to get data that it formats into HTML, and dynamically sends to
the client. In that sense, it is a client to the service it is getting
it's data from, but as far as the web browser is concirned, it is still
on the server... so PHP cannot be used to create sockets on the web
browser side of things.
I hope this helps a bit. If you can get your application working with
the IFRAME object, I recommend that is what you use.
Brian