Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

Overall Look of index.php

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
  • 3
  • 2
1 Solution
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)

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.
I was wrong about index.php not being the default file. I think that is server dependent. The rest still holds.
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
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.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now