First off I'm getting this error:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/eleme6/public_html/scgi-bin/text_to_image_inc.php on line 19
Line 19 is: private $text_color = 'black'; just after class statement. Help!
<?php
/**
* This class converts any string into a image (gif / jpg/ png) on the fly.
*
* @author Rochak Chauhan
*
* @version 2: Added new features to display and/or save created image.
*
* Dependency - GD Library Needed
*/
require_once("websafecolors_inc.php");
class ConvertTextToImage extends WebSafeColors {
private $text_color = 'black';
private $image;
private $width;
private $height;
/**
* Function to Initialise the image
*
* @param $width int - required width of the image
* @param $height int - required height of the image
* @param $bgColor string - Color (in hexadecimal / RGB / Color Name)
* @param $textColor string - Color (in hexadecimal / RGB / Color Name)
*
*/
public function initializeImage($width, $height, $bgColor, $textColor) {
if($width <= 0 || $height <= 0 || !is_numeric($width) || !is_numeric($height) ) {
2nd
I been looking for some place to help me understand that error message. To me it says ' something broke on line 19'
after a long search I did find an explanation that only a compiler could understand. Is there a place the breaks the error messages down to simpler terms?
thanks kc