Jump to content

Index Page


whoahorse

Recommended Posts

Yes, you can, but which one will display when just entering the directory name, will depend on what your index manager is told to what extensions to recognize as the 'index' page.

If you want to be able to call up either page, you will have to spell out the whole path to the file name, complete with the extension, .php or .html.

 

HTH, Tom

Link to comment
Share on other sites

Yes, you can have both in the same folder. Problem is if you access the site with just the folder the index.html is the one that will load. But you could access the php file by entering it in the broswer or linking to it.

 

If you remove the index.html the index.php file will be displayed by default.

Link to comment
Share on other sites

THANKS Bruce & Tom!

 

You even answered the next question I was going to ask!!!

 

Thanks a ton :)

 

PHP is new to me, I never worked with it until I moved my sites to TCH and

was introduced to all these totally kewl free programs!

 

Weezy

Edited by whoahorse
Link to comment
Share on other sites

Your welcome Weezy :D

PHP is new to me, I never worked with it until I moved my sites to TCH and

was introduced to all these totally kewl free programs!

It's new to me too, but where does one find time to play with all the neat PHP scripts that are out there :wallbash:

Link to comment
Share on other sites

Ok, I see the reason for your question that started this topic. You are using frame's, and from the index.html it is linking to an index.php, which is in the same directory. It all works, and you can call for the page just by it's directory name, as it looks for the index.html.

 

Now, to really make it cool (not a critique LOL!!!), you would make the 'header' a PHP page, and then using the php 'include' function, make all those various pages you link to include that header right into them. Then you would not have the scroll bar looking 'out of place', it appearing on the target pages, but not on the header.

 

I just got my PHP book last week to start in on PHP, but have only had time to glance through it so far and not write any code yet, but the PHP includes was one of the first concepts I read about in it :goof:

 

Isn't this fun :)

Link to comment
Share on other sites

I think it makes life a little easier to update pages if you use includes. It's also easy to incorporate databases into your site. The are, by no means, the only reasons to use PHP.

 

Compared to some of the other family members here, I have limited experience with PHP. However, what little I am using, makes updating on my site VERY quick and easy. (And I always try to find the easies way possible! :dance: )

Link to comment
Share on other sites

I also use FrontPage for my site, and have no problems editing and publishing my PHP files. The key is that when you make an edit, Save, but don't close the file once you have edited it. Then publish, and see if you get the desired results. If not, or if your site breaks (as mine has many times, lol) then you simply hit the Undo button to undo all the changes that you made, republish, and the site is working again. Just remember not to close the file/page until it is working as you want it to.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...