WeChat development is in a hurry!

Source: Internet
Author: User
I want to use read. php obtains the url in the file and assigns a value to the following image and text reply template for reply. However, the detailed code of $ url is not properly referenced in the interface file. For example, thank you for your guidance.


I want to use read. php obtains the url in the file and assigns a value to the following image and text reply template for reply. However, the detailed code of $ url cannot be referenced normally in the interface file, as shown in.
Thank you!

Reply content:


I want to use read. php obtains the url in the file and assigns a value to the following image and text reply template for reply. However, the detailed code of $ url cannot be referenced normally in the interface file, as shown in.
Thank you!

At first glance, I knew it was a little white, and there was no programming Foundation at all.

I don't want to read so much code, but I really don't understand your first picture.

1. Yourread.phpNo method is written.returnWhat?
2. We ignore Issue 1, so you havereturnWhy is there anotherreturn? Why is there code?

... You are a problem... you can see that the subject has no programming Foundation.
We recommend that you first look at the basic syntax ~

You have deleted both the return and the return of the first file.

Let's go back to the basics. You directly return it. It's useless to write more below.

And learn sprintf again.
Even if you do not return, $ url is not loaded.

After include_once, the variables come in together. No return is required, and it is not a function.

Then, you do not need to include $ url in the xml file {}. You can parse the $ url directly.

Then, if the file is opened successfully or not, no echo can be written. If you print the text in this way, the interface will fail. You can only print the last xml file to be returned to the interface.

You didn't see any problems in other places, that is, you wrote too messy. There are a lot of source code on the Internet. You should check it first.

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.