Overall Look of index.php

Posted on 2003-02-24
Medium Priority
Last Modified: 2008-03-06
I am using phpBB 2.0.4.

I would like to edit the index.php file of mine (http://members.lycos.co.uk/kazaaliter2k3/phpBB2/index.php) so I can add frames. Is this the right file?

PHP cannot be edited visually via FrontPage 2002, so is there a PHP WYSIWYG solution out there?


Amarjit Singh
Question by:AmarjitSingh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 15

Expert Comment

ID: 8011492
no, your real index file (given your username is kazaaliter2k) is one filetree level higher : http://members.lycos.co.uk/kazaaliter2k3/index.*
* being htm, html, php, depending on the hosting company

and NO, don't use frontpage : it's CRAP

and no, there is no "PHP wysiwyg solution" as PHP IS NOT VISIBLE. PHP generates HTML.

PHP script may be edited using anything able to process plain text, like Wordstar, Notepad, vi or the editor of Turbo-Pascal 3.02 (30KB, full WordStar2000 compliant)


Accepted Solution

deermouse earned 40 total points
ID: 8013214
You can put your index file anywhere you want. You can even have an index file for each directory, but index.php cannot be your default index file. Only a ".htm" or ."html" can be your default. The only reason to use a default index file is to display a page when none is specified, like when someone visits:


the default index.htm (or .html) file will be displayed just as if the it was specified like:


If you want to do frames, I would make your main index.html file the frameset and put the php files inside the frames something like this:

<title>kazaaliter2k3 home page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<frameset rows="100,*" frameborder="NO" border="0" framespacing="0" cols="*">
  <frame name="titleFrame" src="/title.html">
  <frameset cols="150,*" frameborder="NO" border="0" framespacing="0" rows="*">
    <frame name="MemuFrame" src="/menu.php">
    <frame name="mainFrame" src="/home.php">
<noframes><body bgcolor="#FFFFFF" text="#000000">
     put no frames code here!

The file displayed in the title frame "title.html" is not php because it has no dynamic content. The other 2 frames contain php files (menu.php and home.php) because these do have dynamic content. You can make all your files .php files, but if they have no php code in them it will slow up loading because they will have to be parsed by the php engine before being sent to the browser.

Expert Comment

ID: 8013677
I was wrong about index.php not being the default file. I think that is server dependent. The rest still holds.
LVL 15

Expert Comment

ID: 8015233
you are totally wrong about index.php not being selected as the default index page.
It IS if no index.htm[l] exists...

The best solution is to rename index.php as index.htm[l] and fix this line in httpd.conf :

    AddType application/x-httpd-php .php .htm .html .phtml

Expert Comment

ID: 8018421
Thanks for the info, but I already said I was wrong so cool your jets. Like I said "server dependent". You are assuming most people have intimate access to their server.

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
This article discusses four methods for overlaying images in a container on a web page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question