Universal Data Exporter PHP Support Product Page

Estou tendo problemas para usra esta extensão em servidores online

Reported 19 Dec 2014 01:29:19
1
has this problem
19 Dec 2014 01:29:19 Marcos Paulo posted:
Good evening, I wonder if the server where you will run the script has to have some requirement ore type php mysql apche.

for I am having trouble running the web, follow the link for testing lionslc11.org.br/pdf/hist.php
this link will draw index2.php page - lionslc11.org.br/pdf/index2.php
below is the source code:

----------------------------------------------------------------------------------------------------------------------------------

<?php require_once('../Connections/sistema.php'); ?>
<?php require_once('../ScriptLibrary/dmxDataExporter.php'); ?>
<?php
if (!function_exists("GetSQLValueString") {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = ""
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string" ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "" ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "" ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "" ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_sistema, $sistema);
$query_hist = "SELECT * FROM tb_historico ORDER BY hist_login ASC";
$hist = mysql_query($query_hist, $sistema) or die(mysql_error());
$row_hist = mysql_fetch_assoc($hist);
$totalRows_hist = mysql_num_rows($hist);
?>
<?php
// Universal Data Exporter 1.1.4
// Type: pdf
$ude1 = new dmxPDFExporter();
$ude1->orientation = "P";
$ude1->showPageNumbers = true;
$ude1->pageNumberAlign = "L";
$ude1->useTitle = true;
$ude1->pageTitle = "Title";
$ude1->pageTitleFont = "arial";
$ude1->pageTitleFontColor = "#000000";
$ude1->pageTitleFontSize = 18;
$ude1->pageTitleBold = false;
$ude1->pageTitleItalic = false;
$ude1->pageTitleAlign = "C";
$ude1->imagePath = "";
$ude1->fillColor = "#FFFF66";
$ude1->evenFillColor = "#FFFFFF";
$ude1->lineSize = 0;
$ude1->lineColor = "#000000";
$ude1->stripHtmlTags = true;
$ude1->useTableHeader = true;
$ude1->tableHeaderFont = "arial";
$ude1->tableHeaderFontColor = "#FF0000";
$ude1->tableHeaderFontSize = 12;
$ude1->tableHeaderBgColor = "#33FF99";
$ude1->tableHeaderBold = false;
$ude1->tableHeaderItalic = false;
$ude1->headerOnAllPages = false;
$ude1->fontName = "arial";
$ude1->fontSize = 12;
$ude1->fontColor = "#000000";
$ude1->cellBold = false;
$ude1->cellItalic = false;
$ude1->rowHeight = 5;
$ude1->fileName = "export";
$ude1->download = true;
$ude1->saveCopy = false;
$ude1->saveLocation = "";
$ude1->sourceRecordset = $hist;
$ude1->sourceFieldsString = "hist_ip,IP,50,C,C,0,M,hist_login,LOGIN,50,C,C,0,M,hist_iduser,USUÁRIO,50,C,C,0,M";
$ude1->doExport();
?>
-------------------------------------------------------------------------------------------------
this above code generates the error on the page: tFPDF error: Some data has already been output, can't send PDF file

the error is only when working with database tables,
trabalahndo with html on the page functions normally


this can be found on the link below
lionslc11.org.br/pdf/index.php


now testing with a wampseerever Server 2.2
works perfectly export from a consuta mysql

189.84.211.68/local/

Reply to this topic