Re: ctype_digit
| From: | Ryan A | Date: | Thu, 15 May 2003 20:12:16 +0000 |
| Subject: | Re: ctype_digit | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147784@lists.php.net to get a copy of this message | ||
Crap, i cant do that coz i am hosting on a virtual server and i am pretty
sure they dont have php 4.3.1 either.
:-(
I guess i will have to go with is_int()
Cheers,
-Ryan
> Hi,
>
> You'll need to compile PHP with the ctype functions enabled. I don't know
> how to do this personally, I run 4.3.1 and it was automatic, check
> www.php.net.
>
> -Dan Joseph
>
> > -----Original Message-----
> > From: Ryan A [mailto:ryan@jumac.com]
> > Sent: Thursday, May 15, 2003 4:04 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] ctype_digit
> >
> >
> > Hi all,
> > this:
> > if (!ctype_digit($price))
> > {echo 'Error:<b>Price</b> can contain numbers only. Please go
> > back and make
> > the necessary changes';
> > exit;
> > }
> >
> >
> >
> > is throwing me an error
> >
> > "Call to undefined function: ctype_digit() in
> > c:\phpdev\www......on line 24"
> >
> > any idea why?
> >
> > Cheers,
> > -Ryan
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>