"Rookie Learn PHP" by Empire backup King Open 500 error in Wamp environment talking about PHP programmer

Source: Internet
Author: User
Tags learn php

=================== Problem Situation Description ===================

Little brother has been playing Discuz forum Open source program, this forum program often involves the issue of forum moving.

Today I am in the local wamp environment, with the open source software Empire backup King 2010 Database backup data, results open found error 500!

This is really a pit dad, think of the previous use of the open source program for backup also less than more than 10 times, most of them are normal success,

But there is no shortage of this situation, the younger brother before the general encounter this problem,

are directly ignored, for other ways to do backup, but used to the imperial backup King, in exchange for other methods to back up data, always feel uncomfortable, may be accustomed to a button backup it!

This time, the younger brother holding the programmer's attitude, want to solve the problem.

First, the little brother in this open source program entry file index.php the beginning of the place to add an interrupt to determine whether the program domain name is normal to access

?
1 <?php<br>echo 213;die;<br>require(‘class/connect.php‘);<br>require(‘class/functions.php‘);<br>requireLoadAdminTemp(‘eindex.php‘);<br>?>

The result is that the browser output interrupts normally, so that the domain name has been able to find the entry file correctly.

Next, the younger brother wants to be not to contain the file to find?

Before the brother because confused require and include the difference once ate a big loss, in fact, we all know the difference.

Require contains the file, if the file is not found, directly throw an error, interrupt the program to run;

Include contains files, if the file is not found, notice reminder, will not interrupt the program to run;

So I added an interrupt to the third line and found that it was in require (' class/functions.php '), where the file was included,

I changed it to include, notice reminds me that this file contains problems,

Back, the younger brother study for a long time, did not find the problem, and finally no way to help the mother of all-purpose!

Degrees Niang tell us, may be because php.ini inside Short_open_tag not open;

So, the younger brother in PHP.ini inside said Short_open_tag set to on, opened the. The result, the problem solved ~!

Well, the younger brother is a rookie, or the vast number of netizens!

Brother Hug was snake bite once, next meet will chop his seven-inch attitude, search this principle!

Originally, in our php.ini have a shorthand for the PHP logo recognition!

When is the PHP sign shorthand?

Is that we generally PHP files are included in <?php?>, we sometimes omit the PHP

Change to <?> to include, this short_open_tag open is to support such shorthand, if not open, it is the same as LZ @[email protected]!

================= Little Brother Feeling =====================

As PHP work a year of small rookie, far less than you crossing great God Technical fork, grade also poor too, may be you a knife on the second!

But the younger brother through this service, talk about their attitude to PHP feelings!

1. First of all, PHP Rookie encounter problems, need to solve their own, really can not solve in the recourse to others!

Why do you say that? Remember my younger brother's former math teacher told us, met not the topic, want to own independent thinking, with their own perspective,

Their own methods to find ways to solve the problem, and then students and teachers to help!

Younger brother's understanding of this is: when we face the problem, the first independent to solve a number of advantages! One is to cultivate their own habit of not afraid of problems,

The second is to learn how to solve the problem, third, when they successfully solve the time, because of the sense of accomplishment to enhance their self-confidence and interest in this area ~ Of course there are

Is the independent solution can be remembered more deeply! ~

2. Second, the PHP novice to solve the problem, encountered do not understand aspects, it is best to consult the relevant information on their own, to understand this point of knowledge , perhaps it is time, perhaps this

Very fragmented, but our programming want to become Daniel, is to slowly accumulate experience, understand the relevant knowledge, so the fragment is small, we can not let go not ~

3. Finally, if we help solve the problem through others, we must know its why, understand the principle, later in the encounter, even if the conversion of the next, their

I can handle it!

This is the younger brother as a small rookie through this a small feeling, write to be criticized by you Daniel, said wrong and inappropriate place, look correct!

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.