Some strange questions about how thinkphp's Vendor imports third-party class libraries

Source: Internet
Author: User
Concerning thinkphp's strange problem about importing third-party class libraries by Vendor, it is correct for php to upload and read the execl file to the database locally for testing. It is uploaded to the server by windws locally, and after the server is linux, always prompt that the server 500 error is found out after constant annotation check & nbsp; Vendor (& quot; Excel. reader & quot;); thinkphp Method for importing third-party class libraries
Php uploads and reads execl files to the database


The local test is correct, and the local test is windws.

Upload to the server. The server is linux

After that, the system always prompts the server 500 Error


Continuously commented out

Found the problem above

Vendor ("Excel. reader ");
How to import thinkphp to a third-party class library

After this sentence is commented, no 500 error will occur, and the page will be executed

This problem has plagued me for several days and I have not checked the cause.

I checked the file name and the class name repeatedly to check whether the file name is case-sensitive or not. I checked all the general problems, but I never checked the problem. When this sentence was found, the error 500 was prompted.

Please advise

------ Solution --------------------
Vendor ("Excel. reader ");
Go to the class library for debugging
------ Solution --------------------
I remember thinkphp's instructions on vender. Let's take a look!

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.