Finally, I used THINKPHP + smarty + jquery to rewrite PHPWIND. Finally, I used THINKPHP + smarty + jquery to rewrite PHPWIND. I hope the market for PHP and J2EE enterprise-level applications will grow bigger and bigger, and I hope I can find another good job. I hope CSDNE can finally rewrite PHPWIND with THINKPHP + smarty + jquery.
I'm glad that I finally used THINKPHP + smarty + jquery to rewrite PHPWIND. I hope the market for PHP and J2EE enterprise-level applications will grow bigger and bigger. I hope I can find another job. I hope the CSDNER's salary will rise and buy a house and a car early.
This is the code address http://download.csdn.net/source/2490856
This is the process of self-study read books and notes, share to everyone http://topic.csdn.net/u/20100627/18/1f3b42ba-d3a9-487d-9c5e-4998dfc4ca53.html
This is a problem I encountered during the development process. let's take a look.
1: using a framework to write code may become silly.
2: many PHPwind source codes are written in the process mode. here, we include a large segment, which contains a large segment of DES, which is hard to read and has been crazy for some time, why does it not need to be written by OOP? For languages like PHP that do not need to be compiled, does it affect performance when written with OOP?
1: The text editor I used is the xheditor plug-in. because it is small, it supports Chinese products by the way. later I found that the page loading performance was poor and I don't know what text editing plug-ins you used.
3: The site remembers the visitor's information. I use two data items in the cookie, one for saving the user name and the other for saving the password. each time the user accesses the site, the site automatically detects the cookie, if you have these two information, log on automatically. I think this method is not good. is there a better way?
4: many of the built-in functions in PHP are passed by reference. I am used to passing values (the habit of writing java). I feel that it is easy to confuse using reference transfer, it is not easy to read. I don't know what you think.
5: When writing and downloading a large file, it is found that downloading a large file will make page loading slow. it should be caused by no write cache. I don't know how to solve this problem, the phpwind code cannot be understood.
6: The PHPwind template file, javascript, css, and page data are mixed together, which makes modification quite troublesome. isn't it good? Many books have said that JavaScript, css, and data should be separated.
7: PHP does not support constant arrays, that is, assigning an array to a constant.
8: there is a table in the database that records the access logs of the day. I want it to automatically add a record after 24 o'clock every day, which is well solved in java, you can use a thread or servlet. php does not support threads. I don't know how to write it?
9: Why does PHP not have a framework like spring? I think it is not good to assemble all codes into parts when they are used?
P.S. this post introduces the books I have used since school and recommends them to my friends. all the books are in electronic versions. if you cannot find them, or you need book notes, or you can contact me for technical articles that need to be collected (the notes are kept in the PDF file of the book in the form of annotations ). QQ: 1441825297
P.S. if you want to change to another job, you can also take a part-time job and master PHP (very skilled) and J2EE technology, SSH, ZF, TP, Smarty, JavaScript, css, jquery, ajax, DHTML and other technologies related to J2EE enterprise-level development and PHP website development.
------ Solution --------------------
SF, learning.
------ Solution --------------------
I don't understand what's next, but I know it's time to score!
------ Solution --------------------
PS If you have learned so many things, it's a strong person.
Level-limited answers one by one
1: The framework is easy to manage instead of being stupid. you can see the class name to know which module of MVC is used.
2: OOP will not affect performance. because PHP is also the language for automatic memory recovery, phpwind is not as famous as phpBB. it may not be a standard.
3: NetBeans (coding + UML + SQL front-end) + Dreamweaver (static page, artist work)
4: you can generate a pseudo session table. PHP can bind a function to the function. in combination with mysql, you can add a login IP address and a time field to the session data table. it is OK to close the browser or automatically delete the data after the cache expires. other methods can be retained to the local machine (the temporary IE folder is not counted, this is assumed to be an Internet cafe)
5: make an image (this problem is complicated. it seems that downloading requires C ++ and multithreading. it is the best example. after all, HTTP is a stateless protocol File Stream, which also consumes resources using socket. wang Dao)
6: PHPwind is a forum where users can recursively process tables. it is not necessary to be so rigorous.
7: write the constants you need in the class and name them as common. inc. php. load them to the header. then, OK or simply define () to the end.
8: directly write a bash script to call a command line PHP-cli to insert data into a table and load the data into a Linux task. it will not go wrong for 10 thousand years. Java starts a thread. this method may not be good for you. This thread is not should I keep running on the server? If there are too many tasks, isn't it resource depletion?
9: PHP has a senior framework written by French people. symfony is more complex. Java-SSH Python-Zope CMF belongs to a level. it is suitable to use EXT-js to write enterprise applications. However, it is okay to use zendframework or CI for small projects. thinkPHP is not good for English.
------ Solution --------------------
Points received!
------ Solution --------------------
I learned.
------ Solution --------------------
Yes, I got points.
------ Solution --------------------
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.