Ucenter integration, communication failure, debugging test Troubleshooting _php Tutorial

Source: Internet
Author: User
Tags sql error
This article to give your classmates about Ucenter integration, communication failure, debugging test troubleshooting methods, I hope this method for you to help the reunion Oh.

The failure is due to an error in your application's api/uc.php. For example, Ucenter rules. Only uc.php This file returns 1 normally, the communication succeeds. But if you return a SQL error. Instead of 1, it must be a failure. How to test it?

The code is as follows Copy Code

Include_once "config/config_global.php";
Include_once "config/config_ucenter.php";
Include_once "uc_client/client.php";
Echo Uc_user_synlogin (2); 1 ID for the user

?>

The above code is saved as a test.php file. Put it in the root directory of your DZ forum or ucenter and use the domain name directly. com/test.php See what the error is. Of course. uc.php file

error_reporting (0); This sentence is commented out at the end. Errors are displayed more clearly. After the error has been found. This sentence must be added. Otherwise, the communication may fail.

http://www.bkjia.com/PHPjc/633168.html www.bkjia.com true http://www.bkjia.com/PHPjc/633168.html techarticle This article to give your classmates about Ucenter integration, communication failure, debugging test troubleshooting methods, I hope this method for you to help the reunion Oh. The failure is due to your application's ...

  • 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.