PHP Classes
elePHPant
Icontem

Use of undefined constant ERR00 - assumed 'ERR00'

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  Use of undefined constant ERR00 -...  >  (Un) Subscribe thread alerts  
Subject:Use of undefined constant ERR00 -...
Summary:Error Decoder
Messages:5
Author:Nicholas
Date:2011-05-15 18:49:54
Update:2013-06-07 14:47:11
 

  1. Use of undefined constant ERR00 -...   Reply   Report abuse  
Nicholas - 2011-05-15 18:49:54
I am having a problem with the encoder

It gives me this error
Use of undefined constant ERR00 - assumed 'ERR00'

i have check the files, they all exist and they are pointing to the right path.

I even tested each file one by one on the web browser URL.

I have also change the folder and all its files to 0777 access rights.

I have even tried BIN mode checked around this forum. It also gave me the same error message.

$frames = array("xxx/xxx/xxx/frames/images01.gif","http://xxx/xxx/xxx/frames/images02.gif");
$framed = array(5,5);
$encode = new GIFEncoder($frames, $framed, 0, 2, 0, 0, 0, "url");
Header('Content-type:image/gif');
echo $encode->GetAnimation();

  2. Re: Use of undefined constant ERR00 -...   Reply   Report abuse  
Nicholas - 2011-05-16 00:18:27 - In reply to message 1 from Nicholas
Any help?

  3. Re: Use of undefined constant ERR00 -...   Reply   Report abuse  
Nicholas - 2011-05-19 17:00:17 - In reply to message 2 from Nicholas
Solved the issue,

Class file has bug

Replace it with this

var $ERR = Array(
'ERR00' => "Does not supported function for only one image!",
'ERR01' => "Source is not a GIF image!",
'ERR02' => "Unintelligible flag ",
'ERR03' => "Does not make animation from animated GIF source",
);

Find the ' '

  4. Re: Use of undefined constant ERR00 -...   Reply   Report abuse  
omar acone - 2011-10-27 12:50:16 - In reply to message 3 from Nicholas
great man! u save me a lot of time and frustrations...

;) many many thanks to fanaticX!

  5. Re: Use of undefined constant ERR00 -...   Reply   Report abuse  
madinath - 2013-06-07 14:47:12 - In reply to message 3 from Nicholas
many thanks