so many error

Started on the old forum in January 2013 · view the original in the archive · old links redirect here

3 replies · 437 views · started 13 years ago · 1 min read

3 participants
marcuel Newbie · 5 posts #1

helo guys, can you help me with this eror

Notice: A session had already been started - ignoring session_start() in C:\xampp\htdocs\tricks\Upload\lib\lib.php on line 22

Notice: Undefined variable: prefix_s in C:\xampp\htdocs\tricks\Upload\lib\lib.php on line 25

Notice: Undefined variable: prefix_s in C:\xampp\htdocs\tricks\Upload\lib\lib.php on line 29

the original code is

<?php

/* security*/
  $xHost = $_SERVER['SERVER_NAME'];

  $xReferer = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];

  
  if(!empty($xContents)) die($xContents);
  
  //lib start
session_start();

if(!defined('DB_DETAILS')) {
include_once($prefix_s.'lib/lib_database.php');
}

if(!function_exists("set_error")) {
include_once($prefix_s.'lib/lib_functions.php');
}

if(mysql_ver() < 5)
{
set_error("Your server doesn't support MySQL 5.");
}

if(PHP_VERSION < 5.1)
{
set_error("Your server's PHP version is incompatible.");
}

if(!defined('load_gen2'))
{
set_error("We could not load the agent because a request was not declared properly.");
$err_l = true;
}

if(!$c = mysql_connect(DB_HOST, DB_USER, DB_PASS))
{
set_error("We couldn't establish a connection to your MySQL server.");
$err_l = true;
}
if(!mysql_select_db(DB_NAME, $c))
{
set_error("We couldn't establish a connection to your MySQL database.");
$err_l = true;
}

if(!$error_load)
{
DEFINE('START_PROCESS', true);
}

$do->refresh_sess();
?>
arnage Lead · 811 posts #2

Define that var. $prefix_s = './'; And remove session_start() from lib.php on line 22

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***
marcuel Newbie · 5 posts #3

what should i change in the code? i am not very good at fixing error in php.

modfiles Developer · 200 posts #4

marcuel wrote: what should i change in the code? i am not very good at fixing error in php.

seriously, learn at least basic php coz anyone can post a fix in your problem but in the end, still wont work in your side.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close