Re: An I missing something here?

[email protected] (JEFFRY KILLEN)
Newsgroups php.general
Message-ID <[email protected]>
Forgive the top posting but the question I have here has been ansered.
See comment at ' // <<<< HERE' (the semicolon after the closing parenthesis.

JK

> On May 29, 2022, at 2:20 PM, JEFFRY KILLEN <[email protected]> wrote:
> 
> I hate having to do this... but...
> 
> The code: 
> 
> $_code = function($_a)
>  {
>   //$_a: string; value to assign hard coded record
>   $_target = 'php/testSample.php';
>   if(!file_exists($_target)); // <<<< HERE
>     {
>      return ['error'=>true, 'value'=>implode("\n", scandir(getcwd().'/php')) ]; //$_target.' not found'];
>     }
> 
> //....
> }:
> 
> 
> The result printed in html page:
> 
> Set jsTest Value: 
> .
> ..
> L60Set.php
> asyncSampler.php
> asyncSamplerClass.php
> index.php
> jsTest.php
> labHost.php
> procList.php
> scratch.php
> testSample.php
> 
> As you can see at the bottom: testSample.php 
> Why i is the code: !file_exists($_target) coming up
> true (not finding the file).
> 
> Thank you for time and attention
> JK
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.