Comments on PHP

Source: Internet
Author: User
Tags learn php
Think carefully, I learn PHP has a full 1.5 of the time, and I touch the Web design only 2 years, although the time is very short, the learning is still very limited, and you can not compare with the network master, but everyone has a different learning methods and sentiment, write for you to comment, it may not be a good thing
That is, 2 years ago, I began to learn the most basic HTML markup, because a friend to do a station, so I downloaded the more famous at that time the network ASP forum to engage in, then also just in the forum to find some code to try to paste into the appropriate place. Here, there is a very funny thing, at that time do not understand the form action of the post and get way different, so according to the literal meaning I understand that the former is to send data to the server, and the latter is from the server to send data to the client, but also fraught, now want to, really a little guilty, So I said to myself: "There is no understanding of the place do not be very precise to others." Through this way and on-line to find information learning, about six months, after their own bit by bit of accumulation, and finally wrote my 1th ASP website. Really, just started to learn when there are a lot of things to miss, because nothing, and no one to guide, so can only find information on the Internet, which also developed my self-study and like the good habit of searching, the impression of the deepest one thing, is a friend called me to write a picture slide, when looking for a whole night, still good Found a gamble version, there is JS, Flash, VBScript, and finally chose Flash, because there is no need to change the code, only need to add links to it, but then friends asked me a page to put several slides, I copied a slide code and then paste, Finally found that seems to be confused, confused, and later discovered that the reason is the variable repetition, because the time is tight without their own re-write code, so I think of another way, each slide as a framework, oops, this problem solved, But it is the selection of the entire slide when the position appears up and down around the floating (I like to choose what to do after a random point or move the mouse), anyway, is the function is realized, finally can sleep a stable sleep before daybreak.
Last summer vacation that friend saw a lot of Web sites are using PHP, so the old in front of me to say the revision, oops, I can have a headache, did not learn AH. He said nothing to learn while doing, so I began to find information on the Internet, of course:
1. I want to know how PHP send content to the browser, after looking, know through echo this function to implement, and then gradually found that there are many very useful functions such as sprintf blush Ob_start and so on functions, can achieve a lot of special effects.
2. Connect to the database, a little know web development people know Php+mysql+apache combination, so choose MySQL database is my first choice. I like to learn a language first to find the language of the classic code or program, also forgot how to find discuz, and suddenly like to get up, with the PHP connection database class has been its, I hope you also like, I have not specifically studied the PHP itself with the function to connect to the database, Have time to test under, hehe.
3.asp Code and HTML code is in a file, I felt very unaccustomed at the time, especially the original only know the table TR TD and so on, do not know what div css, and I like to indent the code, I look like, the level of a lot of feeling very bad, So on the Internet to find relevant information, and finally found a php very promising things: templates. A know the word, in Baidu Search, wow, a lot of, finally I chose smarty, the reason is powerful and PHP official itself on the use of smarty. But later felt this thing is more troublesome, too big, and to JS code need to add a code to realize, this time let me distressed for a long, just don't know how to test the correct JS how to run. Slowly began to hate, of course, Discuz is my favorite, so I began to study his template technology, haha, too happy, just as I mean, has been used to the present.
4.php+aphce+mysql coding problem, this problem at the beginning of the most distressed me, I first found that the problem is the previous ASP database import into MySQL after the garbled, and then came into contact with the Ajax Protype framework, With GBK or gb2312 is simply can not use, here I can only make some comments, the specific operation to see everyone's fortune, I suggest that so the code uses UTF-8 code.
5.W3C: This thing is because I hate the trouble of table operation and learning, Div+css+xml is I very much like, I hope we also gradually abandon table bar, and JS, so they have to learn.
6. Static page: According to my understanding, static pages have two kinds, one is pseudo-static page, one is the actual existence of the static page file. I just started the last one, because with Apache. htaccess files can be configured with a fairly flexible pseudo-static page, but the current situation, combined with the development trend of SEO, the latter is to start research.
7. Other special functions: such as large file upload, simply through PHP can not display the file upload progress, then involves and other elements of the combination, such as Ajax, such as Acticex, such as Perl, such as applets, these methods I have tried, although achieved relatively effective results, But it's still a rock in my heart.

Let's write it down here today. Oh
  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.