Re: Image Width Error

From: Date: Tue, 24 Aug 2004 18:36:02 +0000
Subject: Re: Image Width Error
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-194622@lists.php.net to get a copy of this message
Apologies. I need to be using getimagesize(). I thought it was only for file sizes. "Torsten Roehr" <roehr@zilleon.com> wrote in message news:20040824180735.16324.qmail@pb1.pair.com... > "Jed R. Brubaker" <jrb21398@hotmail.com> wrote in message > news:20040824175817.74205.qmail@pb1.pair.com... > > Hi all! > > > > I am trying to do something really simple, but my error is outside of my > > expertise (hopefully not for long!). > > > > Code: > > ------------------------------------------------- > > $this->lVertical = "images/box/".$template."_lVertical.gif"; > > $borderWidth = imagesx($this->lVertical); > > ------------------------------------------------- > > Error: > > ------------------------------------------------- > > Fatal error: Call to undefined function imagesx() in > > c:\web\www\php\classes\Box.class on line 65 > > ----------------------------------------------------------- > > > > Am I missing something in the PHP config? What should I be looking for. > Oh! > > I am on PHP5.0 - that should help. > > > > Thanks in advance! > > Read the manual: > http://de.php.net/manual/en/function.imagesx.php > > You need an image resource to get the file size. > > Regards, Torsten Roehr

« previous php.general (#194622) next »