| Coding Forum Problems with your code? Let's hear about it. |
06-25-2004, 03:41 PM
|
#1 (permalink)
|
|
Inactive
Join Date: 05-12-04
Posts: 520
Latest Blog: None
|
What am I doing wrong?
I put this in my page and it did not work. I only see the text and not the serverside include. The page is a php page. The code is
<B> This site last updated on
<!--#config timefmt="%m/%d/%y" --><!--#echo var="DATE_LOCAL" -->
</B>
|
|
|
06-25-2004, 04:33 PM
|
#2 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Why is it wrapped in comment tags?
|
|
|
06-25-2004, 04:49 PM
|
#3 (permalink)
|
|
Inactive
Join Date: 05-12-04
Posts: 520
Latest Blog: None
|
What is the correct format for a SSI
|
|
|
06-25-2004, 04:59 PM
|
#4 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
No, you have it right. I don't know why it doesn't work.
|
|
|
06-25-2004, 05:00 PM
|
#5 (permalink)
|
|
v7n Mentor
Join Date: 10-13-03
Location: Ft. Lewis, WA
Posts: 3,264
Latest Blog: None
|
Sorry... not about your topic because I don't exactly know.
But do you actually run FreeBSD as your OS? lol
__________________
My posts were too dang barren, so this got thrown in to take up a little bit of space.
|
|
|
06-25-2004, 05:10 PM
|
#6 (permalink)
|
|
Inactive
Join Date: 05-12-04
Posts: 520
Latest Blog: None
|
Is there some special escapement that you must do in PHP to run SSI? Is there a PHP function to do what that SSI call does?
|
|
|
06-25-2004, 05:11 PM
|
#7 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Doesn't your page extension have to be .shtml for the server side includes to work?
|
|
|
06-25-2004, 05:14 PM
|
#8 (permalink)
|
|
Inactive
Join Date: 05-12-04
Posts: 520
Latest Blog: None
|
OK, what do I do to get the date on the page?
|
|
|
06-25-2004, 05:16 PM
|
#9 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
In php, you can use this:
[code:1:e2a9a9979a]<?php
echo date("m.d.y");
?>[/code:1:e2a9a9979a]
|
|
|
06-25-2004, 05:18 PM
|
#10 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
That won't give you a last updated date, though. Neither will the one you were using above, though. Is that what you were looking for?
|
|
|
06-25-2004, 05:18 PM
|
#11 (permalink)
|
|
v7n Mentor
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
Latest Blog: None
|
Jazee you are right. It should have the .shtml extension and the syntax should also be.
[code:1:80b6007213]<!--#config timefmt="%m %d %y" --><!--#echo var="DATE_LOCAL" -->[/code:1:80b6007213]
imaginemn
|
|
|
06-25-2004, 05:21 PM
|
#12 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Quote:
|
Originally Posted by imaginemn
Jazee you are right. It should have the .shtml extension and the syntax should also be.
|
No. The syntax he used above works. The one you just posted will not have the slashes in between the numbers.
|
|
|
06-25-2004, 05:32 PM
|
#14 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Did you just use the php one?
|
|
|
06-25-2004, 05:37 PM
|
#15 (permalink)
|
|
Inactive
Join Date: 05-12-04
Posts: 520
Latest Blog: None
|
Yes I used the PHP one. Could I use somekind of an include in PHP and call a .shtml file that has the SSI code?
|
|
|
06-25-2004, 05:39 PM
|
#16 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
You could try.
<?php include('datefile.shtml'); ?>
Just put your date thing in datefile.shtml and try it.
I doubt it will work, though.
|
|
|
06-25-2004, 05:45 PM
|
#17 (permalink)
|
|
Inactive
Join Date: 05-12-04
Posts: 520
Latest Blog: None
|
Thanks very much.
|
|
|
06-25-2004, 05:47 PM
|
#18 (permalink)
|
|
No Longer Here
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
Latest Blog: None
|
Doesn't work. I tried it. Your better off sticking with the php.
|
|
|
06-25-2004, 06:19 PM
|
#19 (permalink)
|
|
v7n Mentor
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
Latest Blog: None
|
Jazzee Good catch my mind must be mush. 10 Prince concerts in 7 days too much work not enough sleep.
imaginemn
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 02:01 PM.
© Copyright 2008 V7 Inc
|