php-windows Digest 20 Oct 2010 20:50:06 -0000 Issue 3871
Topics (messages 30364 through 30365):
Re: error of "Could not open input file" from PHP CLI
30364 by: Richard Quadling
speed of require/include
30365 by: Tommy Pham
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On 18 October 2010 15:54, <howard.holco...@l-3com.com> wrote:
> 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-wind...@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
>
>
At this stage, I'd like to see what FileMon or ProcMon is reporting
when you run ...
X:\work\hholcomb\PHP\extract_5.3.3_VC6\php.exe -n -f
"X:\work\hholcomb\PHP\test\phpinfo.php"
--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
--- End Message ---
--- Begin Message ---
Hi everyone,
I think this question is general PHP but because I'm using Windows for
development at the moment and was wondering if it's related to Windows.
Does the speed of require/require_once/include/include_once depends on disk
activity, buffers (disks, controller, Windows)? I can't seem to get steady
time from xdebug profile... it varies from 27ms to 170ms on one of my
scripts while another script in the same framework with less require/include
always have a steady ~6.5ms (the previous has 30 requires/includes and the
latter has 8 requires/includes). I only have the skeleton of the framework
for my project (no DB access, no fancy html/xml output). I'm running PHP
5.3.3 FastCGI on Windows 2008 R2 x64 w/ 4GB RAM. SATA RAID controller is
3ware 9650se.
Thanks for your time,
Tommy
--- End Message ---