Page 1 of 1
Script error
Posted: Fri Jul 11, 2008 11:50 pm
by dbldee
I have installed
script here
But the page remains blank when rendered
any comments or suggestion appreciated
Re: Script error
Posted: Sat Jul 12, 2008 2:45 pm
by califdon
dbldee wrote:I have installed
script here
But the page remains blank when rendered
any comments or suggestion appreciated
You have given us nothing to comment on. Since it isn't working, we have no way to see your script. The only thing I can tell you is that when you have a syntax error
anywhere in a php script, the web server simply doesn't send any of the php-generated content to the browser, which is what appears to be the case here. The error message is what tells you where the error is, and it says that there is a syntax error on Line 8 of index.php, involving the INCLUDE_ONCE directive. If you want us to review your script, you will have to post it here, and if you do
please use the [ php ] and [ /php ] tags to enclose your code, to make it readable. In general, when you ask for help in a forum, you need to include the exact error message you receive and at least that part of your code.
Re: Script error
Posted: Sun Jul 13, 2008 3:05 pm
by dbldee
Thanks Jack
the code
Code: Select all
<?php
if(!file_exists('settings.php'))
{ header("Location: ./setup/index.php"); exit; }
include "errordebug.php";
require_once("functions.php");
{
$user = new flexibleAccess();
$db= new DB;
$template = new TEMPLATE;
$forms = new FORMS;
$display = new DISPLAY;
if(is_dir('setup') || is_dir('upgrade'))
$template->header($a); ?>
<title>Your Site Description:</title>
<table border="1" cellpadding="0" cellspacing="0" width="700" height="30" bgcolor="White" align="center">
<tr>
<td valign="top" height="30" width="80%" align="center">
<font color=red><b>YOU MUST EITHER DELETE OR RENAME THE SETUP DIRECTORY BEFORE YOU WILL BE ABLE TO LOGGING INTO THE SYSTEM!!</b><br>
<br></font>
</td>
</tr>
</table>
There is additional code, but it is lengthy.
Thanks
Re: Script error
Posted: Sun Jul 13, 2008 5:20 pm
by califdon
There are some odd lines in your code that I don't have time right now to examine closely, but for starters, require() and include() functions in php are identical, except for how they handle errors. Why would you use one of each in successive lines, and why would you you use parentheses in one case and not the other? Following the require_once line, there appears to be a mis-placed { that I think should be removed. And once again, show the exact error message that is being produced.