OK I'm trying to create an internal php page to link to my main sites index.html page. Here's the code that's automatically generated when I click on the Create Php page link.
<?php /*Write code inserting output insidevariable $content as in following example.You have DB connection, all global varsand all MKPortal and Forum functions at your availability*/$nome = $mkportals->member['name'];$content="Hi $nome";So, how would I change this so it links to my sites index.html page?
I assume there is more to the code than what you are displaying above since there is no closing php token.Also, what is the link to your Home page?What Forum do you have included in your MKPortal?
What u have given is not the full message u get...because it must have the php ending tag i.e "?>"U can just include this php file in the index.html by using the the include statement...Or if u want to do something that doesn't have any security issues or it can be viewed by any one...then u can just embed those php statements in the html file itself...what u have to do is just write those php statements in the php tags...Well this is not recommended as the index file is something that is visible to any user..Or u can have an index file as the following...this is the index.php
<?php // Start a sessionsession_start();require_once ('dbconnect.php');//which connects to the databaserequire_once ("functions.php");//several functions?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://forums.xisto.com/no_longer_exists/ to to yoursite</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head><body><?phpinclude "login.php";?></body></html>
hope this would help