PDA

View Full Version : PHP Help !



DJ::Beatz
21-05-2008, 07:29 PM
Last night, i was making a popup radio, and then all the sudden when i put a request line on, this popped up on the stats:

Warning: session_start() [function.session-start (http://habblefm.com/panel/frontend/function.session-start)]: Cannot send session cache limiter - headers already sent (output started at /home/habble/public_html/panel/frontend/request.php:2) in /home/user/public_html/panel/config.php on line 2

I cant figure out what is wrong with it, but here is the config file:

<?php
session_start();
/*
* Location Configuration
*/
$root = "/home/USERNAME/public_html/panel/";
$url = "http://www.SITE.com/panel/";
$classes = $root . "classes/";
$includes = $root . "includes/";
$images = $url . "images/";
$css = $url . "css/";
$javascript = $url . "javascript/";
/* Include Files */
require_once $classes . "database.php";
require_once $classes . "core.php";
/* Define Database Settings */
$database ["server"] = "localhost";
$database ["username"] = "USERNAME";
$database ["password"] = "PASS";
$database ["database"] = "DATABASE";
/* Connect */
$db->connect ( $database ["server"], $database ["username"], $database ["password"], $database ["database"] );
/* Define Presets */
$action = @$_GET["action"];
$myuid = session_id();
?>

Please post and help :)

Javascrypt
21-05-2008, 07:33 PM
There is an error on the coding, either the wrong directory folder or it cant find what it is connecting it to, find a site that checks the html and keep editing it. That should do it.

Ini
21-05-2008, 07:48 PM
post the request code

DJ::Beatz
21-05-2008, 07:50 PM
I fixed it. Inside the file I had sometihng before <?PHP and that is what was causing it.

Javascrypt
21-05-2008, 07:52 PM
I fixed it. Inside the file I had sometihng before <?PHP and that is what was causing it.
A broken code, no wonder. XD

RYANNNNN
22-05-2008, 04:02 PM
A broken code, no wonder. XD

Obviously with an error like that it's going to be a small code issue...

Want to hide these adverts? Register an account for free!