help?
Moderator: General Moderators
ok another question :p
how do i execute an php file within a html file. so when i go to http://www.blahblah.com/index.html it will excute a php file.
Also is it possible to show when i a file was uploaded? if so how?
Thanks
Coca-Bear
how do i execute an php file within a html file. so when i go to http://www.blahblah.com/index.html it will excute a php file.
Also is it possible to show when i a file was uploaded? if so how?
Thanks
Coca-Bear
Question 1: If you have SSI supported you could use SSI to execute PHP.
Question 2: filemtime() returns the unix timestamp so you need to format it. Try strftime() function
Question 2: filemtime() returns the unix timestamp so you need to format it. Try strftime() function
- hob_goblin
- Forum Regular
- Posts: 978
- Joined: Sun Apr 28, 2002 9:53 pm
- Contact:
1. how would i know if SSI is supported? i checked phpinfo() but nothing was there.
2. i tried using strftime() but i dont really understand what to do..
this is the timestamp i got. 1032444035 how do i go about converting it to a date?
Thanks for the help ppls. i really Appreciate all the help you ppls are giving me.
Coca-Bear
2. i tried using strftime() but i dont really understand what to do..
this is the timestamp i got. 1032444035 how do i go about converting it to a date?
Thanks for the help ppls. i really Appreciate all the help you ppls are giving me.
Coca-Bear
SSI isn't PHP, it is server side include. Search for google. If your host saids it has SSI it should work.
If you want to format the date to "MM/DD/YYYY". Then use this code
If you want to format the date to "MM/DD/YYYY". Then use this code
Code: Select all
<?php
echo date("m/d/Y",filemtime("FILENAME"));
?>