PHP: improve finding info url

- improvement of #100 
- compare with proxyurl instead of url from config, to avoid problem when the whitelisted urls don't include "rest" or "sharing"
- make use of this->contains