Requested test results at bottom H.H. -----Original Message----- From: Richard Quadling [mailto:rquadling@xxxxxxxxx] Sent: Friday, October 15, 2010 6:44 AM To: Holcombe, Howard @ CSG - CSE; php-windows Subject: Re: error of "Could not open input file" from PHP CLI On 14 October 2010 19:26, <Howard.Holcombe@xxxxxxxxxx> wrote: > Richard > > As requested > X:\work\hholcomb\PHP\extract_5.3.3_VC6> dir "X:\work\hholcomb\PHP\test\phpinfo.php" > ÂVolume in drive X has no label. > ÂVolume Serial Number is 5457-BB00 > > ÂDirectory of X:\work\hholcomb\PHP\test > > 10/11/2010 Â02:20 PM Â Â Â Â Â Â Â Â23 phpinfo.php > Â Â Â Â Â Â Â 1 File(s) Â Â Â Â Â Â 23 bytes > Â Â Â Â Â Â Â 0 Dir(s) Â122,355,773,440 bytes free > > X:\work\hholcomb\PHP\extract_5.3.3_VC6> cacls "X:\work\hholcomb\PHP\test\phpinfo.php" > X:\work\hholcomb\PHP\test\phpinfo.php COMMSYS\Domain Admins:F > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ÂEveryone:C > Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ÂNT AUTHORITY\SYSTEM:F > > > X:\work\hholcomb\PHP\extract_5.3.3_VC6> type "X:\work\hholcomb\PHP\test\phpinfo.php" > <?php > phpinfo(); > ?> > > X:\work\hholcomb\PHP\extract_5.3.3_VC6> > > -----Original Message----- > From: Richard Quadling [mailto:rquadling@xxxxxxxxx] > Sent: Thursday, October 14, 2010 1:24 PM > To: Holcombe, Howard @ CSG - CSE; php-windows > Subject: Re: error of "Could not open input file" from PHP CLI > > On 14 October 2010 16:03, Â<Howard.Holcombe@xxxxxxxxxx> wrote: >> Richard >> >> I downloaded the executable but could not run it as I don't have admin privs on the system. >> >> You ask >> Â Â Â ÂWhat happens when PHP goes looking for the phpinfo.php script? >> Answer >> The only output in the cmd window is the msg >> Â Â Â ÂCould not open input file: phpinfo.php >> And there does not appear to be any error log entries generated. >> >> Any other things I can attempt? >> >> Howard Holcombe >> >> -----Original Message----- >> From: Richard Quadling [mailto:rquadling@xxxxxxxxx] >> Sent: Thursday, October 14, 2010 8:16 AM >> To: nevvermind >> Cc: Holcombe, Howard @ CSG - CSE; php-windows@xxxxxxxxxxxxx >> Subject: Re: error of "Could not open input file" from PHP CLI >> >> On 14 October 2010 12:50, nevvermind <giadiireg@xxxxxxxxx> wrote: >>> That link was broken. Use this instead: >>> http://live.sysinternals.com/Procmon.exe >>> >> >> Oh yeah. FileMon and RegMon are now integrated into ProcMon. >> >> I still use them separately. >> >> So, sorry about the duff link. Didn't realise that FM and RM were dead. >> > > In the same command copy the following 3 lines ... > > dir "X:\work\hholcomb\PHP\test\phpinfo.php" > cacls "X:\work\hholcomb\PHP\test\phpinfo.php" > type "X:\work\hholcomb\PHP\test\phpinfo.php" > Howard. 2 things. 1 - Please use reply to all as I'm NOT the only person on the list. 2 - Please bottom post as it makes it easier for readers to read the message in order. As your previous response Can you now type the following commands ... FOR %P IN (php.exe) do %~dpnx$PATH:P -v .\php.exe -v ..\php.exe -v I'm wondering if you have 2+ versions of PHP installed. If the above does output multiple versions, try these lines ... FOR %P IN (php.exe) do %~dpnx$PATH:P -n -f "X:\work\hholcomb\PHP\test\phpinfo.php" .\php.exe -n -f "X:\work\hholcomb\PHP\test\phpinfo.php" ..\php.exe -f "X:\work\hholcomb\PHP\test\phpinfo.php" Regards, Richard. P.S. Put your response beneath this line. - - - - - - - - - - Results are C:\Documents and Settings\hholcomb>FOR %P in (php.exe) do %~dpnx$PATH:P -v C:\Documents and Settings\hholcomb>X:\work\hholcomb\PHP\extract_5.3.3_VC6\php.exe -v PHP 5.3.3 (cli) (built: Jul 21 2010 20:03:25) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies X:\work\hholcomb>FOR %P in (php.exe) do %~dpnx$PATH:P -v X:\work\hholcomb>X:\work\hholcomb\PHP\extract_5.3.3_VC6\php.exe -v PHP 5.3.3 (cli) (built: Jul 21 2010 20:03:25) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies X:\work\hholcomb> Note - under X:\work\hholcomb\PHP, I have 1. the directory named "extracted-5.3.3_VC9" which contains php.exe 2. the directory named "extract_5.3.3_VC6" which contains php.exe But as you can see only the extract_5.3.3_VC6 version is found via the PATH environment variable. I run the 2nd shell cmd even though there was only 1 php.exe found. The results were X:\work\hholcomb\PHP\extract_5.3.3_VC6>FOR %P in (php.exe) do %~dpnx$PATH:P -n -f "X:\work\hholcomb\PHP\test\phpinfo.php" X:\work\hholcomb\PHP\extract_5.3.3_VC6>X:\work\hholcomb\PHP\extract_5.3.3_VC6\ph p.exe -n -f "X:\work\hholcomb\PHP\test\phpinfo.php" Could not open input file: X:\work\hholcomb\PHP\test\phpinfo.php X:\work\hholcomb\PHP\extract_5.3.3_VC6>type "X:\work\hholcomb\PHP\test\phpinfo.p hp" <?php phpinfo(); ?> Howard Holcombe