PDF='MAIN' { ATTRIBUTES='*' { PLATFORM='php.txt'; REPTYPE='1'; ATTACHED='0'; PROJECT='36'; OBJECTNAME='resize.php'; LIBLOBJ='*FILES'; TITLE='resize'; WEBPATH='http://esdi.excelsystems.com/wsexmpphp/'; TARGETPATH='/www/zendcore/htdocs/examples'; FTPSITE='ESDI520'; SET='149'; VERSION='4.00'; CRTBNUM='Revision 3270'; CRTTEMPLT='C:\\Program Files\\ESDI\\WebSmart\\Temp\\PHP-A Simple Page.tpl'; SAVBNUM='Revision 3270'; REPSYSTEM='ESDI520'; LASTLOC='1'; VHTML='N'; LASTSAVE='7/8/2008 17:11:33'; } FTPREFINFO='*' { URL='192.168.0.100'; INITIALDIR='/www/websmart/htdocs/wsphp/'; FTPPORT='21'; PASSIVEMODE='0'; WEBPATH='http://esdi.excelsystems.com/webtest/'; } PANELS='*' { PANEL='MainSeg' { DESC='Main Segment'; DETAILS='
|
Description: Example description.
Enter Contents Here
";
?>
6.b.)So it looks like:     function generic()     {     foreach($GLOBALS as $arraykey => $arrayvalue)     {       if ($arraykey[0]!=\'_\' && $arraykey != \'GLOBALS\')         global $$arraykey;     }             $maxwidth=300;     if (file_exists($a)){       $arr1 = getimagesize("http://esdi.excelsystems.com/websmart/Images/cloverquery50.gif");       $width=$arr1[0];       $height=$arr1[1];         if($width > $maxwidth || $width ==0){        $height = ($maxwidth/$width)*$height;        $width = $maxwidth;           }         $a= "http://esdi.excelsystems.com/websmart/Images/cloverquery160x600.gif";     }             else{         $a = "http://esdi.excelsystems.com/websmart/Images/cloverquery160x600.gif";     $arr1 = getimagesize("http://esdi.excelsystems.com/websmart/Images/cloverquery160x600.gif");     $width = $arr1[0];     $height = $arr1[1];     if ($width > $maxwidth || $width == 0) {     $height = ($maxwidth/$width)*$height;     $width = $maxwidth;     }     $a = "/websmart/Images/cloverquery160x600.gif";     }         wrtseg(\'MainSeg\');     }     Program Definition: resize.php Rate This Example
|