Alex Rivera | Logout

Access Symfony/web/config.php from other address than localhost?

Asked 2011-06-17T08:29:12.013
26

I'm currently testing different PHP frameworks to see witch on my going to use for my next project. I just installed Symfony2 on my web server. When trying to access the Symfony/web/config.php file, Symfony blocks this file from being edited by any other than localhost. Of cures there is no gui on my server, so a visual config is quite usless without a browser.

Is there a way to call access the Symfony/web/config.php file from any other address than loclhost?

Edit
Report

1 Answer

11

If you are not sure from which ip you are connecting, use

var_dump($_SERVER['REMOTE_ADDR'])

answered 2012-03-09T08:38:19.053

Your Answer