cleverbum Posted November 21, 2008 Share Posted November 21, 2008 I'm putting a couple of pages of code onto a pre-existing website, and I don't want to have to mess with too many set-up files or tread on too many toes. At the moment whatever page you visit on the site it shoves in a banner type of thing at the top with the company logo and a few other useful things. This doesn't really matter most of the time, but one of my pages is just supposed to echo back an image when it's done it's job... it's called from a page to perform some image resizing a few hundred times. At the moment instead of just firing back the image data it's sending all the company junk with it too. I was wondering how I can stop this from happening. Link to comment https://forums.phpfreaks.com/topic/133645-solved-how-do-i-stop-the-server-inserting-its-own-header/ Share on other sites More sharing options...
samshel Posted November 21, 2008 Share Posted November 21, 2008 Well....we perfectly understood your problem, but it is not related to logic and is code specific so cannot help until we have some code.. Link to comment https://forums.phpfreaks.com/topic/133645-solved-how-do-i-stop-the-server-inserting-its-own-header/#findComment-695295 Share on other sites More sharing options...
cleverbum Posted November 21, 2008 Author Share Posted November 21, 2008 OK, though it's pretty much code-independant. for example, if I wrote the page: <?php echo "hello world"; ?> The server would echo the following HTML: <!-- Beginning of: /europe/hdr_ftr/europe/header.inc --> <body> <link rel="stylesheet" href="/europe/local_scripts/style.css" type="text/css"> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- if(window.event + "" == "undefined") event = null; function HM_f_PopUp(){return false}; function HM_f_PopDown(){return false}; popUp = HM_f_PopUp; popDown = HM_f_PopDown; //--> </SCRIPT> <table border="0" cellspacing="0" cellpadding="0" width="740" bgcolor="#FFFFFF"> <tr> <td><img src="/img_new/spacer.gif" width="117" height="8"></td> <td align="center"><img src="/img_new/spacer.gif" width="251" height="8"></td> <td><img src="/img_new/spacer.gif" width="370" height="8"></td> </tr> <tr> <td><a href="http://www-internal.fluent.com/index.htm"><img src="http://www-internal.fluent.com/img_new/ansys-logo-new.gif" width="74" height="22" alt="Fluent Europe Intranet" border="0"></a></td> <td align="center"> <a href=http://www-internal.fluent.com/index.htm> <img src=http://www-internal.fluent.com/hdr_ftr/usa/img_new/bnr_nh.gif width="160" height="32" border="0" alt="Fluent USA Intranet"></a></td> <td> <table cellspacing=0 cellpadding=0 border=0 align="right" name="search"> <form name="find" action="http://www-internal.fluent.com:8765/custom/usa/query.html" method="GET"> <tbody> <tr align=middle id="header"> <td noWrap align=right> </td> <td>Search </td> <td> <input type=hidden name=col value="global"> <input type=hidden name=ht value="0"> <input type=hidden name=qp value=""> <input type=hidden name=qs value=""> <input type=hidden name=qc value="global"> <input type=hidden name=pw value="100%"> <input type=hidden name=ws value="0"> <input type=hidden name=qm value="0"> <input type=hidden name=st value="1"> <input type=hidden name=nh value="10"> <input type=hidden name=lk value="1"> <input type=hidden name=rf value="0"> <input type=hidden name=rq value="0"> <input type=hidden name=si value="1"> <input class=txtfld size=25 name=qt> </td> <td> <input type=submit value=" Go! " name="Go"> </td> </tr> </form> </table> </td> </tr> <tr> <td><img src="/img_new/spacer.gif" width="117" height="8"></td> <td><img src="/img_new/spacer.gif" width="251" height="8"></td> <td><img src="/img_new/spacer.gif" width="370" height="8"></td> </tr> </table> <SCRIPT LANGUAGE="JavaScript1.2" SRC= "http://www-internal.fluent.co.uk/europe/hdr_ftr/HM_Loader.js" TYPE='text/javascript'></SCRIPT><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=600,left = 192,top = 205,screenX=192,screenY=205');"); } //--> </SCRIPT> <table border="0" cellspacing="0" cellpadding="0" width="740"> <tr> <td width="1" height="1"><br> </td> <td colspan="5"><img src="/europe/img_new/spacer.gif" width="738" height="1"></td> <td width="1" height="1"><br> </td> </tr> <tr> <td width="1"><br> </td> <td bgcolor="#FFFFFF" align="center" nowrap> <p> </p> </td> <td width="1" align="center"><br> </td> <td bgcolor="#FFFFFF" align="center" nowrap> </td> <td width="1" align="center"><br> </td> <td bgcolor="#FFFFFF" align="center" nowrap> <p> </p> </td> <td width="1"><br> </td> </tr> <tr> <td> </td> <td colspan="5" align="center" nowrap bgcolor="#FFFFFF"><img src="/europe/img_new/spacer.gif" width="738" height="8"></td> <td> </td> </tr> <tr> <td> </td> <td colspan="5" nowrap bgcolor="#FFFFFF"> <table border="0" cellspacing="0" cellpadding="2"> <tr> <td><img src="/europe/img_new/spacer.gif" width="5" height="8"><img src="/europe/img_new/urhere1.gif" width="57" height="15" alt="you are here"></td> <td valign="top"> FL UK Departments : <a href="/europe/local/sales/">Sales</a> </td> </tr> </table> </td> <td> </td> </tr> <!-- code for the crumb-trail --> </table> <!-- End of: /europe/hdr_ftr/europe/header.inc --> <!-- Beginning of: /europe/hdr_ftr/footer.inc --> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td background="http://www-internal.fluent.com/img_new/1dot.gif"><img src="http://www-internal.fluent.com/img_new/spacer.gif" width="1" height="1"></td> </tr> <tr> <td id="footer"> <img alt="" src="http://www-internal.fluent.com/img_new/spacer.gif" width="8" height="16"> <a href="http://www.fluent.com/copy.htm">Copyright</a> <img alt="image" src="http://www-internal.fluent.com/img_new/1dot.gif" width="3" height="3" hspace="6"> <a href="http://www-internal.fluent.com/local/about/privacy.htm ">Privacy Policy</a> <img src="http://www-internal.fluent.com/img_new/1dot.gif" alt="image" width="3" height="3" hspace="6"> <a href="mailto:[email protected]">Webmaster/Feedback</a> <img alt="image" src="http://www-internal.fluent.com/img_new/1dot.gif" width="3" height="3" hspace="6"> </td> </tr> </table> <!-- End of: /europe/hdr_ftr/footer.inc --> This causes problems because I have a frontend page which requests a list of photos to be resized by showing a list of images: <table> <tr><td><b>Advert</td><td><b>Magazine Name</td><td><b>Successfully Thumbnailed</td></tr> <tr><td>./Adverts/080923/[email protected]</td><td>6</td> <td><img src="addone.php?folder=./Adverts/080923/&file=2008-09-19%4014.03.15.jpeg&company=AVL+Powertrain+UK+Ltd&mag=6&date=unkown mag"></td></tr> etc... As you can see the addition of the various header and footer data will mean that the "Image" returned by the img src=... will no longer be what I hoped it would be. Link to comment https://forums.phpfreaks.com/topic/133645-solved-how-do-i-stop-the-server-inserting-its-own-header/#findComment-695305 Share on other sites More sharing options...
cleverbum Posted November 21, 2008 Author Share Posted November 21, 2008 Nevermind, it was a setting in apache. Link to comment https://forums.phpfreaks.com/topic/133645-solved-how-do-i-stop-the-server-inserting-its-own-header/#findComment-695724 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.