I copied an Alibaba Cloud Big Fish text message sending application from the server, which was used independently on the server, but an error was reported during local operation, I do not know where the error message is as follows: {code ...} the server is the phpstudy build environment of windowssever2003... I copied an Alibaba Cloud Big Fish text message sending application from the server, which is used independently on the server. However, when running locally, an error is reported and I don't know where the problem is.
The error message is as follows:
Fatal error: Class 'TopClient' not found in /Applications/XAMPP/****/dayu.php on line 9
The server is the phpstudy build environment of windows sever2003.
The local XAPP is built with one click on the MAC computer.
Reply content:
I copied an Alibaba Cloud Big Fish text message sending application from the server, which is used independently on the server. However, when running locally, an error is reported and I don't know where the problem is.
The error message is as follows:
Fatal error: Class 'TopClient' not found in /Applications/XAMPP/****/dayu.php on line 9
The server is the phpstudy build environment of windows sever2003.
The local XAPP is built with one click on the MAC computer.
Brother. The path is incorrect.
Take a closer look.
/Applications/XAMPP/****/dayu.php
That is to say. You should have developed it on mac. Introduction: you need to change the file path ./*/Dayu. php
Windows does not have a path like/App. Therefore, the relative path is used.
The running environment is different. your local mac is unix, and the windows Server runs may be reading different paths.
It may be because the server environment is different from the local environment. I guess it may be because you dropped some files because of the settings to ignore files when pulling the project from git or svn.
The error is obvious.TopClientDoes not exist! The copy from the server is incomplete.
It may be a case-sensitive issue, a file name, or a class name. Windows is not case sensitive, so the problem is not exposed, while unix systems are case sensitive.
Check whether the file import error is obvious.
It should be a path problem.
I remember that the reason for the mistake was used up to date.
Are you sure your script depends on other scripts already included ???