![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
10/05/2011, 21:31
|
|
Respuesta: ¿influye en algo el espacio en blanco en un archivo php? A ver ....
archivo uno, el que anda mal:
linea 1<?php
defined('_JEXEC') or die('Restricted access');
echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<?php
JHTML::_('behavior.mootools');
$editor=false;
if(JRequest::getVar('option','')=='com_content'&&J Request::getVar('task','')=='edit')$editor=true;
?>
linea 27 <jdoc:include type="head" />
---------------------------------------------------------------
archivo dos , el que funciona:
linea 1<?php
defined('_JEXEC') or die('Restricted access');
echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<?php
JHTML::_('behavior.mootools');
$editor=false;
if(JRequest::getVar('option','')=='com_content'&&J Request::getVar('task','')=='edit')$editor=true;
?>
linea 27 <jdoc:include type="head" />
---------------------------------------------------------------------
Como verás son exactamente iguales y no poseen ese error que detallas.
alguna otra opción?
Gracias por responder! |