Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

Re: FN-FORUM: Emailing from PHP

date posted 16th June 2003 14:37

Thanks - I will try empty() - stange though - I had googled on is_empty()
and it found. You mustn't be the only one who gets it wrong.

Pam

it
----- Original Message -----
From: "Nick Grimshaw" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Monday, June 16, 2003 9:29 AM
Subject: RE: FN-FORUM: Emailing from PHP


> Pam:
> > Nick said to use !is_empty($Maximum) instead of $Maximum !== "" but I
am
> > now getting :
> >
> > Fatal error: Call to undefined function: is_empty() in
> > c:\apache\htdocs\phptest\success.php on line 16
>
>
> I blame PHP's inconsistent naming. The function is actually 'empty()'.
>
> > I see that Mail is a Boolean - where is the error message stored if it
> > fails?
>
> Like someone said, the actual *sending* of the mail is nothing to do with
> PHP. All PHP can see if whether the program that it submitted to returned
a
> 'success' code (which probably just means that the headers were sensible).
>
> The best you can probably do is:
> if (!mail(...))
> exit("Argh! Couldn't send the mail.");
>
> - Nick Grimshaw
> { if you're not part of the solution, you're part of the precipitate. }
>
>
> ==========
> Graduate & Professional Financial Services - Specialists in MORTGAGES for
> FREELANCERS. House purchase, re-mortgage (including debt consolidation and
> capital raising), Buy to Let, flexible offset and current account
mortgages.
> Visit our website at http://www.gradprof.co.uk?fnet
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>



Messages by Day
June 30th 2003
June 29th 2003
June 28th 2003
June 27th 2003
June 26th 2003
June 25th 2003
June 24th 2003
June 23rd 2003
June 22nd 2003
June 21st 2003
June 20th 2003
June 19th 2003
June 18th 2003
June 17th 2003
June 16th 2003
June 15th 2003
June 14th 2003
June 13th 2003
June 12th 2003
June 11th 2003
June 10th 2003
June 9th 2003
June 8th 2003
June 7th 2003
June 6th 2003
June 5th 2003
June 4th 2003
June 3rd 2003
June 2nd 2003
June 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2009
2008
2007
2006
2005
2004
2003
2002
2001
2000