Reseller Domain Murah dan termurah di Indonesia? ya di ResellerCamp.
         
 

Forum PHP Indonesia

 
Advanced Search
   
 
Home Register FAQ Memberlist Usergroups  
 
 

Forum PHP Indonesia Forum Index Instalasi PHP hellpp!!! ada keluar kode error..
Display posts from previous:   
      All times are GMT + 7 Hours  

hellpp!!! ada keluar kode error..

Post new topic  Reply to topic

Wed Mar 10, 2010 08:50
Author Message
titikhitam
PHPnewbie
PHPnewbie


Joined: 08 Mar 2010
Posts: 9
Location: jakarta

Post subject: hellpp!!! ada keluar kode error.. Reply with quote

haloo para master2 php,gi bljr bkin menu login..tp dpt mslh ky gni ni..

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\titikhitam\index.php:21) in C:\xampp\htdocs\titikhitam\login.php on line 22

ni yg sy ketikan :
<?php
include("config.php");
?>
<?php
if($_GET['register'])
{
include("daftar.php");
exit;
}
?>
<?php
if($_GET['register2'])
{
include("daftar2.php");
exit;
}
?>
<?php
if($_GET['login'])
{
include("login.php");
exit;
}
?>
<p>
<?php
if($_GET['logout'])
{
print "Logout successfully, Thanks for visiting this site... Click Login to visit our site again !";
}
?>


nah kira2 titik prmaslahnnya ad dmna??
kl ad tutorialnya bagi2 dunk..masih newbie d PHP...thanx before
_________________
msuic metal & cadas
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Thu Mar 11, 2010 10:23
Author Message
vortexgin
PHP Programmer
PHP Programmer


Joined: 28 Jan 2009
Posts: 120
Location: Jakarta

Post subject: Reply with quote

coba file yg di include di tampilin juga. biasanya sih yg beginian error di function header. jadi klo kita pake function header itu ga boleh mengirimkan response text yg laen. di cek lagi z :)

Cool Man

Selamat Mencoba
_________________
I'am GinVorteX
 
View user's profile Send private message Yahoo Messenger
      Back To Top  

Fri Mar 12, 2010 00:21
Author Message
titikhitam
PHPnewbie
PHPnewbie


Joined: 08 Mar 2010
Posts: 9
Location: jakarta

Post subject: Reply with quote

udah ga error lagi bos.........mkasih...
tp ko giliran di logout n di back masih bs masuk ya ketampilan menu sblumnya...gmna cranya biar ga gitu??ad script yg lbh gmpang ga??
_________________
msuic metal & cadas
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Mon Apr 05, 2010 16:02
Author Message
anis135
PHPnewbie
PHPnewbie


Joined: 27 Jan 2010
Posts: 16

Post subject: Reply with quote

pake session aja supaya bisa ngatur udah masuk apa ga
kek gini:
Code:
<?php <?php
session_start
();
?> ?>
 
View user's profile Send private message Yahoo Messenger
      Back To Top  

Tue Apr 06, 2010 20:04
Author Message
mul14
PHP Programmer
PHP Programmer


Joined: 01 Jun 2009
Posts: 135
Location: Yogyakarta

Post subject: Reply with quote

@titikhitam

Coba tambahin ini bro
Code:
<?php <head>
<
META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<
META HTTP-EQUIV="Expires" CONTENT ="-1">
</
head?>

_________________
Join - http://framework.web.id
 
View user's profile Send private message Visit poster's website Yahoo Messenger
      Back To Top  

Sat Jul 17, 2010 00:01
Author Message
musicanda
PHP Master
PHP Master


Joined: 02 Jun 2010
Posts: 263
Location: Rumahnya Angeline

Post subject: Reply with quote

titikhitam wrote:
udah ga error lagi bos.........mkasih...
tp ko giliran di logout n di back masih bs masuk ya ketampilan menu sblumnya...gmna cranya biar ga gitu??ad script yg lbh gmpang ga??




pasang session_start(), kemudian cek jika variabel session sudah tdk terbentuk, direct ke link login lagi, if (!isset(var_session)) { header("location:...php"); }
 
View user's profile Send private message Send e-mail Visit poster's website
      Back To Top  
Post new topic  Reply to topic

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


      Back To Top  

Page 1 of 1
Jump to:  
Powered by phpBB © 2001, 2002 phpBB Group
Toko Kaos Couple | Avalanche style by What Is Real © 2004 | Toko Baju Butik Online | Cara Pedia | Busana Baju Muslim