Page 2 of 2
Posted: Fri Oct 26, 2007 11:04 am
by FireElement
feyd wrote:Then I guess you are stuck.
By the way, please don't attempt to bypass the swear filter again.
sorry!! I just really dont get it! Its stressing me out, as I need it so I can run a captcha. To stop spam and I just dont get it....
Posted: Fri Oct 26, 2007 11:06 am
by feyd
Is there an auto_prepend file set? It's a setting in the ini file.
:( :(
Posted: Fri Oct 26, 2007 11:28 am
by FireElement
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="feyd"]Is there an auto_prepend file set? It's a setting in the ini file.[/quote]
I dont know? where is it located?
I just put the following folder in on its own...
in my index.php
Code: Select all
<?php
function session_started(){
if(isset($_SESSION)){ return true; }else{ return false; }
}
//Start the output buffer so we dont create any errors with headers
ob_start();
//Check to see if it has been started
if(session_started()){
echo 'The session has been started.<br />';
}else{
echo 'The session has not been started.<br />';
}
//Start the session
echo 'Starting Session...<br />';
session_start();
//Check again
if(session_started()){
echo 'The session has been started.<br />';
}else{
echo 'The session has not been started.<br />';
}
//Flush the buffer to screen
ob_end_flush();
?>
This is what happens
The session has not been started.
Starting Session...
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /data01/mlouret/public_html/share-tips/index.php:2) in /data01/mlouret/public_html/share-tips/index.php on line 20
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /data01/mlouret/public_html/share-tips/index.php:2) in /data01/mlouret/public_html/share-tips/index.php on line 20
The session has been started.
feyd | Please use Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Posted: Fri Oct 26, 2007 11:30 am
by feyd
That is to be expected, you echo before session_start() is called.
Posted: Fri Oct 26, 2007 11:35 am
by FireElement
Yeah but I just put
in a file nothing before after and it did the same thing I dont know whats going on...
Posted: Fri Oct 26, 2007 11:39 am
by feyd
FireElement wrote:Yeah but I just put
in a file nothing before after and it did the same thing I dont know whats going on...
You've said this many times already. I understand it. That's why I asked about auto_prepend. You can often find where your ini file is by looking at
phpinfo().
Posted: Fri Oct 26, 2007 12:09 pm
by FireElement
hey thanks for helping me... I did phpinfo() it brough loads up. what should I be looking for?
Posted: Fri Oct 26, 2007 8:12 pm
by Stryks
Scroll down to Configuration / PHP Core and look for the setting auto_prepend_file.
By default, this should read 'no value'.
Posted: Sat Oct 27, 2007 10:30 pm
by FireElement
Stryks wrote:Scroll down to Configuration / PHP Core and look for the setting auto_prepend_file.
By default, this should read 'no value'.
yeah it does...