poll
. admin
. include
I'm not getting any error messages, nor any output
My first approach gave me errors - path errors in common.inc.php(in admin folder). As an example, I modified the path references in common.inc.php from:
Code: Select all
require "./include/config.inc.php";Code: Select all
$include_path = dirname(__FILE__);
if ($include_path == "/") {
$include_path = ".";
}
require $include_path."/../include/config.inc.php";I then added the set_include_path() entry in index.php
The first 7 lines in index.php has:
Code: Select all
set_include_path('./include');
$include_path = dirname(__FILE__);
if ($include_path == "/") {
$include_path = ".";
}
require $include_path . "/admin/common.inc.php" ;
echo("Reached index") ;Is there a way to tell what has been executed, and what hasn't? like, any logging or trace facility? I know I can use echo() statements (or the like?). I imagine some of the changes in common.inc.php can be backed out since adding the set_include_path() in index.php, but would think
The index.php file I have created in "poll" folder is to display a list of all active polls, with either a "vote", or "display status" button depending on whether the user has already voted on a poll. The look of the page was to parallel the index.php in the "admin" folder.
Any and all help would be appreciated.
Michael