Announcements | Last Post | |
---|---|---|
SoC Curricula | 09/30/2017 01:08PM | |
Demarcation or scoping of examinations and assessment | 02/13/2017 07:59AM | |
School of Computing Short Learning Programmes | 11/24/2014 08:37AM | |
Unisa contact information | 07/28/2011 01:28PM |
Moved code to server and many errors is shown October 12, 2013 04:16PM |
Registered: 10 years ago Posts: 23 Rating: 0 |
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/##hashed_out_by_me##/login.php:4) in /home/##hashed_out_by_me##/login.php on line 4 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/##hashed_out_by_me##/login.php:4) in /home/##hashed_out_by_me##/login.php on line 4
Language: HTML<!-- Start a the session --> <?php session_start(); ?> <html> <head> <title>Club manager login</title> <script type="text/javascript"> <!-- This javascript function opens a new window with the plain text of this page --> function openTXT() { window.open(';login.txt';,';Page Code';,';width=300,height=500,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes';); } </script> </head>
Re: Moved code to server and many errors is shown October 12, 2013 04:43PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Quote
I get hese for every page I open that have a session_start() at the top.
Language: PHP<!-- Start a the session --> // Remove everything before <?php, it sends output to the browser. <?php session_start(); ?>
Re: Moved code to server and many errors is shown October 12, 2013 04:55PM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Quote
I can't understand what I am doing wrong since it works locally
Language: PHP<?php phpinfo(); ?>
Re: Moved code to server and many errors is shown October 14, 2013 09:16AM |
Registered: 10 years ago Posts: 23 Rating: 0 |
Warning: Cannot modify header information - headers already sent by (output started at /home/######/login.php:23) in /home/######/login.php on line 40
Language: PHPheader("Location: list_players.php");
Language: PHP<?php /* This page should only be accessible from the manager';s session This part goes on top of every page only accessible to the club manager. It mean every page except for the public access and the login page itself. */ session_start(); /* Check if a session is open by verifying a session variable */ $working = $_SESSION[';started';]; if ($working != "yes") { header("Location: login.php"); } ?> <html> <head> <title>Displaying player lists</title> <link href="style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> <!-- This javascript function opens a new window with the plain text of this page --> function openTXT() { window.open(';list_players.txt';,';Page Code';,';width=300,height=500,toolbar=no,location=no,menubar=no,scrollbars=yes,resizable=yes';); } </script> </head>
Language: PHPecho "<meta http-equiv=';refresh'; content=';0;url=list_players.php';>";
Re: Moved code to server and many errors is shown October 14, 2013 10:03AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Moved code to server and many errors is shown October 14, 2013 10:10AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Moved code to server and many errors is shown October 15, 2013 09:05AM |
Registered: 10 years ago Posts: 23 Rating: 0 |
Re: Moved code to server and many errors is shown October 15, 2013 09:23AM |
Admin Registered: 11 years ago Posts: 6,606 Rating: 396 |
Re: Moved code to server and many errors is shown October 29, 2013 01:46PM |
Registered: 12 years ago Posts: 1 Rating: 0 |