php-windows Digest 19 Nov 2004 11:37:14 -0000 Issue 2474
Topics (messages 24997 through 24999):
Re: Redirecting A Webpage
24997 by: Allen D. Tate
PHP, Classes, and PEAR
24998 by: MikeA
Re: How to check if a *string* has only numbers...
24999 by: user.domain.invalid
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Thanks to all who responded. I am very grateful.
-----
Allen D. Tate, Founder
Linux in Libraries
http://www.linuxinlibraries.com/
--- End Message ---
--- Begin Message ---
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 email is never sent.
I also found a Mail class that extends Mail as a PEAR (extends) class. I
tried that but could not get it to work either. It keep saying that it
could not find the class.
Fatal error: Cannot instantiate non-existent class: mail_mail
I did the PEAR_ENV.reg so it is in the registry. So my questions is how do
I get PHP to find the PEAR classes? And how do I get mail to work?
Help, as always, is greatly appreciated.
Mike
--- End Message ---
--- Begin Message ---
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 can’t
realize how to do it.
I tried is_int(), but it don’t work because the variable is a string (I used
gettype() to check it) and is_int() returns NULL…
It is to validate some data in a form. The variable I’m trying to test is
the result of this script:
$data = $_POST[‘data’]; // something like 123.456.789
$dataParts = explode($data);
//these are the variable I have to check:
$dataP1 = $dataParts[0];
$dataP2 = $dataParts[1];
$dataP3 = $dataParts[3];
gettype($dataP1), gettype($dataP2) and gettype($dataP3) return string
gettype($dataParts) returns array
Thanks in advance.
Rafael Soares - AgênciaM
Fone: +55 11 4616-1394
--- End Message ---