Current location: Hot Scripts Forums » Programming Languages » PHP » This is a strange index.php problem!


This is a strange index.php problem!

Reply
  #1 (permalink)  
Old 10-16-03, 05:39 PM
Balaheler Balaheler is offline
New Member
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down This is a strange index.php problem!

I have a age verification PHP on my site. when I try to get in with the proper age I get errors when routed to the index.php page. The only way to fix it is when i come back in on the main html and type in a youner age then I get the page where it tells you YOUR NOT OLD ENOUGH. After that I try the proper age again then I get get to the index.php page with out errors. IM running PHP 4 with apache 1.3.
Also, if i run the pages on another folder other than on apache's it works fine. Try for your self www.balaheler.mine.at
P.S still under construction so dont expect anything yet.
error below.

Warning: mktime(): Windows does not support negative values for this function in c:\program files\apache group\apache\htdocs\header.php on line 1

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\header.php:1) in c:\program files\apache group\apache\htdocs\header.php on line 1

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\header.php:1) in c:\program files\apache group\apache\htdocs\header.php on line 1
Reply With Quote
  #2 (permalink)  
Old 10-16-03, 06:28 PM
Daemon Daemon is offline
Newbie Coder
 
Join Date: Oct 2003
Location: Virginia
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Balaheler
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:\program files\apache group\apache\htdocs\header.php:1) in c:\program files\apache group\apache\htdocs\header.php on line 1

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at c:\program files\apache group\apache\htdocs\header.php:1) in c:\program files\apache group\apache\htdocs\header.php on line 1
At the beginning of your file, you probably have something like this:
PHP Code:

<?php


//notice the blank line underneath the opening code tags, remove it
?>
The blank line underneath the opening tag for whatever reason always messes up the header calls for me, so I had to keep deleting that blank line and it usually worked (to fix the header sent part at least, not the other errors )

Also, you could've warned us that this is a freakin porn site. Scared the crap outta me when I opened the page and I heard my dad walking toward me. Jesus man.
Reply With Quote
  #3 (permalink)  
Old 10-16-03, 10:11 PM
Balaheler Balaheler is offline
New Member
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Nope still not working (WARNING THIS IS A PORN SITE)

OMG, Im totally sorry. I totaly forgot. I wasn't even thinking about the site, I just had this damn code in my head. I appologize.
You get free access when I finish it how about that?
Anyways thanks for looking it over, but it still didn't work.
I think its the apache, because like I said it works anywhere else other than the apache folders.
Here is the code for the header.
also I got this as a demo from someone

<?php $x0de352aee05945d6fd63fefba32b28e9 ="tooyoung.html";
$xa7f3f8a75914bd85e56b4acfa2b138f1 = "index.html";
$x628b7db04235f228d40adc671413a8c8 = $_POST['x628b7db04235f228d40adc671413a8c8'];
$x7436f942d5ea836cb84f1bb2527d8286 = $_POST['x7436f942d5ea836cb84f1bb2527d8286'];
$x84cdc76cabf41bd7c961f6ab12f117d8 = $_POST['x84cdc76cabf41bd7c961f6ab12f117d8'];
if($x628b7db04235f228d40adc671413a8c8 < 1 || $x628b7db04235f228d40adc671413a8c8 >
31 || $x7436f942d5ea836cb84f1bb2527d8286 < 1 || $x7436f942d5ea836cb84f1bb2527d8286 >
12 || $x84cdc76cabf41bd7c961f6ab12f117d8 < 1900 || $x84cdc76cabf41bd7c961f6ab12f117d8 > 1999)
{ header("Location: $xa7f3f8a75914bd85e56b4acfa2b138f1");
} $xb148eddcfe73fb6372023eac0fc9c29b = mktime(0,0,0,$x7436f942d5ea836cb84f1bb2527d8286,$x 628b7db04235f228d40adc671413a8c8,$x84cdc76cabf41bd 7c961f6ab12f117d8);
$xc5e7dfaf771d423ecf59b008369021e8 = getdate(); $xfd58788ee574a51bb45dc8ed779c9a17 = $xc5e7dfaf771d423ecf59b008369021e8['year'] - 18;
$x3ff57cd27b86eea8e1549ebaea51bb1a = mktime(0,0,0,$xc5e7dfaf771d423ecf59b008369021e8['mon'],$xc5e7dfaf771d423ecf59b008369021e8['mday'],$xfd58788ee574a51bb45dc8ed779c9a17);
$x755f85c2723bb39381c7379a604160d8 = date("m:d:Y", $x3ff57cd27b86eea8e1549ebaea51bb1a);
if($xb148eddcfe73fb6372023eac0fc9c29b > $x3ff57cd27b86eea8e1549ebaea51bb1a) { header("Location: $x0de352aee05945d6fd63fefba32b28e9");
} else { session_start();
$_SESSION['sid'] = session_id(); } ?>

Quote:
Originally Posted by Daemon
At the beginning of your file, you probably have something like this:
PHP Code:

<?php


//notice the blank line underneath the opening code tags, remove it
?>
The blank line underneath the opening tag for whatever reason always messes up the header calls for me, so I had to keep deleting that blank line and it usually worked (to fix the header sent part at least, not the other errors )

Also, you could've warned us that this is a freakin porn site. Scared the crap outta me when I opened the page and I heard my dad walking toward me. Jesus man.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
random link problem doogi PHP 18 03-04-09 01:00 AM
file download problem ukyankee Perl 6 10-04-03 10:39 PM
session problem afkaar PHP 0 08-27-03 04:43 AM
jpGraph axis labeling problem Squeezer PHP 2 08-20-03 07:53 AM


All times are GMT -5. The time now is 07:10 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.