Re: newbie questions...

From: Terence (tk.lists_at_fastmail.fm)
Date: 11/11/03


Date: Wed, 12 Nov 2003 03:48:01 +1100

JariTapio wrote:

> Hei!
>
> Im familiar with visual C++ but not with PHP...
>
> so my questions follow...
> are there any good PHP compilers...
> if ya wanna make a 'good' homepage is PHP right language for image
> animations and small games...
> are there good functions for graphics in PHP...
> how does the computer reads PHP code where does it start reading is
> there some MAIN function or what...
> so many other questions if there is somethin U think I should know
> please write to me...
>
> Yours : JariTapio / Helsinki Finnland
>
>
>

This is gonna hurt :)

You cannot interact directly with PHP in your web browser because PHP is
on the web-server only. This means that all the browser's interactions
with PHP must go over HTTP (using a HTTP GET or HTTP POST request). This
is a pain because HTTP is a connectionless protocol. That is, no
connection is established to transfer data -- either side just sends a
packet (HTML + HTTP headers) and "hopes" that the other side got it. For
instance, if a browser sends a request, there is no connection, so it
has to wait for a response and fall-back after a timeout in the event
the request was not recieved or the response did not return.
Connectionless interactions don't allow sessions to "persist". Web
programming technologies have to come up with nasty work-arounds to
emulate persistance -- and all of these are based on timeouts.
All of these issues are not specific to any particular web server
language (Java Servlets, ASP.NET, Cold Fusion or PHP), they are issues
of the web and HTTP.

So there goes your idea about writing interactive games in PHP. If you
do, they will incur the request/response latency of HTTP, this will
limit your options severely.

If you want stuff that runs in your browser, then Flash, Java Applets,
MS Active-X controls are the way to do it. Blender has specialised
technology (browser plugin) for creating games that run in a web page.

If you haven't heard of Blender, be prepared to be seriously impressed.
http://www.blender3d.com/



Relevant Pages

  • Re: a gentle nudge
    ... I volunteered for a church project whereby I need my PHP page to send ... off a HTTP request to third party web site that provides a service. ... Is that part of the http package, too, or do I need something ...
    (comp.lang.php)
  • RE: OT - But cant find an answer: DOM/XML
    ... PHP Version 4.3.6 ... Directive Local Value Master Value ... HTTP Headers Information ... Active Persistent Links 0 ...
    (Fedora)
  • Re: undefined function error if I use a fully-qualifed include
    ... >>obtains filename.php by performing an HTTP request to the specified ... which specifies "Go and get this resource using the HTTP protocol". ... PHP doesn't ... off to Apache to satisfy. ...
    (comp.lang.php)
  • [Full-disclosure] PHP 5.2.9 curl safe_mode & open_basedir bypass
    ... PHP is an HTML-embedded scripting language. ... supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this ...
    (Full-Disclosure)
  • Re: How to return data using POST
    ... >Gary Quiring wrote: ... >> I have a vendor sending me a text file using POST. ... I have a PHP program ... >You seem to be describing something which isn't HTTP - in HTTP, ...
    (comp.lang.php)