Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 06-09-2006, 09:32 PM   #1
nadanada
Confirmed User
 
Join Date: Apr 2004
Location: hiya
Posts: 330
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!
__________________
nadanada is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 06-09-2006, 09:47 PM   #2
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 3,765
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)
__________________
flexx [dot] aeon [at] gmail

Last edited by FlexxAeon; 06-09-2006 at 09:49 PM..
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 06-09-2006, 10:21 PM   #3
nadanada
Confirmed User
 
Join Date: Apr 2004
Location: hiya
Posts: 330
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!!
__________________
nadanada is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 06-09-2006, 10:57 PM   #4
FlexxAeon
Confirmed User
 
FlexxAeon's Avatar
 
Industry Role:
Join Date: May 2003
Posts: 3,765
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
__________________
flexx [dot] aeon [at] gmail
FlexxAeon is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 06-12-2006, 11:01 PM   #5
CaptainHowdy
Too lazy to set a custom title
 
CaptainHowdy's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,073
Quote:
Originally Posted by FlexxAeon
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
I feel for ya... !!
__________________
FLASH SALE INSANITY! deal with a 100% Trusted Seller
Buy Traffic Spots on a High-Quality Network

1 Year or Lifetime — That’s Right, Until the Internet Explodes!
CaptainHowdy is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.