You are here: Re: JavaScript to PHP? « PHP Programming Language « IT news, forums, messages
Re: JavaScript to PHP?

Posted by AndrewTK on 03/30/06 15:22

The ultimate answer would be no, taking into account the "everything"
clause:

PHP is executed on the server, before the page is sent back to the
browser. It can interact with databases, it can see the server's
filesystem (within set restrictions), doing file I/O, and do other
things where the server would be involved.

JavaScript is executed in the browser, its context is solely the page
in which it is encoded (with a few exceptions eg windows that it opens,
...), parses the DOM of said page and change various properties of the
browser (show/hide elements of the browser, change status bar text,
move elements on a page continuously etc) which cannot be done via PHP.
Moreover JavaScript can catch, react to and manipulate user actions
(mouse clicked, button pressed, key held down) which PHP cannot have
access to.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация