![]() |
php include help (with date function)?
I'm rusty with php, so I don't even know if this can be done. is there a way to use the date function in the page url for the include?
I know you can replace words with the date function to retrieve a file, example: <img src="<? echo(date('M'))?>.jpg" /> so is it possible to do something like: <?php include "<? echo(date('M'))?>.php"; ?> thanks! |
if i understand you correctly, i think it would be more like
<?php include date('M').".php"; ?> edit: which would try to include Jun.php (for this month) |
I love you.
I cannot express enough thanks! I kept putting the first " in the wrong place. you have cured me of my 6 hour headache!! |
haha.....no problem. i've had many a stressful night fighting with php for hours trying to get something to work right. as a matter of fact....i think tonite will be one of them :helpme
|
Quote:
|
All times are GMT -7. The time now is 01:54 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123