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!