Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/09/2013, 09:04
Avatar de edelcastaneda
edelcastaneda
 
Fecha de Ingreso: agosto-2013
Ubicación: SistemaSolar/Tierra/América/México/Jalisco/Tonalá/
Mensajes: 6
Antigüedad: 10 años, 8 meses
Puntos: 0
Respuesta: Problemas require externo

Miren este es el codigo:

Este sería uno de los archivos:
http://unsitiocualquiera.net/archivo.php
----
<?php
$Emplado[] = null;

$mdbFilename=realpath('../Nomina/Datos/2013/Datos001/Empleado.nom')."\\!";
$conexion = odbc_connect("Driver={Softvelocity Topspeed driver (*.tps)};Dbq=$mdbFilename","","");

$rs= odbc_exec($conexion,"select * from Empleado ORDER BY CAMPO1");
while (odbc_fetch_row($rs))
{
array_push($Emplado, odbc_result($rs,'curp'));
}
odbc_close_all();
print_r($Emplado);
?>

Este es el otro archivo:
http://otrositiocualsea.com/file.php
----
<?php require('http://unsitiocualquiera.net/archivo.php')?>
<!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>Documento sin título</title>
</head>

<body>
<h1>Encabezado1</h1>
<?php print_r($Emplado);?>
</body>
</html>

Y perdón por duplicar, este es mi primer post, cerraré el otro.

Última edición por edelcastaneda; 12/09/2013 a las 09:15