Can somebody tell me how can php code be traced on a distant webserver? I tried with xdebug but I cannot find php.ini and other configuration files?
Thank you very much in advance!
Have you enabled the remote debug functionality in XDebug?
You need an IDE that integrates with xdebug remote debug, like Netbeans 7.
phpinfo.php in the document root with the code <?php phpinfo(); ?> and then visit the url your-site.com/phpinfo.php and it will tell you where the php.ini file is on your server.
var_dumpandprint_rto use in your logic and follow what's going on. You've been very vague about what you're trying to do, though.