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

x
  • 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?

Thanks.

Amarjit Singh
http://www.kazaaliter.u2i.org
0
AmarjitSingh
Asked:
AmarjitSingh
  • 3
  • 2
1 Solution
 
VGRCommented:
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)

regards
0
 
deermouseCommented:
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:

"http://members.lycos.co.uk/kazaaliter2k3/"

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

"http://members.lycos.co.uk/kazaaliter2k3/index.html"

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:

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

<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">
  </frameset>
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">
     put no frames code here!
</body></noframes>
</html>

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

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