Jump to content

Recommended Posts

Posted

I have the dumbest question. :)

 

Can you have an index.html and an index.php in the same folder or would they conflict?

 

I want to ask before I do something dumb here. LOL :dance:

 

Weezy :)

Posted

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

Posted

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.

Posted (edited)

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
Posted

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:

Posted

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 :)

Posted

Those are all super ideas (THANKS!!!), but I don't think frontpage supports PHP and that is what I build with :)

 

Weezy

Posted

I don't think it does natively, but you can always enter code into the HTML tab on Frontpage! I've done that in the past and it works just fine!

Posted

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: )

Posted

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.

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...