Problems to be noticed in conversion of PHP program and ASP Program

Source: Internet
Author: User
Tags variable

Some programs about e-commerce things, or their own hands to compare insurance. When you do it, you find a lot of places to pay attention to.

  1. Grammar

If you're familiar with both, it's easier, but it's written with a faint head that often happens. Everyone knows that the Web server's error prompts are now confused.

PHP is best to add a semicolon to each sentence, even if there are some places you can not add. Note that each paragraph is annotated with one hierarchy of different loops (especially nesting).

  2. Variable

Because the original program is not I wrote, so the page form, session and so on something special attention. If the previous program is not very clear, the trouble is a bit bigger.

PHP in the case of variable sensitivity, ASP is not sensitive, so it is best to develop a good habit of naming variables when possible to standardize some (their own specifications:-), ASP best use Option Explicit.

  3. Page

Make a separate page of the same content that may appear on different pages, and then include it when needed, making it easy to modify. We all know that the customer's request may be the same day.

  4. The most important thing is function.



Related Article

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.