A little experience on PHP learning path

Source: Internet
Author: User

After learning some Java, after contacting PHP Project found PHP is really a very powerful language, this is just a recall, think of what to write, we casually look at.

1.php actually do not have to wait, the general change after the code to refresh the page directly, do not need to restart the service like Java,

In general, we use the most when debugging is var_dump (variable name);d ie; Of course, die does not die depending on you. See what you're actually doing.

When debugging SQL to ask the general will use Getlastsql (); and dump it like the top. Beginners can do this when importing a PHP project

Click Import to enter the following screen:

Click Next:

This time will be to retrieve your project, hook and click on the Finish (note: If you clearly import the project, in accordance with the above operation is missing and do not see optional items, be careful to see if your code removed from SVN contains project files!) )

2. Let's talk about some of the common techniques used in PHP project development

General in our development, the front desk needs parameters are: $this->assign (foreground variable name; background parameters); This is passed, and some variables can be directly defined by the $this, (just like the variables defined in Java get and set methods) = XXX;

Front desk We get the parameters, generally there are two ways to receive the value of this variable

One is var $x = ' {$ foreground variable name} '; (written in JS)

Another way is to use HTML tags to write PHP scripting language. <php> $xxx = $yyy->zzzz->iii;</php>

The most commonly used judgment in PHP is the <if> tag. I will show you the last picture to see that:

In this picture, you can also see the volist tags commonly used in Php to traverse the drop-down box values.

3. Talk about the recently used Uploadfy plugin. This plug-in specific usage I will not elaborate (Baidu a big piece), but I think uploadfy plug-in with the upload progress bar, which I believe is suitable for many

Students, when we upload the time if the user can not see the progress, the kind of anxious experience, I believe everyone has tried. is very bad if you want to let you upload features with the progress bar using UPLOADFY can be directly

Remember that this parameter is flase by default.

4. I believe that everyone in the area related to the site when all used a plug-in, Treedata. It really works, and I have to admit it. Personal recommendation, can achieve the perfect integration with the page

The time is limited, this is the first day.

A little experience on PHP learning path

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.