The following is some thoughts about PHP. With the coming of the third generation Internet ,much should be changed ,I think.
1. HTTP is a stateless protocol. Each request to the server is completely independent of the other requests from the same browser. That results to variables or objects can only survive in a single web page.
A solution in compilation level: During one session, save objects and variables into database in PHP Server-side. Record survival cycle of objects and variables.
During the same session, look up the object database first .If the object or variable doesn’t exist, generate it and record into database .
2. Now PHP only support objects limited in one web page. That makes it impossible that we analyze and develop a web site project in Object-Oriented Software Engineer and Object-Oriented Programming Methods.
More Object-Oriented characters should be added into PHP. For example ,
A web site---a project object
A web page---a page object
Control objects in a web page
??
3. Transfer PHP development and management platform to Browser interface .That means we could manage and develop a web site online(in Internet).
4. Two kinds of execution methods :
Scripts in Server-side and executable code after compilation .
Now more and more developers who have migrated their business functionality out of script code completely, putting it in faster, compiled modules . And compilation provides encapsulation. That will lead to a large application on business .
Anyway, PHP is a convenient developing tools despite of the shortcomings above.
Personal Opinion.
1. HTTP is a stateless protocol. Each request to the server is completely independent of the other requests from the same browser. That results to variables or objects can only survive in a single web page.
A solution in compilation level: During one session, save objects and variables into database in PHP Server-side. Record survival cycle of objects and variables.
During the same session, look up the object database first .If the object or variable doesn’t exist, generate it and record into database .
2. Now PHP only support objects limited in one web page. That makes it impossible that we analyze and develop a web site project in Object-Oriented Software Engineer and Object-Oriented Programming Methods.
More Object-Oriented characters should be added into PHP. For example ,
A web site---a project object
A web page---a page object
Control objects in a web page
??
3. Transfer PHP development and management platform to Browser interface .That means we could manage and develop a web site online(in Internet).
4. Two kinds of execution methods :
Scripts in Server-side and executable code after compilation .
Now more and more developers who have migrated their business functionality out of script code completely, putting it in faster, compiled modules . And compilation provides encapsulation. That will lead to a large application on business .
Anyway, PHP is a convenient developing tools despite of the shortcomings above.
Personal Opinion.