Requested test results at bottom H.H. -----Original Message----- From: Richard Quadling [mailto:rquadl...@gmail.com] Sent: Friday, October 15, 2010 6:44 AM To: Holcombe, Howard @ CSG - CSE; php-windows Subject: Re: [PHP-WIN] error of "Could not open input file" from PHP CLI
On 14 October 2010 19:26, <howard.holco...@l-3com.com> 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:rquadl...@gmail.com] > Sent: Thursday, October 14, 2010 1:24 PM > To: Holcombe, Howard @ CSG - CSE; php-windows > Subject: Re: [PHP-WIN] error of "Could not open input file" from PHP CLI > > On 14 October 2010 16:03, <howard.holco...@l-3com.com> 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:rquadl...@gmail.com] >> Sent: Thursday, October 14, 2010 8:16 AM >> To: nevvermind >> Cc: Holcombe, Howard @ CSG - CSE; php-windows@lists.php.net >> Subject: Re: [PHP-WIN] error of "Could not open input file" from PHP CLI >> >> On 14 October 2010 12:50, nevvermind <giadii...@gmail.com> 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