[PHP-WIN] Re: How to check if a *string* has only numbers...

2004-11-19 Thread user
Hi, Have you tried regular expressions ? try them, they might do the trick Rui Francisco Rafael Soares wrote: Hello people!!! I would like to check if a string contains only numbers, I really cant realize how to do it. I tried is_int(), but it dont work because the variable is a string (I

Re: [PHP-WIN] Re: How to check if a *string* has only numbers...

2004-11-19 Thread Luis Moreira
Better yet, use the right function :-) This script ?php $a = 1234567890; $b = $a.$a; $c = $a.A; echo $a ; if (!is_numeric($a)) echo NOT ; echo numericbr; echo $b ; if (!is_numeric($b)) echo NOT ; echo numericbr; echo $c ; if (!is_numeric($c))

[PHP-WIN] GD Image Resizing on the fly.

2004-11-19 Thread Tony Devlin
Hello Everyone, I am looking for a script or guidance in where to look to figure out how to create a php script that resizes an image on the fly when it is called with some variables. To further detail, I have a shopping cart I am creating for a client -- the client has the ability to upload

RE: [PHP-WIN] GD Image Resizing on the fly.

2004-11-19 Thread Mike
This following bit of code will create a thumbnail of size $thumb_width x $thumb_height based off of the initial file $file_location. Current GD libraries don't work on GIFs, so that's not an option. You can use the relative PNG functions in place of the jpeg functions, however. // Create New

Re: [PHP-WIN] GD Image Resizing on the fly.

2004-11-19 Thread denis
hi this the script i use in www.biere.org you can see it in action at http://www.monsieur-biere.com/liste/secondairelmc.php3?type=typetype2=BIERE+DE+NOELpage=1 i use the same script in rhe shopping cart and in the order form it test if the file exist and resize it at predefined size or peoduce

[PHP-WIN] Re: PHP, Classes, and PEAR

2004-11-19 Thread Manuel Lemos
Hello, On 11/19/2004 01:31 AM, Mikea wrote: WinXP Pro SP1 PHP 4.3.9 I am still learning PHP so please be gentle with me! LOL I am trying to send mail from my PC. For some reason it is not working. The line is mail($email_to, $email_subject, $email_message); There is no error or failure but the

Re: [PHP-WIN] PHP, Classes, and PEAR

2004-11-19 Thread phpWalter
WinXP Pro SP1 PHP 4.3.9 I am still learning PHP so please be gentle with me! LOL I am trying to send mail from my PC. For some reason it is not working. I have working code. I'll dig it up and sent it to you. So my questions is how do I get PHP to find the PEAR classes? You have to

[PHP-WIN] Re: GD Image Resizing on the fly.

2004-11-19 Thread Jed Smith
Tony Devlin wrote: Hello Everyone, I am looking for a script or guidance in where to look to figure out how to create a php script that resizes an image on the fly when it is called(...) Image resizing takes a lot of cycles. As opposed to generating a thumbnail every time a visitor comes to