Jump to content

this appears before every php include "" why?


MSUK1

Recommended Posts

in the hard code this text  is not anywhere to be seen. HOWEVER. the final result prints this text before every php include..

 

the site is www.matt-cardle.co.uk ive noticed it only does it on pages after the landing page..

 

so www.matt-cardle.co.uk DOESNT SHOW

but www.matt-cardle.co.uk/Home [and any other page] DOES SHOW

 

the unclude i am using is like this for all page: "<?php include '../includes/ads2.php'; ?>"

 

and text before and after this for example is..:

																								<table style="width: 55%; height: 84px;" cellspacing="0" cellpadding="0" align="right">
																											<tr>
																															<td style="height: 23px" class="style9"><?php include '../includes/ads2.php'; ?></td>
																											</tr>
																							</table>

Link to comment
Share on other sites

as this is new and ive not come accross it before, here is the head of the file.. im using sharepoint it doesnt usualy insert the BOM chareceters or hasnt done before and as you can see www.matt-cardle.co.uk/ NOT BOM and /Home BOM..

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
<meta http-equiv="Content-Language" content="en-gb" />
<title>Matt Cardle | X Factor Official Site</title>
<meta name="description" content="27-year-old Matt Cardle Official Website. Sign the guestbook. List. Watch and support Matt Cardle from X Factor 2010" />
<meta name="keywords" content="Matt, Cardle, X Factor, Official, Music, Youtube, Videos, Audition, Bootcamp, Live Shows, Syco, SycoTV, Modest, Model, Actor, Singer, Dancer, 2010" /> 
<meta name="robots" content="index,follow" /> 
<link rel="shortcut icon" href="http://matt-cardle.co.uk/favicon.ico" />
<link type="text/css" rel="stylesheet" href="../style/style.css" />
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16806414-2']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<style type="text/css">
.style1 {
			background-color: #A5ABDA;
}
</style>
</head>

Link to comment
Share on other sites

ok so ive read i should change the language at which im writing in, site settings -> language. but what do i change it too? this one post said ANYTHING BUT UTF-8

 

can i be completly honest and say, i have NO idea what the difference is, what visual changes any UTF formats make or how all of a sudden the next time i upload my site it has the BOM included

Link to comment
Share on other sites

ive changed it to, us/western european (iso) still any idea why it does this for one page and not another?

 

EDIT:

 

i change it to any other encoding language click okay and when i open site settings again, it goes back to unicode-8

 

there is something strange going on, have you looked at the site,

 

visit: www.matt-cardle.co.uk then click on Home, those pages are identical doesnt make sense for one and not the other :/

Link to comment
Share on other sites

and than at first row insert this:

 

<?php header("Content-Type: text/html; charset=UTF-8"); ?>

 

+ get Nodepad++, open one of your files, change the encoding to UTF8 - without BOM and see if there will be the signs. Let us know :].

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.