need php help

Msg # 18 of 20 on Fidonet Linux User Echo
Time: Tuesday, 11-12-19, 7:50
[ List Messages | List Conferences | Previous Message | Next Message ]
 On 2019 Nov 12 03:58:20, you wrote to All:

  AA> I type it in at the root site address:

  AA>    http:// /what-time-changed-php.php

  AA>  ..but this is coming up with a blank display.

  AA> What am I doing wrong?

 ml> invalid or no html? have you looked at the resulting page's
 ml> source in your browser?

php can be executed directly.  I don't need to call it within html.

Meanwhile, after adjusting the script without the "if.." and thus forcing
an output, I would get, the output:

 Last modified: December 31 1969 19:00:00.

 ..which is php-speak for "file not found".


 ml> also, for security reasons, you'd be better off to have
 ml> $filename contain only the file's name... put the path in
 ml> another one and do not output it at all... then connect the two
 ml> when needed...

What do you mean "do not output it at all"?  How would I see the result

I just want to produce a report of "last modified" dates of files in
specific directories. And if that works, have the script email the output
on a schedule. But the above is a first step.

How would this would be a security risk?


--- Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101
 * Origin: nntp:// - Lake Ylo - Finland (2:221/360)

[ List Messages | List Conferences | Previous Message | Next Message ]
Search this conference for:

2018 The Trashcan BBS - All rights reserved.