Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001062

Re: [PHP] php / apache From: Matt McClanahan (cardinal <email protected>)
Date: 06/30/01

On Fri, Jun 29, 2001 at 03:54:13PM +0000, Pétur Björn Thorsteinsson wrote:

> can anyone tell me how to configure a php script so that it can only be
> accessed by other scripts and not directly by typing its url in the
> webrowser?

Just move the script outside the web root. Browsers can't directly
access files that aren't inside web-visible directories.

Matt

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>