Re: error of "Could not open input file" from PHP CLI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux