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!
1 Answer 1
Have you enabled the remote debug functionality in XDebug?
You need an IDE that integrates with xdebug remote debug, like Netbeans 7.
answered Mar 26, 2014 at 8:11
Latheesan
24.1k34 gold badges113 silver badges212 bronze badges
Sign up to request clarification or add additional context in comments.
2 Comments
Moki
I am now installing Netbeans, but I did not enable remote debug because I cannot find php.ini.
Latheesan
create a file on your web server called
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.lang-php
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.