Jump to content
nokas90

ERRO em FPDF

Recommended Posts

nokas90

Eu estou a fazer um projecto com FPDF,

e da-me este erro.

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes) in C:\xampp\php\PEAR\fpdf\fpdf.php on line 1096

Alguém me pode ajudar

Share this post


Link to post
Share on other sites
SirDave

Em primeiro lugar, acho que devias publicar o código. Em segundo lugar, parece-me que estás a tentar alocar demasiada memória que o teu computador não tem.


Be nice to see your eyes, blink them from time to time to relax your retina when using the computer. Blink now!

Share this post


Link to post
Share on other sites
nokas90

aqui esta uma parte do codigo:

for($i=$inicio; $i<$fim; $i++) {
$pdf->Cell(85, 8, "Tipo", 0, 1, 'L');
for($i=$inicio; $i<$fim; $i++) {
do { 
$pdf->Cell(85, 8, mysql_result($Recordset1, $i, "tipo.designacao"), 0, 1, 'L');
} while ($row_Recordset1 = mysql_fetch_assoc($Recordset1));
$linha_atual++;
}//FECHA FOR(REGISTROS - i)
}//FECHA FOR(PAGINAS - x)
}

desde que coloquei o WHILE é que dá ERRO

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.