|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-06-27 22:04 UTC] sniper@php.net
[2001-07-27 10:46 UTC] kalowsky@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
- Standard Win32 PHP install - Apache 1.3.20, Win32 - PHP running as a module - Unix Tools running on Win32 platform DEMO SCRIPT: <? if ($query != "" || $query != NULL) { $do_time = time(); $test = $do_time.".txt"; exec("egrep -i $query c:/Apache/logs/access.log > c:/Apache/htdocs/output/$test"); @$data=fopen("c:/Apache/htdocs/output/$test", "r"); if (!@$data=fopen("c:/Apache/htdocs/output/$test", "r")) { echo("<font class=\"larger\">There May Have Been An Error With Your Query As No Output File Was Generated.<br>"); echo("Please Check The Syntax Of Your Query.</font>"); } else { $file=fpassthru($data); } } else { echo("<font class=\"larger\">There Was No Query To Analyze.<br>"); echo("Please Re-Enter Your Query.</font>"); } exec("c:/Apache/htdocs/del.bat c:\Apache\htdocs\output\$test"); ?>