Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Taking this a bit further.... 1

Status
Not open for further replies.

liark

Programmer
Apr 18, 2000
36
GB
What I'm trying to do is include a different content file each day, so I tried this, but clearly doesn't work!

What I want is to load (today)

./content/91.htm

Code:
$pth['folder']['content'] = './content/';
$pth['file']['content'] = $pth['folder']['content'].$date("z")'.htm';
Thanks for your help!

Liark


 
date() is a function, not a variable.

and you were missing a concatenator (dot).

Code:
$pth['folder']['content'] = './content/';
$pth['file']['content'] = $pth['folder']['content'] . date("z") . '.htm';
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top