Page 2 of 2

Posted: Thu Sep 19, 2002 9:28 am
by Takuma

Posted: Thu Sep 19, 2002 9:39 am
by Coca-Bear
THANK YOU :P

chdir(); :P

Coca-Bear

Posted: Thu Sep 19, 2002 11:42 am
by Takuma
:D You're welcome

Posted: Sat Sep 21, 2002 2:26 am
by Coca-Bear
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

Posted: Sat Sep 21, 2002 7:58 am
by ~J~R~R
Question 1: If you have apache, edit httpd.conf and add .htm and .html to the PHP module
Question 2: You could do that with filemtime

Posted: Sat Sep 21, 2002 8:09 am
by Coca-Bear
1. i'm using a webhoster. so i dont know if they have apache.
2. i have tried using filemtime but it doesn't tell me the date it was modified just a bunch of numbers.

a.jpg was last modified on 854652

Thanks

Coca-Bear

Posted: Sat Sep 21, 2002 9:15 am
by Takuma
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

Posted: Sat Sep 21, 2002 9:51 am
by hob_goblin

Posted: Sat Sep 21, 2002 10:32 am
by Coca-Bear
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

Posted: Sat Sep 21, 2002 10:47 am
by Takuma
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

Code: Select all

<?php
echo date("m/d/Y",filemtime("FILENAME"));
?>

Posted: Sun Sep 22, 2002 7:15 am
by Coca-Bear
ok i will search google for it and learn what i can :p

thanks for the help. it worked.

Coca-Bear