GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP Guys? (https://gfy.com/showthread.php?t=559849)

brizzad 01-03-2006 06:57 PM

PHP Guys?
 
I was using a script whose order.php file was just a basic order form with no design.. so I wrote a template in html, and put the first part before the <?php and put the last part of the template after the ?> so that the order form looks just like my site..

Code:

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/**/public_html/ipanel/order/index.php:13) in /home/**/public_html/ipanel/order/index.php on line 66
Here's line 13:
Code:

          <td valign="top" width="766" height="650">
Here's line 66:
Code:

session_start();
thanks.

edit: i've got $5 in my paypal if whoever helps me wants it for a hamburger or something. ill brb after dinner

Jimmy C 01-03-2006 06:59 PM

You can't send headers once they have already been sent. Any HTML output like td or whatever starts headers, so you can't start the session after that (startign the session sends headers)

Cheers!

brizzad 01-03-2006 07:00 PM

Quote:

Originally Posted by Jimmy C
You can't send headers once they have already been sent. Any HTML output like td or whatever starts headers, so you can't start the session after that (startign the session sends headers)

Cheers!

can I start the session before the td somehow?

Jimmy C 01-03-2006 07:05 PM

Just put the <?php session_start(); at the very beginning of the file with no whitespace or anything sent to the browser first.

brizzad 01-03-2006 07:38 PM

I did that and on line 2 when the html kicks in, it errors and says unexpected '<'

Thanks for at least trying, Jimmy, even though we're not getting anywhere

brizzad 01-03-2006 07:43 PM

I'll just seperate the html into a header file and a footer file and php include it in there

Doc911 01-03-2006 07:56 PM

I'm still laughing at the 5$ part

nolaman 01-03-2006 08:21 PM

try
<?PHP
ob_start() ;
?>

at very top of page

V_RocKs 01-03-2006 08:24 PM

You didn't close the php code.. Jimmy was right, now you need ?>

woj 01-03-2006 08:25 PM

icq: 33375924 if you still need a hand with this...


All times are GMT -7. The time now is 07:36 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123