Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Lionsanime Directory   ClickBooth Network   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-06-2004, 08:20 AM   #1 (permalink)
Inactive
 
Pipeline-Webdesign's Avatar
 
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
iTrader: 0 / 0%
Latest Blog:
None

Pipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the rough
Send a message via AIM to Pipeline-Webdesign Send a message via MSN to Pipeline-Webdesign Send a message via Yahoo to Pipeline-Webdesign
[solved]PHP --> MySQL Errors

Anyone know why I may be getting this error:
Quote:
Warning: Cannot modify header information - headers already sent by (output started at /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php: in /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php: in /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php: in /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php on line 14

Warning: Cannot modify header information - headers already sent by (output started at /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php: in /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php on line 16

Warning: Cannot modify header information - headers already sent by (output started at /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php: in /web/guide/uniqueemployment/wwwfp/staffing/newhireadd.php on line 18
You can see the error by going to this page

The code is in a .txt file that you can see here

Thanks in advance
Pipeline-Webdesign is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-06-2004, 09:39 AM   #2 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,149
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
Most likely because your including files after you set the headers. PHP likes to have all processing completed before outputing the page headers.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-06-2004, 09:42 AM   #3 (permalink)
Inactive
 
Pipeline-Webdesign's Avatar
 
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
iTrader: 0 / 0%
Latest Blog:
None

Pipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the rough
Send a message via AIM to Pipeline-Webdesign Send a message via MSN to Pipeline-Webdesign Send a message via Yahoo to Pipeline-Webdesign
Quote:
Originally Posted by hatchet
Most likely because your including files after you set the headers. PHP likes to have all processing completed before outputing the page headers.
tried it... no go! :-( any other ideas?
Pipeline-Webdesign is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-06-2004, 10:17 AM   #4 (permalink)
v7n Mentor
 
imaginemn's Avatar
 
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,941
iTrader: 0 / 0%
Latest Blog:
None

imaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to allimaginemn is a name known to all
Send a message via MSN to imaginemn Send a message via Yahoo to imaginemn Send a message via Skype™ to imaginemn
Try switching the order. You cannot set a variable before you send the header. The first thing to be sent to the browser is the headers and then any variables.

[code:1:7085844874]<?php

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // date in the past

header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified

header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1

header("Cache-Control: post-check=0, pre-check=0", false);

header("Pragma: no-cache"); // HTTP/1.0
?>

<?php
$random_mainimage = rand(1, 10);
$link = 'yes';
$page = '';
$image = 'reg';
?>[/code:1:7085844874]
Sorry I have not been available lately. I will have some time tonight if you need me. You have my email.

imaginemn
__________________
Imagine Creative Services
Design : Marketing : Multimedia : More
imaginemn is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-06-2004, 11:06 AM   #5 (permalink)
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,149
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
If what imaginemn stated doesn't work you might look at your file and included files for whitespace before the <?php and after ?> That will cause a similar error.
hatchet is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-06-2004, 11:38 AM   #6 (permalink)
Inactive
 
Pipeline-Webdesign's Avatar
 
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
iTrader: 0 / 0%
Latest Blog:
None

Pipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the rough
Send a message via AIM to Pipeline-Webdesign Send a message via MSN to Pipeline-Webdesign Send a message via Yahoo to Pipeline-Webdesign
Quote:
Originally Posted by hatchet
If what imaginemn stated doesn't work you might look at your file and included files for whitespace before the <?php and after ?> That will cause a similar error.
your suggestion worked. thx alot hatchet! 'preciate all the help. that error had been bugging me for a while now!
Pipeline-Webdesign is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can it be solved? Providence Web Hosting Forum 13 07-21-2007 11:09 AM
[solved]MySQL ADD entries Pipeline-Webdesign Coding Forum 3 07-05-2004 09:54 AM
[solved] mailform Pipeline-Webdesign Coding Forum 20 06-14-2004 08:38 AM
PHP MySQL Errors John Scott Coding Forum 3 03-07-2004 04:24 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:13 PM.
© Copyright 2008 V7 Inc