clweed Posted June 3, 2006 Report Share Posted June 3, 2006 My home page is now an html page. The Log in / Log out feature that is written in php no longer works.<?php if( $currentuser ) { echo "<li><a href=\"logout.php\" class=\"lightlink\">$text[mnulogout]</a></li>\n"; } else { echo "<li><a href=\"login.php\" class=\"lightlink\">$text[mnulogon]</a></li>\n"; }How would I convert this to work in my new home page?Thanks,Lee Quote Link to comment Share on other sites More sharing options...
theKiwi Posted June 3, 2006 Report Share Posted June 3, 2006 See my previous post. You need to use index.php as the index page if you want any php functions on that page to be able to work.Roger Quote Link to comment Share on other sites More sharing options...
clweed Posted June 3, 2006 Author Report Share Posted June 3, 2006 See my previous post. You need to use index.php as the index page if you want any php functions on that page to be able to work.RogerThanks Roger Quote Link to comment Share on other sites More sharing options...
Jerome Liebowitz Posted June 3, 2006 Report Share Posted June 3, 2006 See my previous post. You need to use index.php as the index page if you want any php functions on that page to be able to work.RogerAs I posted elsewhere:My understanding is that all you have to do is rename the file index.php, leaving all the html code, etc. intact. Then the php code works. You do NOT have to enter it all into the default index.php file that came with the program.Jerry Quote Link to comment Share on other sites More sharing options...
theKiwi Posted June 3, 2006 Report Share Posted June 3, 2006 That was the gist of my reply - the file suffix must be .php for the server to parse the file through the php "stuff" - as you note simply changing the file suffix achieves this - you don't have to use the supplied index.php file to start from.Roger Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.