Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-03-2006, 06:57 PM   #1
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
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

Last edited by brizzad; 01-03-2006 at 06:59 PM..
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 06:59 PM   #2
Jimmy C
Registered User
 
Join Date: Nov 2005
Posts: 22
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!
Jimmy C is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 07:00 PM   #3
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
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?
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 07:05 PM   #4
Jimmy C
Registered User
 
Join Date: Nov 2005
Posts: 22
Just put the <?php session_start(); at the very beginning of the file with no whitespace or anything sent to the browser first.
Jimmy C is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 07:38 PM   #5
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 07:43 PM   #6
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
I'll just seperate the html into a header file and a footer file and php include it in there
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 07:56 PM   #7
Doc911
Confirmed User
 
Join Date: Feb 2004
Location: If i was up your ass you'd know
Posts: 3,695
I'm still laughing at the 5$ part
__________________


For PHP/MySQL scripts ICQ 161480555 or email [email protected]
Doc911 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 08:21 PM   #8
nolaman
Confirmed User
 
Join Date: Mar 2004
Location: New Orleans, LA
Posts: 1,001
try
<?PHP
ob_start() ;
?>

at very top of page
__________________
PHP Programmer ICQ 215-504-788
nolaman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 08:24 PM   #9
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,409
You didn't close the php code.. Jimmy was right, now you need ?>
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-03-2006, 08:25 PM   #10
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
icq: 33375924 if you still need a hand with this...
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.