This is a common question, related to the lack of understanding of
client/server architectures I believe.

PHP is all server side - a browser is all client side.

Servers can send data only to the browser, nothing else. The server can
inquire and gather data from text files and databases, but it will format
the data into a particular protocol (HTTP most often) and send it to the
browser. The data may even include lines of text from a language that the
browser understands, like JavaScript. Or it might be XML data and the
corresponding XSLT instructions. But ... it can't affect the browser
directly. Only the embedded instructions that the browser understands can
actually affect anything on the browser.

The browser looks at the stream of data provided by the server and decides
on-the-fly what to do with it. If it sees JavaScript instructions, it may
decide to interpret them and do some particular action. Or it may decide
that it doesn't want to play with JavaScript today and just ignore them. It
may see the XML/XSLT and decide to do something - but it doesn't have to.
This, of couse, is the bane of Web programmers everywhere. What does the
browser understand, and what does it do with the data.

PHP allows us to write programs eaisy on the server to make some decisions
on what to send a browser, but it cannot act directly on the browser. We
must depend (somehow) on the browser interpreting what we tell it and then
acting in a particular way.

-----Original Message-----
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 23, 2002 12:17 AM
Subject: Re: [PHP] is there a function like javascript's in

On Sunday 23 June 2002 07:21, Burak Delice wrote:
> hi,
> I wonder that is there a PHP function like into Javascript?


Jason Wong -> Gremlins Associates ->
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

One thought driven home is better than three left on base.

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to