PHP file_get_contents)

  • florilamaj203
  • Born
  • Born
  • No Avatar
  • Registrado: Feb 28, 2012
  • Mensajes: 1
  • Status: Offline

Nota Febrero 28th, 2012, 11:53 am

Hola todos tengo un problema con el
PHP Código: [ Select ]
file_get_contents()
Im tratando de enviar un correo electrónico automático de mi página Web. Prácticamente quiero enviar un correo electrónico a personas específicas del contenido de una tabla en mi página pero esta tabla está llena de valores php código bruja toma de db, por lo que al enviar el correo llega pero con ningún valor de php y ningún efecto de css, muestran en la tabla y el código php de la página.

Me puedes ayudar con esto
Gracias
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Febrero 28th, 2012, 11:53 am

  • ScottG
  • Proficient
  • Proficient
  • No Avatar
  • Registrado: Jul 06, 2010
  • Mensajes: 280
  • Status: Offline

Nota Marzo 8th, 2012, 11:46 am

No creo file_get_contents trabajará o el derecho de comando para la tarea le están intentando hacer.

¿Para aclarar que desea enviar un correo electrónico a algunas personas de una tabla que se rellena dinámicamente con PHP?

Intente utilizar un fullpath para obtener la información que están esperando
PHP Código: [ Select ]
file_get_contents('http://somewebsite.com/page_that_has_table.php');


Si esto no funciona, intente haciendo un doblez para obtener la información

PHP Código: [ Select ]
<?php
// create curl resource
$ch = curl_init();
 
// set url
curl_setopt($ch, CURLOPT_URL, "example.com");
 
//return the transfer as a string
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 
// $output contains the output string
$output = curl_exec($ch);
 
// close curl resource to free up system resources
curl_close($ch);    
?>
 
  1. <?php
  2. // create curl resource
  3. $ch = curl_init();
  4.  
  5. // set url
  6. curl_setopt($ch, CURLOPT_URL, "example.com");
  7.  
  8. //return the transfer as a string
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  10.  
  11. // $output contains the output string
  12. $output = curl_exec($ch);
  13.  
  14. // close curl resource to free up system resources
  15. curl_close($ch);    
  16. ?>
  17.  

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 106 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC