We help IT Professionals succeed at work.
Get Started

php issue :  blank generated in html by php

jerrrrry
jerrrrry asked
on
331 Views
Last Modified: 2012-05-10
it that my .php page rendered html that contained spaces  , it looks likes  php instructions are rendering <br/> or something like that , is it possible to get rid of that?
maybe there is a way to prevent this from happening?
thanks
<?php 
	include('aff-image-ok.php');
	require 'fonctions.php';
	$lang = $_GET["lang"];
	if ($lang == "fr")
	{
	$titre= "J&eacute;r&eacute;mie Parmentier &gt; portfolio num&eacute;rique";
	$galerie1 = " portrait";
	$galerie2 = " studio";
	$galerie3 = " reportage";
	$galerie4 = " recherche personnelle";
	}
	else{
	$titre= "J&eacute;r&eacute;mie Parmentier &gt; photo + graphic portfolio";
	$galerie1 = " Portraiture";
	$galerie2 = " studio"; 
	$galerie3 = " Book covers";
	$galerie4 = " colors ";
	}?><!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">
	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
		<title><?php echo $titre  ?></title> 	
		<link href="/style5.css" rel="stylesheet" type="text/css">	
<script src="/js/ajax.js" type="text/javascript"></script>
<script src="/js/gallery.js" type="text/javascript"></script></head>
<body><div id="conteneur">
<div style="background-color: #D0B195;" id="fondWeb">
<div id="language"> <?php
if ($lang == "fr"){ echo'<a href="/photo/en" title="enjoy my portfolio"><img src="/fnc/en.gif" alt=""/></a> ';} 
else echo'<a href="/photo/fr" title="visitez le site en français"><img src="/fnc/fr.gif" alt=""/></a>';
?> 
</div>
<div id="logo"><a href="/" title="jérémie parmentier"><img src="/img/logo.png" alt="logo jérémie parmentier" border="0"></a></div>
<div id="couleur"><div id="navigation">
<?php include('navigation.php'); ?>
	 </div> 
</div>

Open in new window

space.gif
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE