Script error

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
dbldee
Forum Newbie
Posts: 5
Joined: Fri Apr 04, 2008 9:26 am

Script error

Post by dbldee »

I have installed script here
But the page remains blank when rendered
any comments or suggestion appreciated
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Script error

Post 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.
dbldee
Forum Newbie
Posts: 5
Joined: Fri Apr 04, 2008 9:26 am

Re: Script error

Post 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
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Script error

Post 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.
Post Reply