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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-15-2004, 05:56 AM   #1
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
PHP include Question...

Does anyone know how to change this code..

PHP Code:
<?include("directory/4/0".date("w").".php");?>
So that an image will appear in the cell where the code is placed?

I have tried this..

PHP Code:
<?include("directory/4/0".date("z").".jpg");?>
But it spews out a bunch of crap as if it reading the encoding for the image itself.

Anyone know enough about php to answer this?

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 05:57 AM   #2
Pete-KT
Workin With The Devil
 
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
Sorry i dont carre my magnifying glass with me and with the color and size of that font I CANT read it.

Pete-KT
Pete-KT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:00 AM   #3
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Quote:
Originally posted by Pete-KT
Sorry i dont carre my magnifying glass with me and with the color and size of that font I CANT read it.

Pete-KT
Thanks for that highly intelligent, well spelt and helpful reply

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:02 AM   #4
etech
Confirmed User
 
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
Hmm..
Why dont you just declare a variable with the file string.
PHP Code:
$file "directory/4/0".date("w").".php";
<
img src=$file border=0
etech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:03 AM   #5
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Quote:
Originally posted by etech
Hmm..
Why dont you just declare a variable with the file string.
PHP Code:
$file "directory/4/0".date("w").".php";
<
img src=$file border=0
Wont that mean i have to create 365 individual .php files too?

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:04 AM   #6
etech
Confirmed User
 
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
Quote:
Originally posted by etech
Hmm..
Why dont you just declare a variable with the file string.
PHP Code:
$file "directory/4/0".date("w").".php";
<
img src=$file border=0
sorry, you need to print or echo the img code
etech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:07 AM   #7
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Quote:
Originally posted by etech
sorry, you need to print or echo the img code
And i would do that how? LOL

Sorry i know less about .php than i do about sex with women

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:08 AM   #8
etech
Confirmed User
 
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
Not sure what you mean,
you could just make 1 php file, and then
call it like *.php?date=xxxxx

and in the file you just feth that variable
PHP Code:
$date $_GET["date"]; 
etech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:10 AM   #9
etech
Confirmed User
 
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
hit me up at ICQ, i got a few minutes
etech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:11 AM   #10
Nathan
Confirmed User
 
Industry Role:
Join Date: Jul 2003
Posts: 3,108
lee,

what you want to do is this:

PHP Code:
<img src="directory/4/0<?=date("z")?>.jpg">
__________________
"Think about it a little more and you'll agree with me, because you're smart and I'm right."
- Charlie Munger
Nathan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:33 AM   #11
etech
Confirmed User
 
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
Quote:
Originally posted by Nathan
lee,

what you want to do is this:

PHP Code:
<img src="directory/4/0<?=date("z")?>.jpg">
true,
i just like to keep it in variables
etech is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-15-2004, 06:39 AM   #12
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Thanks guys got it sorted out

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
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.