Jump to content

Help with Code Errors in PHP Script


TRB

Recommended Posts

The code is for a password protected section of our website. Instead all that keeps coming up is blank pages.

This just started happening within the last 3-4 days, prior to that everything worked fine.

Here is the code:

<?php

session_cache_limiter('private, must-revalidate');

session_start();

define('PEAR_DB_PATH','/home/cust1/user1079862/html/oss/lib/PEAR/DB.php');

require_once '/home/cust1/user1079862/html/oss/lib/userValidator.class.php';

$authClass=new userValidator(101);

$authClass->validateRequest();

?>

 

Any help would be much appreciated.

 

Link to comment
Share on other sites

<?php
session_cache_limiter('private', 'must-revalidate');
session_start();
define('PEAR_DB_PATH','/home/cust1/user1079862/html/oss/lib/PEAR/DB.php');
require_once ('/home/cust1/user1079862/html/oss/lib/userValidator.class.php');
$authClass=new userValidator(101);
$authClass->validateRequest();
?>

 

try and replace your code with that a couple of minor errors with speach marks and ()

 

ps

Link to comment
Share on other sites

Blank php pages are usually caused by fatal parse or fatal runtime errors. Check your web server log.

 

Also, code does not just stop running on its own (unless it is poorly written and a condition occurs that it does not test for and properly handle and recover from) unless something changed on the server. Check if your host upgraded anything or changed settings at about the time the code stopped working.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.