How about:
preg_match_all ('/([a-zA-Z0-9]+)/', $subject, $matches);
HTH,
Jason k Larson
Justin French wrote:
Unfortunately, I'm no good with regexp's, so you'll have to hope someone who
IS reads your post :)
Justin French
on 12/03/03 5:14 AM, Kenn Murrah ([EMAIL PROTECTED]) wrote:
Greetings.
Required: Help for checking for a valid email string.
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
+64 (9) 576 9491
+64 021-048-3999
--
Friends are like stars
You can't allways see them,
but they are always there.
--
Websites:
PhilipNZ.com - Design.
http://www.philipnz.com
you mean something like this?
//checking if the email is valid
if
(eregi("^[0-9a-z]([-_.]?[0-9a-z])[EMAIL PROTECTED]([-.]?[0-9a-z])*\\.[a-z]{2,3}$",
$email, $check))
{
if ( !getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) )
$mensaje="server not valid";
// checki
> On Wed, 12 Mar 2003, Philip J. Newman wrote:
>
> > Required: Help for checking for a valid email string.
On Tue, Mar 11, 2003 at 08:19:36PM -0500, David E.S.V. wrote:
>
> you mean something like this?
>
> //checking if the email is valid
>
> if (eregi("^[0-9a-z]([-_.]?[0-9a-z])[EMAIL
> PROT
how ever i don't think most ISPs let users pick names with the + sign in it
- Original Message -
From: "Paul Chvostek" <[EMAIL PROTECTED]>
To: "David E.S.V." <[EMAIL PROTECTED]>
Cc: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 2:37 PM
Subject:
You have used the ' in sted of the " i assume that there is no difference?
- Original Message -
From: "Paul Chvostek" <[EMAIL PROTECTED]>
To: "David E.S.V." <[EMAIL PROTECTED]>
Cc: "Philip J. Newman" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 2:37 PM
Subject:
Is there anyway you can email a certain email a user enters, see if it
bounces back, and if it does, tell the user to enter a valid username? I've
always wanted to do this but I'm not sure how to see if it bounces back.
Thanks,
Stephen Craton
http://www.melchior.us
--
PHP General Mailing List (
Hello all
how do we replace this out of an array element
"~nl~" with " "
Thank you
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The only way to do that would be to open a connection to the SMTP server
directly and try and send the email. (Instead of using the mail function)
This way the mail server would give you an error code if it didn't work.
=C=
* Cal Evans
* Stay Plugged Into Your Audience
* http://www.christianperfo
OK
This function is supported in PHP 4.2.0 or higher.
mb_ereg_replace() scans string for matches to pattern, then replaces the
matched text with replacement and returns the result string or FALSE on
error.
ok gotta try that now quick
--
PHP General Mailing List (http://www.php.net/)
To uns
On Wed, 12 Mar 2003 14:42:04 +1300, Philip J. Newman
<[EMAIL PROTECTED]> wrote:
how ever i don't think most ISPs let users pick names with the + sign in
it
- Original Message -
From: "Paul Chvostek" <[EMAIL PROTECTED]>
To: "David E.S.V." <[EMAIL PROTECTED]>
Cc: "Philip J. Newman" <[EMAI
on 12/03/03 12:42 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote:
> how ever i don't think most ISPs let users pick names with the + sign in it
Doesn't matter... if it's a valid format of email address, then it should be
validated as legit.
I use this:
http://www.killersoft.com/downloads/pafiled
web master engineer:
recently I encounter a problem as follow ,I want
to ask you
My system is windows xp sp1, now I set up Apache
server V1.3.27 as localhost server and download
PHP4.3,I have configured PHP as SAPI Module.it can
work correctly as common php file which example for
,it sh
Hi,
Tuesday, March 11, 2003, 8:31:47 PM, you wrote:
c> Hi, this is kind of a complex question, Im making a message board, now I
c> dont want list, lets say, all 25 messages on the same page. I would like
c> to have <- previous 1 2 3 next -> type of links and only list 5 messages
c> per page and
Hi All,
I'm moving the webserver to a new box (RH7.2 to RH Adv. Server 2.1) and
upgrading all my out of date stuff at the same time. It seems that the
PHP snmp functions I was using on the old box return different info on
the new box.
Example snmpget($server, "public", ".1.3.6.1.2.1.25.2.3.1.5.1"
The original question was regarding email addresses, not usernames.
If an ISP has a policy of requiring each left-hand-side of an email
address to be a username, that ISP has a serious problem.
On Wed, Mar 12, 2003 at 02:42:04PM +1300, Philip J. Newman wrote:
>
> how ever i don't think most ISP
Hello,
On 03/11/2003 11:04 PM, Stephen wrote:
Is there anyway you can email a certain email a user enters, see if it
bounces back, and if it does, tell the user to enter a valid username? I've
always wanted to do this but I'm not sure how to see if it bounces back.
You may want to try this class t
Sure. Could you paste your html codes & php codes here? I believe there are
a lot of nice guys are willing to help you. BTW, nice to meet you and hope
i could help you someway. I'm chinese too.
Larry
--
Is there something available that acts as both a
message board and mailing list where:
- users can interact via email online (mailing list)
with all message being stored in message board format
for web browsing
- users can reply and create new discussions via the
web message board which also send
> how do we replace this out of an array element
>
> "~nl~" with " "
How about str_replace()? Or are you talking about replacing that value
in each and every element in the array? If so, use array_walk() or loop
through the array and use str_replace().
---John W. Holmes...
PHP Architect - A
I am working on some logic where users are categorized based on the results
from a few questions. So far everything is working properly, but I would
like to be able to assign multiple categories to each user. Any ideas on
how to accomplish this?
I am assuming that an array would be in order, but
I'm having trouble with the ldap_add function in my script. There are 4
possible classes in the ldap schema that would be used - organization,
person, qmailUser, inetOrgPerson. The ldap_add script will every time
return
LDAP-Errno: 65
LDAP-Error: Object class violation
UNLESS I include data for
Is there a way not to round the number but get a whole number? I don't
want to have 1.5 days show as 2 days because it really has not gone into day
2?
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 8:27 PM
To: Ben C.; [EMAIL PROTECTED]
Subje
READ THE F***ING MANUAL!!!
http://php.net/round clearly shows you how to round to a whole number.
if you want to round ALL decimals up, then you might have to create
something from scratch, but
a) you need to read the relevant pages in the manual first
b) think about exactly what you want, then
on 12/03/03 4:35 PM, Justin French ([EMAIL PROTECTED]) wrote:
> if you want to round ALL decimals up, then you might have to create
> something from scratch, but
Actually, there's a link to both ceil() and floor() on the round() page in
the manual.
Justin
--
PHP General Mailing List (http://w
Hi,
Would like to know whether is there any possibilities to encrypt or compile the
PHP scripts so that it is not human-readable? Thanks!
http://zend.com/store/products/zend-encoder.php
http://www.ioncube.com/
Davis Tan wrote:
Hi,
Would like to know whether is there any possibilities to encrypt or compile the PHP scripts so that it is not human-readable? Thanks!
--
The above message is encrypted with double rot13 encoding. A
if anyone is interested in knowing how to do this, use a binary called
mplayer
/usr/local/etc/mplayer/bin/mplayer -vo jpeg -ss 00:00:05 -frame
s 1 test.mpg
it will export a jpeg still of the frame, u then can use either imagemagick
or gd to resize and optimise for a video sample , excellent for c
On March 11, 2003 09:35 pm, Justin French wrote:
> READ THE F***ING MANUAL!!!
>
> http://php.net/round clearly shows you how to round to a whole
> number.
>
> if you want to round ALL decimals up, then you might have to create
> something from scratch, but
ceiling and floor functions are part of n
Hey guys
Im trying to have a form submit a body or article into a
Table called articles for people to post there stories or what not.
So far what I have written is not working and im not able to view
My errors for some reson,
Could some take a look at the three links below, thanks Karl
My code:
Hey thanks everyone, I pretty much got it working now.
Conbud wrote:
Hi, this is kind of a complex question, Im making a message board, now I
dont want list, lets say, all 25 messages on the same page. I would like
to have <- previous 1 2 3 next -> type of links and only list 5 messages
per pag
$1,000 for an encrypter.. hehe.
I'm sure you'll pass, huh? ;)
I was thinking about doing the same, can't trust webhost nowadays with
access to your scripts :P
Although, I wouldn't mind seeing a cheaper method of encrypting php.
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED
No problem. I love the function myself :)
warm regards,
- Sebastian
- Original Message -
From: "Liam Gibbs" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 11, 2003 4:24 PM
Subject: Re: [PHP] Adding dates
| > http://www.php.net/manual/en/function.strtotime.ph
On Wednesday 12 March 2003 08:06, Anthony Ritter wrote:
[snip]
> However, I cannot add a line of copy below the photo like:
> print ("It is ");
> print (date("l F j, Y"));
> ?>
>
> Only the photo shows up and not the text.
Your script has already sent out an image header and thus the request is
I want to be able to thread objects .I'm not really sure at all where to start.
I have an example php script
sleepFor(10);
$b->sleepFor(5);
$c->sleepFor(1);
class sleeper {
function sleepFor($num) {
sleep($num);
echo "sorry I was a sleep for $num \r\n";
}
}
?>
I want so object $c would
some obvious errors:
$submiited on =date(1y-m-d'); // typo on submittedon and the date
format seems off, maybe you're looking for date('y-m-d') .
$query="insert into articles"
(date,submitted,status,title,lead,body,submitted by)
// if the field name is submitted by then you nee
101 - 136 of 136 matches
Mail list logo