Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Ad Rotator

   
this might be a stupid question
View previous topic :: View next topic  
Author Message
bigbuck



Joined: 05 Aug 2005
Posts: 5

Posted: Wed Aug 10, 2005 1:37 am    Post subject: this might be a stupid question

when you go to www.site.com
doesnt it automatically load up the index.html file at the root
if i want to use the adrotator at www.site.com/index.html
how do i do that ?
If i save index.html as index.shtml or index.php, when i got to www.site.com will it load up the .shtml file ?

I'm a newbie.. sorry if that is a stupid question
Back to top
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 466
Location: South East Kentucky,U.S.A.

Posted: Wed Aug 10, 2005 2:32 am    Post subject:

Actually the answer is yes........... By default , the server will look for "index.htm" or "index.html" ...... however , you have somehow created a sub-directory and then the server is loading the index.htm
.

that is weird really........

http://www.site.com returns :==>
http://www.site.com/main/index.htm
_________________
Cheers,
Danny
C-J Web-Site Search Engine All Tidied Up Version,Major Updates !http://www.cj-design.com/forum/viewtopic.php?t=1414
Coders have bills to:http://www.cj-design.com/index.php?content=donate
Back to top
PHPDUMMY
CJ-Design.com Moderator



Joined: 09 Mar 2005
Posts: 466
Location: South East Kentucky,U.S.A.

Posted: Wed Aug 10, 2005 2:33 am    Post subject:

and then , so long as your site is in fact php enabled , so the following in "index.htm"

<?php include'adrotator/adrotator.php' ?>


_________________
Cheers,
Danny
C-J Web-Site Search Engine All Tidied Up Version,Major Updates !http://www.cj-design.com/forum/viewtopic.php?t=1414
Coders have bills to:http://www.cj-design.com/index.php?content=donate
Back to top
Display posts from previous:   
       CJ Webmaster Forums Forum Index -> PHP Scripts » CJ Ad Rotator All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional, Mods by CJ Website Design