Forum Moderators: coopster
$timestamp = mktime($hours + 13, $minutes, $day);
$d = strftime( "%d",$timestamp);
include "quote/$d.txt";
?>
I have some questions and I would appreciate some help.
What is the best way to use this script: to add whole script to my page, or use <?include "quote.php"?>?
Is this script safe?
And of course I would appreciate any feedback.
PS I used excellent Date manipulation in PHPtutorial [phpbuilder.net] for adjusting the date
What is the best way to use this script: to add whole script to my page, or use <?include "quote.php"?>?
If you are just using it on the one page then I would put it right into the page. If it is being used in many pages then I would include the file.
Is this script safe?
Not really sure what you mean by safe. It isn't doing anything frightening. ;)
[webmasterworld.com...]