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 03-20-2002, 10:05 PM   #1
Hypo
So Fucking Banned
 
Join Date: Feb 2001
Posts: 1,104
Code for daily picture?

I want to include a self rotating daily picture in my html page code (index.shtml). I will name the pictures according to the dates and upload them on my server, say 051202.gif for 5th December 2002 etc.

What code do I insert in my html to automatically fetch that day's picture? Some kind of javascript. I cant use php I supposed since the index page extension is not php but shtml?
Hypo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2002, 10:13 PM   #2
Hot Tropical Babes
Confirmed User
 
Join Date: Feb 2001
Location: Orlando FL
Posts: 3,014
email me [email protected], and i'll help you out
__________________
<BR>
Trade with Big Tits TGP
Trade with Titman
Hot Tropical Babes is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2002, 10:32 PM   #3
JackFoley
Confirmed User
 
Join Date: Jul 2001
Location: Pac-land
Posts: 858
You can create a seperate PHP page and include it on your SHTML page like this:

[!--#include file="random_img.php"--]

The PHP file would look like this:

[?php
$date = date("dmY");
echo("[img src='/dailypics/$date.jpg']");
?]

Remember to replace [ and ] with < and >.

Hope that helps.
__________________
SUBMIT | TRADE | CONTACT
JackFoley is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-21-2002, 08:54 AM   #4
Big E
Registered User
 
Industry Role:
Join Date: Mar 2002
Location: San Diego, CA
Posts: 935
The easiest way is to have a "default" picture (default.jpg) and use a crontab to copy a picture to that filename every night at midnight.
Big E 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.