Debug PHP’s script

Asked

Viewed 36 times

0

I’m developing an Android app and in this app I make some accesses to the BD (Mysql - Hostinger) through calls, from within the Android code , the PHP files via browser.

But sometimes I have problems with the data being passed from Android to PHP and so, wanted to know if anyone knows how to debug these PHP files so I can find the possible problems.

That is when Android runs the link of the PHP file that is hosted in the Hostinger that I can debug this file.

Is it possible? or I can only debug this PHP locally?

1 answer

0

If you insert this excerpt into your code

ini_set('display_errors',1);
ini_set('display_startup_erros',1);
error_reporting(E_ALL);

PHP is forced to show system errors, then you can do the analysis.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.