Login   Register  
PHP Classes
elePHPant
Icontem

Convex3D

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Convex 3D  >  All threads  >  Convex3D  >  (Un) Subscribe thread alerts  
Subject:Convex3D
Summary:Code returns errors - how to fix?
Messages:1
Author:liberty mcgeo
Date:2011-01-16 05:49:11
 

  1. Convex3D   Reply  
Picture of liberty mcgeo
liberty mcgeo
2011-01-16 05:49:11
I have installed the code on my webserver by uploading the files to a sub-directory titled 3dphp.

When I navigate to the view.php page in Firefox 3.6.9, I get the following message -

The image "mysite/3dphp/view.php" cannot be displayed, because it contains errors.

In Explorer 8 I get this message -

Warning: Division by zero in "mysite/3dphp/Convex3D.class.php" on line 94

The code from Convex3D.class.php line 94 reads as follows:

$this->_011 = (double)$this->_003 / sqrt($this->_000);

How can I fix this?