Re: Newbie needs recommendation for fast learning a little php.
[email protected] Fri, 02 Jul 2021 19:36:09 -0400
| Newsgroups | comp.lang.php,alt.comp.lang.php,alt.php |
|---|---|
| Organization | Newshosting.com - Highest quality at a great price! www.newshosting.com |
| Message-ID | <[email protected]> |
All right, here's a weird part.
After this code and output
>....
><!DOCTYPE html>
><html lang="en">
><head>
><meta charset="utf-8">
><title>will php run in html now?</title>
><meta http-equiv="description" content="">
><meta http-equiv="keywords" content=",">
><meta http-equiv="distribution" content="global">
><meta http-equiv="resource-type" content="document">
>
></head>
><body>
>
><h1>Am I Going To Get it Now?</h1>
>
><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
>
><br>
><br>
>Updated:
><?php
>date_default_timezone_set('America/New_York');
>$file = $_SERVER["SCRIPT_NAME"];
>$break = Explode('/', $file);
>$pfile = $break[count($break) - 1];
>echo "" .date("Y-m-d H:m",filemtime($pfile));
>?>
>
>The output of that code was:
>
>Am I Going To Get it Now?
>
>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
>
>Updated: 2021-07-02 18:07
>....
No matter what I do I always get the same minutes. The hour changes,
but the minutes are staying the same. I changed the file a bit, and
saved it again and again but the "07" stayed. So right now the string
says the file was modified at 2021-07-02 19:07 even though it's later
than that by a lot and this happened in the previous hour as well.
This can't be something wrong with the code, can it? I think it must
be something wrong with the server. I just know that when I bring this
up to my Web host they're going to say it's the code that's at fault.
Is that possible?
Anyone have an opinion on this?