Mysql-if the same PHP application file can be run on the server, an error is reported locally.

Source: Internet
Author: User
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 ???

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.