Re: newbie questions...
From: Terence (tk.lists_at_fastmail.fm)
Date: 11/11/03
- Next message: zimanet: "Re: Implementing a transliteration feature on a php-based discussionboard"
- Previous message: Terence: "Re: php script behaves different as cron job"
- In reply to: JariTapio: "newbie questions..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Next message: zimanet: "Re: Implementing a transliteration feature on a php-based discussionboard"
- Previous message: Terence: "Re: php script behaves different as cron job"
- In reply to: JariTapio: "newbie questions..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|