You are here: PHP & AJAX « PHP Programming Language « IT news, forums, messages
PHP & AJAX

Posted by KDawg44 on 11/11/65 12:01

Hi,

I have a feeling this is a dumb question, but I am exploring AJAX and
PHP. I would like to write my PHP in an Object Oriented approach.
What is the limitation on what I can return in AJAX? Every example I
find seems to be text, which make sense because it is client side.
So, if I want to try to separate the presentation from the
application, I should call a PHP script using AJAX, and in that PHP
script have objects, call the objects methods and which return to the
PHP script, which returns it to the AJAX script.

So, how do I keep persistent objects throughout the application? Will
each PHP call instantiate a new session or new version of the PHP
script or can I simply put the objects in the $_SESSION?

Thanks for your help as I try to learn/understand this.

Kevin

 

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

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