I tried embedding this in an XHTML file, then changed it to a
last4.php, but get a syntax error. What am I doing wrong?
<?php
$last_modified = filemtime("last4.php");
print("Page Last Updated: ");
print(date("m/j/y h:i", $last_modified));
?> 5 1449
..oO(Richard)
>I tried embedding this in an XHTML file, then changed it to a last4.php, but get a syntax error. What am I doing wrong?
What syntax error and where?
><?php $last_modified = filemtime("last4.php"); print("Page Last Updated: "); print(date("m/j/y h:i", $last_modified)); ?>
'print' doesn't require parentheses, it's not a function.
Micha
On Oct 18, 4:41 am, Richard <richardvan...@sbcglobal.netwrote:
I tried embedding this in an XHTML file, then changed it to a
last4.php, but get a syntax error. What am I doing wrong?
<?php
$last_modified = filemtime("last4.php");
print("Page Last Updated: ");
print(date("m/j/y h:i", $last_modified));
?>
This code is working for me
On 18 Oct, 00:41, Richard <richardvan...@sbcglobal.netwrote:
but get a syntax error.
What am I doing wrong?
What you are doing wrong is not thinking before you post.
You tell us that you are getting a syntax error, but don't bother to
tell us what the error actually says!
Greetings, Michael Fesser.
In reply to Your message dated Thursday, October 18, 2007, 05:42:00,
MF'print' doesn't require parentheses, it's not a function.
But it is a good idea to use them IMHO. Code looks much more solid for me.
--
Sincerely Yours, AnrDaemon <an*******@freemail.ru>
..oO(AnrDaemon)
>Greetings, Michael Fesser. In reply to Your message dated Thursday, October 18, 2007, 05:42:00,
MF'print' doesn't require parentheses, it's not a function.
But it is a good idea to use them IMHO.
Not always. Take 'echo' for example: Of course you can also use it with
parentheses, but it not always behaves like a function and if you want
to pass multiple strings to it, parentheses can't be used at all.
Micha
PS: Could you please ajust your newsreader to start quoted lines with
just a '>'? That's the common way on Usenet and that's how all news-
readers detect quoted lines to display them differently for example. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Anja |
last post by:
Hi,
At the end of one of my php pages, I have a statemtent
echo "<meta http-equiv=\"refresh\" content=\"0; url=Master.php\"> " ;
which works well: it redirects to my page 'Master.php'.
But,...
|
by: teenzbutler |
last post by:
I have a 10mb ASP file, which will not load in IE 6.0. I
get an HTTP 500 error. When I convert the 10mb file to
HTML, it loads fine. Is there a limitation on file size?
If so, is there a tag I...
|
by: Greg Burns |
last post by:
I am trying to write a global custom error page. I thought I would jot down
some of what I've learned so far...
At first I just used the default customErrors section with a defaultRedirect
tag,...
|
by: John Lau |
last post by:
Hi,
Is there documentation that talks about the page lifecycle, the lifecycle of
controls on the page, and the rendering of inline code, in a single
document?
Thanks,
John
|
by: tshad |
last post by:
Is there a way to carry data that I have already read from the datagrid from
page to page?
I am looking at my Datagrid that I page through and when the user says get
the next page, I have to go...
|
by: scottyman |
last post by:
I can't make this script work properly. I've gone as far as I can with
it and the rest is out of my ability. I can do some html editing but
I'm lost in the Java world. The script at the bottom of...
|
by: Warmbells |
last post by:
Hello,
Most of the pages on the site I manage are html with a few with php
snippits on them which are named .php, on the html pages I have a 'Last
Updated' piece of code as follows
Last...
|
by: m1post |
last post by:
Hi,
I'm very much a novice, and wondered if someone could help. I'll try to be as specific as possible, but don't waant you to have to read too much.
I have 2 pages in the sequence. 1st allows...
|
by: Brock |
last post by:
First note that I am using Framework 1.1. I have an .aspx page that is
displaying a list of employees, but only the Employee Number, First
Name, Last Name, and Title. It is working great. I...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |