Re: virtual() call to CGI script
| From: | Jason Brooke | Date: | Tue, 28 Aug 2001 06:38:14 +0000 |
| Subject: | Re: virtual() call to CGI script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64734@lists.php.net to get a copy of this message | ||
> I use the PHP virtual() function to call a CGI script, and that works
> fine. But I need to prevent the CGI from being executed directly, in
> case someone tries to access its URL.
>
> Since HTTP_REFERER is unreliable, I was wondering how others have
> solved this problem ...
>
>
> Egan
move it out of the document tree if you don't want it executed via http, and
use system or exec or something instead of virtual
jason