Current location: Hot Scripts Forums » Programming Languages » PHP » index auto change?


index auto change?

Reply
  #1 (permalink)  
Old 01-20-04, 10:13 PM
edmonddantes edmonddantes is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
index auto change?

Is there a way to have my index.html change automatically upon reloading?

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 01-20-04, 10:28 PM
Psybadek Psybadek is offline
Wannabe Coder
 
Join Date: Jun 2003
Location: Florida
Posts: 188
Thanks: 0
Thanked 0 Times in 0 Posts
what do u mean change? explain more
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 01-20-04, 11:20 PM
edmonddantes edmonddantes is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Could I have a set of various "index.html" files - and upon going to my page - it would randomly choose one to show.

know what I mean?

each time you would go to my site - there would be a different index page shown.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 01-22-04, 07:13 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
There is a way to do it in PHP. All you would have to do is to use a random number generator that generates a random number equal to how ever many different index files you want to have. You would then use that randomly generated number to display the version corresponding to that number from a simple text file and display it on the screen.

Sorry I am not posting the actual code here, but I am running late. Let me know if this sounds like what you are looking for.





Quote:
Originally Posted by edmonddantes
Is there a way to have my index.html change automatically upon reloading?

thanks
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change the contents of an html file in asp jaleen ASP 4 01-21-04 08:41 AM
change the contents of an html file in asp jaleen Script Requests 0 12-30-03 02:53 PM
please help to paginate index of listing sona PHP 0 12-27-03 09:35 PM
Need one MouseOver event to change TWO images AccessGuy JavaScript 5 12-13-03 04:40 AM
Need ONE mouseover event to change TWO graphics on the page AccessGuy JavaScript 1 06-19-03 03:45 AM


All times are GMT -5. The time now is 08:29 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.