RE: [PHP] PHP and SAP Business One DI Server

2007-11-19 Thread Andrés Robinet
I can only speak for my experience in PHP+SOAP in a recent project, but not
on SAP. You'll surely get more information here as the experts will start
speaking... If this is of any help to you, then PERFECT! If not, well, hope
not to bother you with well-known stuff at least.

The project I'm involved with uses web services to fetch vehicle data from
Chrome (http://www.chrome.com). We are using NuSoap, because we found no
other options for PHP 4 (PHP 5 has a native Soap Extension, but I can only
tell you that I've READ NuSoap has more features, I didn't even test it).

You can download NuSoap here (pick the last version, the previous ones had a
name clash problem with PHP 5).
http://sourceforge.net/project/showfiles.php?group_id=57663

As for how to use it... well... RTFM. I don't have a clue of how the SAP
part works (I know "very generally" what SAP is... I never faced a PHP
integration with it). But I can give you some sample code for the PHP part,
obviously, the last word is that of SAP's technical specifications.

/* First Create a WSDL Object and save it in the cache */
$wsdlURL = "https://where/is/my/service?WSDL";;
$cacheDir = "/path/to/writable/dir";
$timeToLive = 86400; // Only one day, but wsdl's don't change that often,
you can increase it much more
$wsdlCache = new wsdlcache($cacheDir, $timeToLive);
$wsdl = $wsdlCache->get($wsdlURL);
if ($wsdl == null):
$wsdl = new wsdl($wsdlURL);
$wsdlCache->put($this->wsdl);
endif;
// After this line you have a wsdl object that was either created or
retrieved from the cache

/* Get the client and the proxy */
$client = new nusoap_client($wsdl, true);
$proxy = $client->getProxy();

/* Now call SAP web service functions as documented in the tech spec */
$param1 = 'my param 1';
$param2 = array('whatever', 'is', 2, 'be');
// Call one of SAP functions
$result = $proxy->myFunctionAsReadFromSAPTechSpec($param1, $param2);

/* Now check for error codes in the result, store them in a db, whatever you
need */
If ($result['WhoKnows'] == 'Checking is your job'):
echo "Good Job!";
else:
echo "RTFM AGAIN!!!";
endif;

> -Original Message-
> From: Robert Cummings [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 20, 2007 4:11 AM
> To: php-general@lists.php.net
> Subject: [PHP] PHP and SAP Business One DI Server
> 
> Anyone have any experience with this? Searching the web doesn't popup
> much useful information with respect to using PHP. It seems that it
> should be simple enough using PHP and SOAP, but the lack of information
> on the web is unsettling :) So on that note, any information will be
> appreciated.
> 
> Cheers,
> Rob.
> --
> ...
> SwarmBuy.com - http://www.swarmbuy.com
> 
> Leveraging the buying power of the masses!
> ...
> 
> --
> 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



[PHP] php header refresh

2007-11-19 Thread kNish
Hi,

Find attached a page image. Initially, when user goes to the link,
without this code the page shows not needed display. Whereas what is
needed is when I press the button go. So, I included that in the if
condition. However, it is not working as needed. How is it possible to
see it working and be happy and make others happy here.

$currentPage = $_SERVER["PHP_SELF"];

if (!isset($_GET['Submit']))
{
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$pagename = 
'search_Disp_03.php?Proj_Name=Any&Sequ_Name=Any&Shot_Name=Any&Artist_Name=Any&Dept_Name=Any&Name_Of_Project=Go';
# header("location:
http://renderunit-19/dailies/search_Disp_03.php?Proj_Name=Any&Sequ_Name=Any&Shot_Name=Any&Artist_Name=Any&Dept_Name=Any&Name_Of_Project=Go";);
header("location: http://$host$uri/$pagename/";);
exit;
}

BRgds,

kNish

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] two small issues with php mail

2007-11-19 Thread Jim Lucas

Brad wrote:

It makes sense, but the Bcc is still not making it through.

Not sure if the smtp portion is correct either.
No parse errors, but no email from the bcc either.



I told you this earlier!!!

NOTICE: you are trying to use $eol here


$headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;


but you don't define it until HERE.


$headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";


MOVE IT TO THE TOP OF YOUR SCRIPT!!!

secondly, this would have been averted if you would turn on error 
reporting and display errors (something that should be used when 
developing).


Something along the line of this at the top of your script will do the 
trick.




--
Jim Lucas


"Perseverance is not a long race;
it is many short races one after the other"

Walter Elliot



"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and SAP Business One DI Server

2007-11-19 Thread Robert Cummings
Anyone have any experience with this? Searching the web doesn't popup
much useful information with respect to using PHP. It seems that it
should be simple enough using PHP and SOAP, but the lack of information
on the web is unsettling :) So on that note, any information will be
appreciated.

Cheers,
Rob.
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread Casey
The reason I am using "\r\n" is because the PHP Manual says so
(http://us2.php.net/manual/en/function.mail.php#id367).

I use implode because it is easier [in my opinion], but you will
achieve the same result with:
"From: [EMAIL PROTECTED]: [EMAIL PROTECTED]";

On Nov 19, 2007 7:22 PM, Brad <[EMAIL PROTECTED]> wrote:
> Sir, you are very kind, but your implementation of "array" has me as the
> "monkey with a light bulb"
> I know BASIC (the language) at a minimal.
> Basic functionality I know;
> Your implementation of core knowledge programming to php quarks is blowing
> my mind when looking at my existing problem.
>
> #1
> You build your array with;
> = array(
> 'Function 1',
> 'function 2',
> //...
> );
>
> ?
> //...
> );
> ??
>
> Skip the ... and end with "):"
>
> Php has enough goof ball stuff, with it's mail function.
>
> Your suggestion is kind but you are shooting over my head...
>   $headers = implode("\r\n", $headers);
>
> Implode
> Hmmm = build array here but, the usage of "\r\n" is already confusing me.
> The manual says to use it for Bcc
> Parse error says otherwise when not in you array.
> Why?
>
> Else "blame casey"
>
> Never, you are trying to help!
>
> Brad
>
>
>
>
> -Original Message-
> From: Casey [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 9:48 PM
> To: Brad
>
> Cc: Andrés Robinet; 
> Subject: Re: [PHP] two small issues with php mail
>
> Note this code is untested and directly typed from a phone.
>
>$to = '[EMAIL PROTECTED]';
>   $subject = 'Free iPod!';
>   $message = 'Even though I will be filtered, get your FREE iPod at
> http://www.obviouslyascam.com
> !';
>   $headers = array(
>'From: [EMAIL PROTECTED]',
>'Bbc: [EMAIL PROTECTED]',
>// ...
>   );
>   $headers = implode("\r\n", $headers);
>   if (mail($to, $subject, $message, $headers))
>echo 'Success!';
>   else blameCasey();
> ?>
>
> Note: you might need to change some code before you use it (in an
> attempt to stop you from ripping off my code).
>
>
>
> On Nov 19, 2007, at 6:26 PM, "Brad" <[EMAIL PROTECTED]> wrote:
>
> > For the purposes of this task, mailer is not an option.
> > This is a class assignment to put us into the weeds.
> > I am neck deep googling the heck out of this and finding snippets of
> > un-related code which do not fit.
> >
> > Just seek help from a knowledgeable community to help me past the
> > learning
> > curve.
> >
> > And getting hit hard from hecklers in the process.
> >
> > I am not having a good day with php!
> >
> > I took this class because of it's Linux and Unix origin...
> >
> > I am not having a good day!
> >
> > -Original Message-
> > From: Andrés Robinet [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 19, 2007 8:49 PM
> > To: 'Brad'
> > Cc: php-general@lists.php.net
> > Subject: RE: [PHP] two small issues with php mail
> >
> > Did I miss something or the following line in your code is useless?
> >
> >> $smtp = "localhost";
> >
> > Brad, if you really need SMTP configuration, and you want to make
> > your life
> > easier with attachments and extra headers, give a chance to PHPMailer
> > http://phpmailer.codeworxtech.com/. It's free, easy to set up and
> > use, and
> > can do much more than you need.
> >
> > Rob
> >
> > Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
> > 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale,
> > FL 33308
> > | TEL 954-607-4207 | FAX 954-337-2695 |
> > Email: [EMAIL PROTECTED]  | MSN Chat: [EMAIL PROTECTED]  |  SKYPE:
> > bestplace |  Web: bestplace.biz  | Web: seo-diy.com
> > Confidentiality:
> > "All information in this email message, including images, attachments,
> > contains confidential and proprietary information of BESTPLACE
> > CORPORATION
> > and should only be used or serves for the intended purpose and
> > should not be
> > copied, used or disclosed to anyone other than the sole recipient of
> > this
> > e-mail message."
> >
> >> -Original Message-
> >> From: Brad [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, November 19, 2007 10:27 PM
> >> To: php-general@lists.php.net
> >> Subject: FW: [PHP] two small issues with php mail
> >>
> >>
> >>
> >>
> >>
> >>   _
> >>
> >> From: Brad [mailto:[EMAIL PROTECTED]
> >> Sent: Monday, November 19, 2007 8:26 PM
> >> To: 'David Giragosian'
> >> Subject: RE: [PHP] two small issues with php mail
> >>
> >>
> >>
> >> My original issue is trying to implement a Bcc and
> >>
> >>
> >>
> >> Emails are only making it to 50% of the recipients.
> >>
> >> Research and past experience says that I need to implement smtp
> >> into my
> >> code.
> >>
> >>
> >>
> >> Testing of the present "parse free" code show that email
> >> addresses on
> >> the
> >> same server: To: works Bcc: does not
> >>
> >>
> >>
> >> Once Bcc: works on same server, I will need to test Bcc on another
> >> server
> >> which I am sure requires the proper smtp configuration.
> >>
> >>
> >>
> >> Working code:
> >>
> >>
> >>
> >>  >>
> >> $email = $_REQUEST['email'];

RE: [PHP] two small issues with php mail

2007-11-19 Thread Andrés Robinet
Brad,

This comment is extracted directly from PHPMailer source (before the
implementation for the function AddBCC)

  /**
   * Adds a "Bcc" address. Note: this function works
   * with the SMTP mailer on win32, not with the "mail"
   * mailer.
   * @param string $address
   * @param string $name
   * @return void
   */

I don't really know the internals of how and why Bcc won't work with the
mail function on windows, but if these guys who developed PHPMailer say
so... "Holy Word", so I wouldn't expect the mail function on Windows to work
with Bcc.
What you can do? Well... if Bcc is a requirement and you MUST do the code
for "Windows+PHP" you'll have to write you own code to login to a SMTP
server or use PHPMailer... (or any other ready made solution).
If this is an assignment I really doubt your teacher's expectations are so
high to let you go and develop such a thing (a class to interface a SMTP
server). If you are testing the code in your Windows PC, I would recommend
you testing your code in a real-world linux server, if that's an option for
you. Other options include testing it on a linux box (if you have one, or
you have a Windows-Linux dual boot as many people have) or even downloading
the "VMWare Player" (http://www.vmware.com/) and one of the linux appliances
that come with the LAMP suite from the start (if you don't have linux, or
want to run linux while working in windows applications such as
Dreamweaver).

That said, don't blame PHP, don't blame us, and don't even blame your code,
Bcc is not working due to an issue of the mail function in Windows (don't
know why, I'm not an expert in the subject, and don't care either, I use
PHPMailer).

If you get the issue solved, we would also like to hear it.

Rob

> -Original Message-
> From: Brad [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 11:49 PM
> To: php-general@lists.php.net
> Subject: FW: [PHP] two small issues with php mail
> 
> 
> 
> -Original Message-
> From: Brad [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 9:48 PM
> To: 'Chris'
> Subject: RE: [PHP] two small issues with php mail
> 
> Sir, I am trying...
> 
> It just is not working...
> 
> I am trying to implement the auth info, I go from parse error to no
> response
> from the server.
> 
> I am reading your material and batting ZERO!
> 
> I will keep on reading and somehow figure it out.
> You have been kind.
> 
> I have the admin of this list now being a jerk!
> 
> Brad
> 
> -Original Message-
> From: Chris [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 9:39 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
> > For the purposes of this task, mailer is not an option.
> > This is a class assignment to put us into the weeds.
> > I am neck deep googling the heck out of this and finding snippets of
> > un-related code which do not fit.
> 
> Just because you can't use php-mailer in your project doesn't mean you
> can't use it as a reference.
> 
> Grab phpmailer and look at the process it follows to do smtp sending.
> 
> smtp authentication is a pain at the best of times but trying to do it
> the way you are now will just drive you mad (been there, done that).
> 
> Looking at a working code sample will make things a lot clearer in your
> head rather than random code from 100 different locations.
> 
> http://www.cosmonroe.org/~devin/postfix/smtp-auth.txt under "SMTP
> Authentication" will give you an idea of what you need to do but there
> is a ton more error checking and validation you need to do along the
> way.
> 
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 
> 
> --
> 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



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Sir, you are very kind, but your implementation of "array" has me as the
"monkey with a light bulb"
I know BASIC (the language) at a minimal.
Basic functionality I know;
Your implementation of core knowledge programming to php quarks is blowing
my mind when looking at my existing problem.

#1
You build your array with;
= array(
'Function 1',
'function 2',
//...
);

?
//...
);
??

Skip the ... and end with "):"

Php has enough goof ball stuff, with it's mail function.

Your suggestion is kind but you are shooting over my head...
  $headers = implode("\r\n", $headers);

Implode
Hmmm = build array here but, the usage of "\r\n" is already confusing me.
The manual says to use it for Bcc
Parse error says otherwise when not in you array.
Why?

Else "blame casey"

Never, you are trying to help!

Brad




-Original Message-
From: Casey [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 9:48 PM
To: Brad
Cc: Andrés Robinet; 
Subject: Re: [PHP] two small issues with php mail

Note this code is untested and directly typed from a phone.

http://www.obviouslyascam.com 
!';
  $headers = array(
   'From: [EMAIL PROTECTED]',
   'Bbc: [EMAIL PROTECTED]',
   // ...
  );
  $headers = implode("\r\n", $headers);
  if (mail($to, $subject, $message, $headers))
   echo 'Success!';
  else blameCasey();
?>

Note: you might need to change some code before you use it (in an  
attempt to stop you from ripping off my code).



On Nov 19, 2007, at 6:26 PM, "Brad" <[EMAIL PROTECTED]> wrote:

> For the purposes of this task, mailer is not an option.
> This is a class assignment to put us into the weeds.
> I am neck deep googling the heck out of this and finding snippets of
> un-related code which do not fit.
>
> Just seek help from a knowledgeable community to help me past the  
> learning
> curve.
>
> And getting hit hard from hecklers in the process.
>
> I am not having a good day with php!
>
> I took this class because of it's Linux and Unix origin...
>
> I am not having a good day!
>
> -Original Message-
> From: Andrés Robinet [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 8:49 PM
> To: 'Brad'
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] two small issues with php mail
>
> Did I miss something or the following line in your code is useless?
>
>> $smtp = "localhost";
>
> Brad, if you really need SMTP configuration, and you want to make  
> your life
> easier with attachments and extra headers, give a chance to PHPMailer
> http://phpmailer.codeworxtech.com/. It's free, easy to set up and  
> use, and
> can do much more than you need.
>
> Rob
>
> Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
> 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale,  
> FL 33308
> | TEL 954-607-4207 | FAX 954-337-2695 |
> Email: [EMAIL PROTECTED]  | MSN Chat: [EMAIL PROTECTED]  |  SKYPE:
> bestplace |  Web: bestplace.biz  | Web: seo-diy.com
> Confidentiality:
> "All information in this email message, including images, attachments,
> contains confidential and proprietary information of BESTPLACE  
> CORPORATION
> and should only be used or serves for the intended purpose and  
> should not be
> copied, used or disclosed to anyone other than the sole recipient of  
> this
> e-mail message."
>
>> -Original Message-
>> From: Brad [mailto:[EMAIL PROTECTED]
>> Sent: Monday, November 19, 2007 10:27 PM
>> To: php-general@lists.php.net
>> Subject: FW: [PHP] two small issues with php mail
>>
>>
>>
>>
>>
>>   _
>>
>> From: Brad [mailto:[EMAIL PROTECTED]
>> Sent: Monday, November 19, 2007 8:26 PM
>> To: 'David Giragosian'
>> Subject: RE: [PHP] two small issues with php mail
>>
>>
>>
>> My original issue is trying to implement a Bcc and
>>
>>
>>
>> Emails are only making it to 50% of the recipients.
>>
>> Research and past experience says that I need to implement smtp  
>> into my
>> code.
>>
>>
>>
>> Testing of the present “parse free” code show that email  
>> addresses on
>> the
>> same server: To: works Bcc: does not
>>
>>
>>
>> Once Bcc: works on same server, I will need to test Bcc on another
>> server
>> which I am sure requires the proper smtp configuration.
>>
>>
>>
>> Working code:
>>
>>
>>
>> >
>> $email = $_REQUEST['email'];
>>
>> $fromaddress = '[EMAIL PROTECTED]';
>>
>> $fromname = ‘g'; $eol = "\r\n";
>>
>> $smtp = "localhost";
>>
>> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>
>> $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";
>>
>> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>
>> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>
>> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
>>
>> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
>>
>> $headers .= 'Content-Transfer-Encoding: 8bit';
>>
>> $subject = 'Your free book!';
>>
>> $body = '> href="http://www..com/freePDF/ 
>> autopilotebook.pdf">"Clic
>> k
>> ME"  Here is your FREE autopilot book';
>>
>> mail($email, $s

Re: [PHP] two small issues with php mail

2007-11-19 Thread Casey

Note this code is untested and directly typed from a phone.

 $message = 'Even though I will be filtered, get your FREE iPod at http://www.obviouslyascam.com 
!';

 $headers = array(
  'From: [EMAIL PROTECTED]',
  'Bbc: [EMAIL PROTECTED]',
  // ...
 );
 $headers = implode("\r\n", $headers);

 if (mail($to, $subject, $message, $headers))
  echo 'Success!';
 else blameCasey();
?>

Note: you might need to change some code before you use it (in an  
attempt to stop you from ripping off my code).




On Nov 19, 2007, at 6:26 PM, "Brad" <[EMAIL PROTECTED]> wrote:


For the purposes of this task, mailer is not an option.
This is a class assignment to put us into the weeds.
I am neck deep googling the heck out of this and finding snippets of
un-related code which do not fit.

Just seek help from a knowledgeable community to help me past the  
learning

curve.

And getting hit hard from hecklers in the process.

I am not having a good day with php!

I took this class because of it's Linux and Unix origin...

I am not having a good day!

-Original Message-
From: Andrés Robinet [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 8:49 PM
To: 'Brad'
Cc: php-general@lists.php.net
Subject: RE: [PHP] two small issues with php mail

Did I miss something or the following line in your code is useless?


$smtp = "localhost";


Brad, if you really need SMTP configuration, and you want to make  
your life

easier with attachments and extra headers, give a chance to PHPMailer
http://phpmailer.codeworxtech.com/. It's free, easy to set up and  
use, and

can do much more than you need.

Rob

Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale,  
FL 33308

| TEL 954-607-4207 | FAX 954-337-2695 |
Email: [EMAIL PROTECTED]  | MSN Chat: [EMAIL PROTECTED]  |  SKYPE:
bestplace |  Web: bestplace.biz  | Web: seo-diy.com
Confidentiality:
"All information in this email message, including images, attachments,
contains confidential and proprietary information of BESTPLACE  
CORPORATION
and should only be used or serves for the intended purpose and  
should not be
copied, used or disclosed to anyone other than the sole recipient of  
this

e-mail message."


-Original Message-
From: Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 10:27 PM
To: php-general@lists.php.net
Subject: FW: [PHP] two small issues with php mail





  _

From: Brad [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 8:26 PM
To: 'David Giragosian'
Subject: RE: [PHP] two small issues with php mail



My original issue is trying to implement a Bcc and



Emails are only making it to 50% of the recipients.

Research and past experience says that I need to implement smtp  
into my

code.



Testing of the present “parse free” code show that email  
addresses on

the
same server: To: works Bcc: does not



Once Bcc: works on same server, I will need to test Bcc on another
server
which I am sure requires the proper smtp configuration.



Working code:



'.$eol;

$headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";

$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = 'href="http://www..com/freePDF/ 
autopilotebook.pdf">"Clic

k
ME"  Here is your FREE autopilot book';

mail($email, $subject, $body, $headers);

?>



  _

From: David Giragosian [mailto:[EMAIL PROTECTED]
Sent: Monday, November 19, 2007 7:25 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail





On 11/19/07, Philip Thompson mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote:

On Nov 19, 2007 5:52 PM, Brad mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote:


Why are you being to belligerent?
English 101-104 I have aced.
Top secret security clearance I maintain.
Concatenate I know well (why would I combine the from, and the bcc?)



I will refrain from the rest of the posts/slams and stick to your
question
in the (...).

"From" and "Bcc" are *BOTH* part of the headers - that's why you want
to
concatenate them. By not using the . (dot), you are over-writing the
"From"
line.

Bad/Pointless assignment:
$headers = "From: ...";
$headers = "Bcc: ...";

Good/Useful assignment:
$headers = "From: ...";
$headers .= "Bcc: ...";

Good luck.
~Philip



Brad,



If Philip's suggestion doesn't fix the problem, please post the
relevant
code, again.



I've lost track of your original question.



David




No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
11/18/2007
5:15 PM


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.0/1137 - 

FW: [PHP] two small issues with php mail

2007-11-19 Thread Brad


-Original Message-
From: Brad [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 9:48 PM
To: 'Chris'
Subject: RE: [PHP] two small issues with php mail

Sir, I am trying...

It just is not working...

I am trying to implement the auth info, I go from parse error to no response
from the server.

I am reading your material and batting ZERO!

I will keep on reading and somehow figure it out.
You have been kind.

I have the admin of this list now being a jerk!

Brad

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 9:39 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> For the purposes of this task, mailer is not an option.
> This is a class assignment to put us into the weeds.
> I am neck deep googling the heck out of this and finding snippets of
> un-related code which do not fit.

Just because you can't use php-mailer in your project doesn't mean you 
can't use it as a reference.

Grab phpmailer and look at the process it follows to do smtp sending.

smtp authentication is a pain at the best of times but trying to do it 
the way you are now will just drive you mad (been there, done that).

Looking at a working code sample will make things a lot clearer in your 
head rather than random code from 100 different locations.

http://www.cosmonroe.org/~devin/postfix/smtp-auth.txt under "SMTP 
Authentication" will give you an idea of what you need to do but there 
is a ton more error checking and validation you need to do along the way.

-- 
Postgresql & php tutorials
http://www.designmagick.com/

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread Chris

Brad wrote:

For the purposes of this task, mailer is not an option.
This is a class assignment to put us into the weeds.
I am neck deep googling the heck out of this and finding snippets of
un-related code which do not fit.


Just because you can't use php-mailer in your project doesn't mean you 
can't use it as a reference.


Grab phpmailer and look at the process it follows to do smtp sending.

smtp authentication is a pain at the best of times but trying to do it 
the way you are now will just drive you mad (been there, done that).


Looking at a working code sample will make things a lot clearer in your 
head rather than random code from 100 different locations.


http://www.cosmonroe.org/~devin/postfix/smtp-auth.txt under "SMTP 
Authentication" will give you an idea of what you need to do but there 
is a ton more error checking and validation you need to do along the way.


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Responses like that is encouragement to drop php and move straight to ruby!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 9:07 PM
To: Brad
Subject: RE: [PHP] two small issues with php mail

I'm sorry, but if you have to ask this question you need to get
yourself a tutor - the intent of this mailing list is not that.


  - Rick


 Original Message 
> Date: Monday, November 19, 2007 08:52:36 PM -0500
> From: Brad <[EMAIL PROTECTED]>
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] two small issues with php mail
> 
> This is a new trick for me, can you kindly explain?
> I know what you are getting at, I am just not real sure on th
> method?
> 
> Do I just replace "mail" and the end with print?
> Aka
> mail($email, $subject, $body, $headers);
> with
> print($email, $subject, $body, $headers);
> 
> ??
> 
> -Original Message-

> Sent: Monday, November 19, 2007 8:44 PM
> To: Brad
> Subject: RE: [PHP] two small issues with php mail
> 
> well, you need to do some basic debugging.
> 
> a) replace your mail() function with print statements and review the
> output to make certain that it is correct. [this will require that
> you look at appropriate documentation to see how message
> headers/body should be formatted.]
> 
> b) if "a)" looks right, then look at your mail server's logs to see
> what shows up there.
> 
>   - Rick
> 
> 
>  Original Message 
>> Date: Monday, November 19, 2007 08:19:49 PM -0500
>> From: Brad <[EMAIL PROTECTED]>
>> To: 'Philip Thompson' <[EMAIL PROTECTED]>
>> Cc: php-general@lists.php.net
>> Subject: RE: [PHP] two small issues with php mail
>> 
>> It makes sense, but the Bcc is still not making it through.
>> 
>> Not sure if the smtp portion is correct either.
>> No parse errors, but no email from the bcc either.
>> 
>> > $email = $_REQUEST['email'];
>> $fromaddress = '[EMAIL PROTECTED]';
>> $fromname = 'Zone of success Club'; $eol = "\r\n";
>> $smtp = "localhost";
>> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
>> $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";
>> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
>> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
>> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
>> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
>> $headers .= 'Content-Transfer-Encoding: 8bit';
>> $subject = 'Your free book!';
>> $body = '> href="http://www.g.com/freePDF/autopilotebook.pdf";>"Cli
>> ck ME"  Here is your FREE autopilot book';
>> mail($email, $subject, $body, $headers);
>> ?>
>> 
>> 
>> 
>> -Original Message-
>> From: Philip Thompson [mailto:[EMAIL PROTECTED] 
>> Sent: Monday, November 19, 2007 7:00 PM
>> To: php-general@lists.php.net
>> Subject: Re: [PHP] two small issues with php mail
>> 
>> On Nov 19, 2007 5:52 PM, Brad <[EMAIL PROTECTED]> wrote:
>> 
>>> Why are you being to belligerent?
>>> English 101-104 I have aced.
>>> Top secret security clearance I maintain.
>>> Concatenate I know well (why would I combine the from, and the
>>> bcc?)
>> 
>> 
>> I will refrain from the rest of the posts/slams and stick to your
>> question in the (...).
>> 
>> "From" and "Bcc" are *BOTH* part of the headers - that's why you
>> want to concatenate them. By not using the . (dot), you are
>> over-writing the "From" line.
>> 
>> Bad/Pointless assignment:
>> $headers = "From: ...";
>> $headers = "Bcc: ...";
>> 
>> Good/Useful assignment:
>> $headers = "From: ...";
>> $headers .= "Bcc: ...";
>> 
>> Good luck.
>> ~Philip
>> 
> 
> -- End Original Message --
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007 5:15 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007 5:15 PM
>  

-- End Original Message --

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



FW: [PHP] two small issues with php mail

2007-11-19 Thread Brad


-Original Message-
From: Brad [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 9:34 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] two small issues with php mail

Thought it was a support forum!
Support usually does not mean "piss off".

Brad

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 9:31 PM
To: Brad
Subject: RE: [PHP] two small issues with php mail

the php mailing list is not intended as a tutor. we have all provided
you with pointers and direction. it is for you, as the student, to
use your skills, seek out examples if necessary, and then determine
how to implement a solution.

the online php manual is really sufficient documentation. if the core
documentation provided by the php developers isn't sufficient, then
look at the included user-provided examples (realizing that they
aren't vetted, so aren't always 100% accurate). if you don't do well
with things in manual format (some people do, some don't), then you
might want to buy the o'reilly php book or something similar.

on the specifics, if you don't know how to format a print statement,
then look it up:

  

a tutor might turn the manual to the appropriate page and point to an
example, but as that's not our role so i'll let you thumb through to
the right page.



 Original Message 
> Date: Monday, November 19, 2007 09:16:13 PM -0500
> From: Brad <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] two small issues with php mail
> 
> Provide the proper documentation and that is not necessary!
> Brad
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 9:07 PM
> To: Brad
> Subject: RE: [PHP] two small issues with php mail
> 
> I'm sorry, but if you have to ask this question you need to get
> yourself a tutor - the intent of this mailing list is not that.
> 
> 
>   - Rick
> 
> 
>  Original Message 
>> Date: Monday, November 19, 2007 08:52:36 PM -0500
>> From: Brad <[EMAIL PROTECTED]>
>> Cc: php-general@lists.php.net
>> Subject: RE: [PHP] two small issues with php mail
>> 
>> This is a new trick for me, can you kindly explain?
>> I know what you are getting at, I am just not real sure on th
>> method?
>> 
>> Do I just replace "mail" and the end with print?
>> Aka
>> mail($email, $subject, $body, $headers);
>> with
>> print($email, $subject, $body, $headers);
>> 
>> ??
>> 
>> -Original Message-
> 
>> Sent: Monday, November 19, 2007 8:44 PM
>> To: Brad
>> Subject: RE: [PHP] two small issues with php mail
>> 
>> well, you need to do some basic debugging.
>> 
>> a) replace your mail() function with print statements and review
>> the output to make certain that it is correct. [this will require
>> that you look at appropriate documentation to see how message
>> headers/body should be formatted.]
>> 
>> b) if "a)" looks right, then look at your mail server's logs to see
>> what shows up there.
>> 
>>   - Rick
>> 

-- End Original Message --

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
For the purposes of this task, mailer is not an option.
This is a class assignment to put us into the weeds.
I am neck deep googling the heck out of this and finding snippets of
un-related code which do not fit.

Just seek help from a knowledgeable community to help me past the learning
curve.

And getting hit hard from hecklers in the process.

I am not having a good day with php!

I took this class because of it's Linux and Unix origin...

I am not having a good day!

-Original Message-
From: Andrés Robinet [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 8:49 PM
To: 'Brad'
Cc: php-general@lists.php.net
Subject: RE: [PHP] two small issues with php mail

Did I miss something or the following line in your code is useless?

> $smtp = "localhost";

Brad, if you really need SMTP configuration, and you want to make your life
easier with attachments and extra headers, give a chance to PHPMailer
http://phpmailer.codeworxtech.com/. It's free, easy to set up and use, and
can do much more than you need.

Rob

Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308
| TEL 954-607-4207 | FAX 954-337-2695 | 
Email: [EMAIL PROTECTED]  | MSN Chat: [EMAIL PROTECTED]  |  SKYPE:
bestplace |  Web: bestplace.biz  | Web: seo-diy.com
Confidentiality:
"All information in this email message, including images, attachments,
contains confidential and proprietary information of BESTPLACE CORPORATION
and should only be used or serves for the intended purpose and should not be
copied, used or disclosed to anyone other than the sole recipient of this
e-mail message."

> -Original Message-
> From: Brad [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 10:27 PM
> To: php-general@lists.php.net
> Subject: FW: [PHP] two small issues with php mail
> 
> 
> 
> 
> 
>_
> 
> From: Brad [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 8:26 PM
> To: 'David Giragosian'
> Subject: RE: [PHP] two small issues with php mail
> 
> 
> 
> My original issue is trying to implement a Bcc and
> 
> 
> 
> Emails are only making it to 50% of the recipients.
> 
> Research and past experience says that I need to implement smtp into my
> code.
> 
> 
> 
> Testing of the present “parse free” code show that email addresses on
> the
> same server: To: works Bcc: does not
> 
> 
> 
> Once Bcc: works on same server, I will need to test Bcc on another
> server
> which I am sure requires the proper smtp configuration.
> 
> 
> 
> Working code:
> 
> 
> 
>  
> $email = $_REQUEST['email'];
> 
> $fromaddress = '[EMAIL PROTECTED]';
> 
> $fromname = ‘g'; $eol = "\r\n";
> 
> $smtp = "localhost";
> 
> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";
> 
> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> 
> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> 
> $headers .= 'Content-Transfer-Encoding: 8bit';
> 
> $subject = 'Your free book!';
> 
> $body = ' href="http://www..com/freePDF/autopilotebook.pdf";>"Clic
> k
> ME"  Here is your FREE autopilot book';
> 
> mail($email, $subject, $body, $headers);
> 
> ?>
> 
> 
> 
>_
> 
> From: David Giragosian [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 7:25 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> 
> 
> 
> 
> On 11/19/07, Philip Thompson  "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote:
> 
> On Nov 19, 2007 5:52 PM, Brad  "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote:
> 
> > Why are you being to belligerent?
> > English 101-104 I have aced.
> > Top secret security clearance I maintain.
> > Concatenate I know well (why would I combine the from, and the bcc?)
> 
> 
> I will refrain from the rest of the posts/slams and stick to your
> question
> in the (...).
> 
> "From" and "Bcc" are *BOTH* part of the headers - that's why you want
> to
> concatenate them. By not using the . (dot), you are over-writing the
> "From"
> line.
> 
> Bad/Pointless assignment:
> $headers = "From: ...";
> $headers = "Bcc: ...";
> 
> Good/Useful assignment:
> $headers = "From: ...";
> $headers .= "Bcc: ...";
> 
> Good luck.
> ~Philip
> 
> 
> 
> Brad,
> 
> 
> 
> If Philip's suggestion doesn't fix the problem, please post the
> relevant
> code, again.
> 
> 
> 
> I've lost track of your original question.
> 
> 
> 
> David
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 
> 
> 
> No virus found in this outgoing me

RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
This is a new trick for me, can you kindly explain?
I know what you are getting at, I am just not real sure on th method?

Do I just replace "mail" and the end with print?
Aka
mail($email, $subject, $body, $headers);
with
print($email, $subject, $body, $headers);

??

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 8:44 PM
To: Brad
Subject: RE: [PHP] two small issues with php mail

well, you need to do some basic debugging.

a) replace your mail() function with print statements and review the
output to make certain that it is correct. [this will require that
you look at appropriate documentation to see how message headers/body
should be formatted.]

b) if "a)" looks right, then look at your mail server's logs to see
what shows up there.

  - Rick


 Original Message 
> Date: Monday, November 19, 2007 08:19:49 PM -0500
> From: Brad <[EMAIL PROTECTED]>
> To: 'Philip Thompson' <[EMAIL PROTECTED]>
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] two small issues with php mail
> 
> It makes sense, but the Bcc is still not making it through.
> 
> Not sure if the smtp portion is correct either.
> No parse errors, but no email from the bcc either.
> 
>  $email = $_REQUEST['email'];
> $fromaddress = '[EMAIL PROTECTED]';
> $fromname = 'Zone of success Club'; $eol = "\r\n";
> $smtp = "localhost";
> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";
> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> $headers .= 'Content-Transfer-Encoding: 8bit';
> $subject = 'Your free book!';
> $body = ' href="http://www.g.com/freePDF/autopilotebook.pdf";>"Cli
> ck ME"  Here is your FREE autopilot book';
> mail($email, $subject, $body, $headers);
> ?>
> 
> 
> 
> -Original Message-
> From: Philip Thompson [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 7:00 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> On Nov 19, 2007 5:52 PM, Brad <[EMAIL PROTECTED]> wrote:
> 
>> Why are you being to belligerent?
>> English 101-104 I have aced.
>> Top secret security clearance I maintain.
>> Concatenate I know well (why would I combine the from, and the
>> bcc?)
> 
> 
> I will refrain from the rest of the posts/slams and stick to your
> question in the (...).
> 
> "From" and "Bcc" are *BOTH* part of the headers - that's why you
> want to concatenate them. By not using the . (dot), you are
> over-writing the "From" line.
> 
> Bad/Pointless assignment:
> $headers = "From: ...";
> $headers = "Bcc: ...";
> 
> Good/Useful assignment:
> $headers = "From: ...";
> $headers .= "Bcc: ...";
> 
> Good luck.
> ~Philip
> 

-- End Original Message --

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: FW: [PHP] two small issues with php mail

2007-11-19 Thread Chris



Working code:


Correction - non-working code ;)


'.$eol;

$headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";


This should be:

$headers .= 'Bcc: [EMAIL PROTECTED]' . $eol;

You need the EOL on the end.

Plus afaik in email headers it's \n not \r\n.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Andrés Robinet
Did I miss something or the following line in your code is useless?

> $smtp = "localhost";

Brad, if you really need SMTP configuration, and you want to make your life
easier with attachments and extra headers, give a chance to PHPMailer
http://phpmailer.codeworxtech.com/. It's free, easy to set up and use, and
can do much more than you need.

Rob

Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308
| TEL 954-607-4207 | FAX 954-337-2695 | 
Email: [EMAIL PROTECTED]  | MSN Chat: [EMAIL PROTECTED]  |  SKYPE:
bestplace |  Web: bestplace.biz  | Web: seo-diy.com
Confidentiality:
"All information in this email message, including images, attachments,
contains confidential and proprietary information of BESTPLACE CORPORATION
and should only be used or serves for the intended purpose and should not be
copied, used or disclosed to anyone other than the sole recipient of this
e-mail message."

> -Original Message-
> From: Brad [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 10:27 PM
> To: php-general@lists.php.net
> Subject: FW: [PHP] two small issues with php mail
> 
> 
> 
> 
> 
>_
> 
> From: Brad [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 8:26 PM
> To: 'David Giragosian'
> Subject: RE: [PHP] two small issues with php mail
> 
> 
> 
> My original issue is trying to implement a Bcc and
> 
> 
> 
> Emails are only making it to 50% of the recipients.
> 
> Research and past experience says that I need to implement smtp into my
> code.
> 
> 
> 
> Testing of the present “parse free” code show that email addresses on
> the
> same server: To: works Bcc: does not
> 
> 
> 
> Once Bcc: works on same server, I will need to test Bcc on another
> server
> which I am sure requires the proper smtp configuration.
> 
> 
> 
> Working code:
> 
> 
> 
>  
> $email = $_REQUEST['email'];
> 
> $fromaddress = '[EMAIL PROTECTED]';
> 
> $fromname = ‘g'; $eol = "\r\n";
> 
> $smtp = "localhost";
> 
> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";
> 
> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> 
> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> 
> $headers .= 'Content-Transfer-Encoding: 8bit';
> 
> $subject = 'Your free book!';
> 
> $body = ' href="http://www..com/freePDF/autopilotebook.pdf";>"Clic
> k
> ME"  Here is your FREE autopilot book';
> 
> mail($email, $subject, $body, $headers);
> 
> ?>
> 
> 
> 
>_
> 
> From: David Giragosian [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 19, 2007 7:25 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> 
> 
> 
> 
> On 11/19/07, Philip Thompson  "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote:
> 
> On Nov 19, 2007 5:52 PM, Brad  "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote:
> 
> > Why are you being to belligerent?
> > English 101-104 I have aced.
> > Top secret security clearance I maintain.
> > Concatenate I know well (why would I combine the from, and the bcc?)
> 
> 
> I will refrain from the rest of the posts/slams and stick to your
> question
> in the (...).
> 
> "From" and "Bcc" are *BOTH* part of the headers - that's why you want
> to
> concatenate them. By not using the . (dot), you are over-writing the
> "From"
> line.
> 
> Bad/Pointless assignment:
> $headers = "From: ...";
> $headers = "Bcc: ...";
> 
> Good/Useful assignment:
> $headers = "From: ...";
> $headers .= "Bcc: ...";
> 
> Good luck.
> ~Philip
> 
> 
> 
> Brad,
> 
> 
> 
> If Philip's suggestion doesn't fix the problem, please post the
> relevant
> code, again.
> 
> 
> 
> I've lost track of your original question.
> 
> 
> 
> David
> 
> 
> 
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> 5:15 PM
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread Chris

Brad wrote:

It makes sense, but the Bcc is still not making it through.


Try the examples here:

http://www.sitepoint.com/article/advanced-email-php

They also point out there could be a bug in php mail() where bcc needs 
to be all caps or all lower.



Not sure if the smtp portion is correct either.


I've already explained that.

http://marc.info/?l=php-general&m=119551514923527&w=2

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



FW: [PHP] two small issues with php mail

2007-11-19 Thread Brad
 

 

   _  

From: Brad [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 8:26 PM
To: 'David Giragosian'
Subject: RE: [PHP] two small issues with php mail

 

My original issue is trying to implement a Bcc and 

 

Emails are only making it to 50% of the recipients.

Research and past experience says that I need to implement smtp into my
code.

 

Testing of the present “parse free” code show that email addresses on the
same server: To: works Bcc: does not

 

Once Bcc: works on same server, I will need to test Bcc on another server
which I am sure requires the proper smtp configuration.

 

Working code:

 

'.$eol;

$headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";

$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = 'http://www..com/freePDF/autopilotebook.pdf";>"Click
ME"  Here is your FREE autopilot book';

mail($email, $subject, $body, $headers);

?>

 

   _  

From: David Giragosian [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 7:25 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

 

 

On 11/19/07, Philip Thompson mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote: 

On Nov 19, 2007 5:52 PM, Brad mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]> wrote:

> Why are you being to belligerent? 
> English 101-104 I have aced.
> Top secret security clearance I maintain.
> Concatenate I know well (why would I combine the from, and the bcc?)


I will refrain from the rest of the posts/slams and stick to your question 
in the (...).

"From" and "Bcc" are *BOTH* part of the headers - that's why you want to
concatenate them. By not using the . (dot), you are over-writing the "From"
line.

Bad/Pointless assignment:
$headers = "From: ...";
$headers = "Bcc: ...";

Good/Useful assignment:
$headers = "From: ...";
$headers .= "Bcc: ...";

Good luck. 
~Philip

 

Brad, 

 

If Philip's suggestion doesn't fix the problem, please post the relevant
code, again. 

 

I've lost track of your original question.   

 

David
 

 

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 


RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
It makes sense, but the Bcc is still not making it through.

Not sure if the smtp portion is correct either.
No parse errors, but no email from the bcc either.

'.$eol;
$headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = "\r\n";
$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
$headers .= 'X-Mailer: PHP '.phpversion().$eol;
$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
$headers .= 'Content-Transfer-Encoding: 8bit';
$subject = 'Your free book!';
$body = 'http://www.g.com/freePDF/autopilotebook.pdf";>"Click
ME"  Here is your FREE autopilot book';
mail($email, $subject, $body, $headers);
?>



-Original Message-
From: Philip Thompson [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 7:00 PM
To: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

On Nov 19, 2007 5:52 PM, Brad <[EMAIL PROTECTED]> wrote:

> Why are you being to belligerent?
> English 101-104 I have aced.
> Top secret security clearance I maintain.
> Concatenate I know well (why would I combine the from, and the bcc?)


I will refrain from the rest of the posts/slams and stick to your question
in the (...).

"From" and "Bcc" are *BOTH* part of the headers - that's why you want to
concatenate them. By not using the . (dot), you are over-writing the "From"
line.

Bad/Pointless assignment:
$headers = "From: ...";
$headers = "Bcc: ...";

Good/Useful assignment:
$headers = "From: ...";
$headers .= "Bcc: ...";

Good luck.
~Philip

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Thank you so much!
That really helps and makes sense!

Thank you.

I will try that now

Concatenate with the dot will not cancel them out!
Now this makes sense!
And clears up some other questions I had!.

Thank you.


-Original Message-
From: Philip Thompson [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 7:00 PM
To: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

On Nov 19, 2007 5:52 PM, Brad <[EMAIL PROTECTED]> wrote:

> Why are you being to belligerent?
> English 101-104 I have aced.
> Top secret security clearance I maintain.
> Concatenate I know well (why would I combine the from, and the bcc?)


I will refrain from the rest of the posts/slams and stick to your question
in the (...).

"From" and "Bcc" are *BOTH* part of the headers - that's why you want to
concatenate them. By not using the . (dot), you are over-writing the "From"
line.

Bad/Pointless assignment:
$headers = "From: ...";
$headers = "Bcc: ...";

Good/Useful assignment:
$headers = "From: ...";
$headers .= "Bcc: ...";

Good luck.
~Philip

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread David Giragosian
On 11/19/07, Philip Thompson <[EMAIL PROTECTED]> wrote:
>
> On Nov 19, 2007 5:52 PM, Brad <[EMAIL PROTECTED]> wrote:
>
> > Why are you being to belligerent?
> > English 101-104 I have aced.
> > Top secret security clearance I maintain.
> > Concatenate I know well (why would I combine the from, and the bcc?)
>
>
> I will refrain from the rest of the posts/slams and stick to your question
> in the (...).
>
> "From" and "Bcc" are *BOTH* part of the headers - that's why you want to
> concatenate them. By not using the . (dot), you are over-writing the
> "From"
> line.
>
> Bad/Pointless assignment:
> $headers = "From: ...";
> $headers = "Bcc: ...";
>
> Good/Useful assignment:
> $headers = "From: ...";
> $headers .= "Bcc: ...";
>
> Good luck.
> ~Philip
>

Brad,

If Philip's suggestion doesn't fix the problem, please post the relevant
code, again.

I've lost track of your original question.

David


RE: [PHP] two small issues with php mail

2007-11-19 Thread Wolf
belligerent?  Moi?  Smart-ass yes, pointed yes.  belligerent? No.  But I don't 
take kind to pointed attacks at people who help many others and have tried 
repeatedly to help you without just changing the coding to work for you.  Why?  
Because they and I have helped and been helped by people on here and attacking 
them does not help anyone.  But the sarcasm will get people laughing.  And 
humor/laughter is the best medicine.

You combine the from along with the BCC because they are all part of the 
headers.  What you were doing instead was assigning both to headers as a 
variable.  Which means you no longer had a from.  But if you had concatenated 
them in the first place, that would not have been an issue.  

"" versus '' is syntax, pure and simple.  Some work different ways depending on 
how they are being operated on.  For instance you can do the following:


As for understanding "" versus '' ...  Well they both have their uses and you 
will need to see what works best for your current instant issues, and if one of 
them fails, then you will need to massage the code.  Notice that the last 
example I wrote concatenated the variable with the string to give me the proper 
output.

If you play with mail enough, you will find that your stuff will work when 
dumped into $header whereas it will fail when placed into others.  As for WHY 
that is, blame it on smtp.

If your email is going to some but not all, then the some more then likely are 
getting filtered.  Possibly by the sending server, possibly by a middle server 
that the recipients have set up, possibly by a filter on their end.  Email 
either works or does not.  If all of the email addresses are in the same field 
(to, cc, bcc) and some have received and some have not, then the bet is either 
1.  bad addresses, or 2. filtered.  Again, it's not a mail problem attributable 
to PHP but to either the person entering the email addresses, bad information 
or a filter (which could be done multiple ways).

If you had taken the breaths and calmed down when Stut wrote you, Chris would 
not have had to rewrite your own code to show the simple syntax flub that was 
partially causing your issue.

And as for the note about email addresses and URLs, this list IS actively 
parsed for those things, so make sure your mail filters are up to snuff.  And 
advise anyone who's email and/or URL you have sent out to make sure theirs is 
as well.  And as for sending the phpinfo output...  Well I'd just make sure the 
server admins are aware of it and have proper security in place as well.

You will find that those who try to answer you won't just give you a straight 
answer for the most part but will try to guide you to see what you did.  
Especially for something syntax.  We all make a mistake on it once in a while 
(well maybe not Stut and Chris) but even I will get a coworker to read through 
the code.  The important thing is making sure your () and {} are properly done 
and your ; are in the right spot, the rest normally takes some massaging to get 
right for what your needs are.

As for the grammar and security clearance and whatnot  well let's just say 
that when you took the breath and came back without attacking that it showed 
you thought things through.  

Wolf


 Brad <[EMAIL PROTECTED]> wrote: 
> Why are you being to belligerent?
> English 101-104 I have aced.
> Top secret security clearance I maintain.
> Concatenate I know well (why would I combine the from, and the bcc?)
> 
> A logical explanation as to the order these guys get plugged into in an
> array and why one requires a "" another a '' and the other a "\r\n" with
> little to no documentation available on google or the text book,
> If this is representation to my ignorance in syntax, then yes, I am guilty!
> 
> I am simply trying to understand..
> 
> 
> 
> -Original Message-
> From: Wolf [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 6:23 PM
> To: Brad
> Cc: php-general@lists.php.net; 'Stut'
> Subject: RE: [PHP] two small issues with php mail
> 
> Why is what?  Sorry, you are going to have to go back and phrase this into a
> complete sentence.
> 
> "it makes no sense" refers to what exactly?
> 
> No, you don't have clearance since you haven't passed syntax 101 along with
> English and Grammar 101.  Once you have completed these courses, the answers
> to your questions should be as obvious as the keyboard in front of you.
> 
> If Stut's answer does not make sense to you, google concatenate in the
> dictionary (dictionay: concatenate), then re-read his answer.
> 
> Your professor MUST have a bottle stored somewhere...
> 
> Wolf
> 
> 
>  Brad <[EMAIL PROTECTED]> wrote: 
> > Why is this?
> > 
> > It makes no sense?
> > 
> > Can anyone show me where an "order of operations" for php mail might be
> > hidden?
> > Or is this "top secret" information requiring clearance "which I have"?
> > 
> > 
> > Wrong bit. I also said...
> > 

Re: [PHP] two small issues with php mail

2007-11-19 Thread Philip Thompson
On Nov 19, 2007 5:52 PM, Brad <[EMAIL PROTECTED]> wrote:

> Why are you being to belligerent?
> English 101-104 I have aced.
> Top secret security clearance I maintain.
> Concatenate I know well (why would I combine the from, and the bcc?)


I will refrain from the rest of the posts/slams and stick to your question
in the (...).

"From" and "Bcc" are *BOTH* part of the headers - that's why you want to
concatenate them. By not using the . (dot), you are over-writing the "From"
line.

Bad/Pointless assignment:
$headers = "From: ...";
$headers = "Bcc: ...";

Good/Useful assignment:
$headers = "From: ...";
$headers .= "Bcc: ...";

Good luck.
~Philip


RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Why are you being to belligerent?
English 101-104 I have aced.
Top secret security clearance I maintain.
Concatenate I know well (why would I combine the from, and the bcc?)

A logical explanation as to the order these guys get plugged into in an
array and why one requires a "" another a '' and the other a "\r\n" with
little to no documentation available on google or the text book,
If this is representation to my ignorance in syntax, then yes, I am guilty!

I am simply trying to understand..



-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 6:23 PM
To: Brad
Cc: php-general@lists.php.net; 'Stut'
Subject: RE: [PHP] two small issues with php mail

Why is what?  Sorry, you are going to have to go back and phrase this into a
complete sentence.

"it makes no sense" refers to what exactly?

No, you don't have clearance since you haven't passed syntax 101 along with
English and Grammar 101.  Once you have completed these courses, the answers
to your questions should be as obvious as the keyboard in front of you.

If Stut's answer does not make sense to you, google concatenate in the
dictionary (dictionay: concatenate), then re-read his answer.

Your professor MUST have a bottle stored somewhere...

Wolf


 Brad <[EMAIL PROTECTED]> wrote: 
> Why is this?
> 
> It makes no sense?
> 
> Can anyone show me where an "order of operations" for php mail might be
> hidden?
> Or is this "top secret" information requiring clearance "which I have"?
> 
> 
> Wrong bit. I also said...
> 
>  > // $headers = 'bcc: '[EMAIL PROTECTED]';
> 
> This should work. However, because you're assigning this to $headers
rather
> than concatenating it you're trampling over the From line above.
> 
> BTW, Bcc usually has a capital letter. Probably wouldn't cause any
problems
> but has the potential to stop it working.
> 
> Fin.
> 
> -Stut
> ###
> 
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 5:25 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
> > You say
> > 
> >> The use of BCC with the PHP mail function is pretty well-explained on 
> >> the PHP manual page for said function.
> > 
> > I say,
> > 
> > No it doesn't, I tried everything on that page and it either parse
> error'ed
> > or didn't work.
> 
> Wrong bit. I also said...
> 
>  > // $headers = 'bcc: '[EMAIL PROTECTED]';
> 
> This should work. However, because you're assigning this to $headers 
> rather than concatenating it you're trampling over the From line above.
> 
> BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
> problems but has the potential to stop it working.
> 
> Fin.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
11/18/2007
> 5:15 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
11/18/2007
> 5:15 PM
>  
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread Chris



#1 email is only being sent to a few recipients.

I need to implement 

$smtp = ‘localhost’; 


Somewhere, but I keep getting parse errors?


Don't use fancy ms-word quotes, use the normal single quotes.

php mail() only uses the smtp config if you are sending on a windows 
machine.


http://php.net/mail

SMTP - Used under Windows only: host name or IP address of the SMTP 
server PHP should use for mail sent with the mail() function.


If you want to do smtp authentication yourself, I suggest you get 
phpmailer and look at how it handles it (read the code and try to 
understand the process).



$headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;

// $headers = 'bcc: '[EMAIL PROTECTED]';


This should be:

$headers .= 'bcc: [EMAIL PROTECTED]';

otherwise this line is overwriting the 'from' line (notice the . before 
the = sign).


In future don't post real email addresses because spam-bots get the 
archives from websites and use them, so kathyandrews is going to get a 
ton of spam because you've sent her email address around.


--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Wolf
Why is what?  Sorry, you are going to have to go back and phrase this into a 
complete sentence.

"it makes no sense" refers to what exactly?

No, you don't have clearance since you haven't passed syntax 101 along with 
English and Grammar 101.  Once you have completed these courses, the answers to 
your questions should be as obvious as the keyboard in front of you.

If Stut's answer does not make sense to you, google concatenate in the 
dictionary (dictionay: concatenate), then re-read his answer.

Your professor MUST have a bottle stored somewhere...

Wolf


 Brad <[EMAIL PROTECTED]> wrote: 
> Why is this?
> 
> It makes no sense?
> 
> Can anyone show me where an "order of operations" for php mail might be
> hidden?
> Or is this "top secret" information requiring clearance "which I have"?
> 
> 
> Wrong bit. I also said...
> 
>  > // $headers = 'bcc: '[EMAIL PROTECTED]';
> 
> This should work. However, because you're assigning this to $headers rather
> than concatenating it you're trampling over the From line above.
> 
> BTW, Bcc usually has a capital letter. Probably wouldn't cause any problems
> but has the potential to stop it working.
> 
> Fin.
> 
> -Stut
> ###
> 
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 5:25 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
> > You say
> > 
> >> The use of BCC with the PHP mail function is pretty well-explained on 
> >> the PHP manual page for said function.
> > 
> > I say,
> > 
> > No it doesn't, I tried everything on that page and it either parse
> error'ed
> > or didn't work.
> 
> Wrong bit. I also said...
> 
>  > // $headers = 'bcc: '[EMAIL PROTECTED]';
> 
> This should work. However, because you're assigning this to $headers 
> rather than concatenating it you're trampling over the From line above.
> 
> BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
> problems but has the potential to stop it working.
> 
> Fin.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  
> 
> -- 
> 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



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Why is this?

It makes no sense?

Can anyone show me where an "order of operations" for php mail might be
hidden?
Or is this "top secret" information requiring clearance "which I have"?


Wrong bit. I also said...

 > // $headers = 'bcc: '[EMAIL PROTECTED]';

This should work. However, because you're assigning this to $headers rather
than concatenating it you're trampling over the From line above.

BTW, Bcc usually has a capital letter. Probably wouldn't cause any problems
but has the potential to stop it working.

Fin.

-Stut
###

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 5:25 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> You say
> 
>> The use of BCC with the PHP mail function is pretty well-explained on 
>> the PHP manual page for said function.
> 
> I say,
> 
> No it doesn't, I tried everything on that page and it either parse
error'ed
> or didn't work.

Wrong bit. I also said...

 > // $headers = 'bcc: '[EMAIL PROTECTED]';

This should work. However, because you're assigning this to $headers 
rather than concatenating it you're trampling over the From line above.

BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
problems but has the potential to stop it working.

Fin.

-Stut

-- 
http://stut.net/

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Wolf
Brad,

Take 3 steps away from the computer.  Now take a few deep breaths.  Good.

Stut is NOT Jessen, make sure that the person who called you a dumbass is given 
the proper credit for doing so.  

Stut has tried to be helpful and if you take the time to read through it (are 
you on a deadline for having your homework done and partied too hard this 
weekend?) and you should be able to get your stuff handled.

BCC is the only way to send email without putting the recipients in the CC or 
To field.  But do make sure you follow the correct syntax to include them.

Wolf

 Brad <[EMAIL PROTECTED]> wrote: 
> As per your email!
> 
> #
> 
> Brad wrote:
> 
> > $headers = 'bcc: [EMAIL PROTECTED]';
> > 
> > Works but corrupts the "from" portion and changes it to "nobody"
> > Which I think goes back too the smtp portion.
> 
> There is no bcc: header. BCC'ing someone is normally done by sending them
> the email without listing them explicitly in to: or cc:.
> 
> 
> /Per Jessen, Zürich
> 
> 
> 
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 5:18 PM
> To: Brad
> Cc: 'Wolf'; php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
> > Well, since
> > 
> > http://forums.hostmysite.com/about1171.html
> > 
> > states
> > 
> > $headers .= "CC: [EMAIL PROTECTED]";
> > 
> > Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] 
> > for doing
> > it, I am assuming that all this key wording on google is not going to and
> > the problem appears to be else where!
> 
> I don't believe I did that at all (if I did can someone else please let 
> me know - it's never my intention).
> 
> Since you don't seem willing to properly read my original reply to you, 
> the one with the answer in it, I give up. I wish your professor luck.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 
> > -Original Message-
> > From: Wolf [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, November 19, 2007 4:39 PM
> > To: Brad
> > Cc: php-general@lists.php.net; 'Stut'
> > Subject: RE: [PHP] two small issues with php mail
> > 
> > Since it is not in the assignment, find out how to do things within the
> > parameters of your assignment.
> > 
> > http://www.google.com
> > php: {issue}
> > 
> > Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do
> > it.  If it fails, then you need to be examing the php.ini file for
> > information or talking with the server admins as to what piece is wrong.
> > Also, if you are error checking your own stuff, then the error log should
> be
> > able to tell you what has failed out.
> > 
> > I'm glad your professor is teaching you how to learn, but shouldn't this
> be
> > something you should be able to do already?  
> > 
> > And wasn't this whole thing started with you looking for something that
> you
> > were "already too much money into" to change for the next roll-out?  So
> now
> > you are fessing up to trying to get the PHP board to do your assignments
> for
> > you?
> > 
> > I sure hope your instructor is on this board too...
> > 
> > Wolf
> > 
> >  Brad <[EMAIL PROTECTED]> wrote: 
> >> PHP mailer is not in the assignment and will be counted against me!
> >>
> >> -Original Message-
> >> From: Stut [mailto:[EMAIL PROTECTED] 
> >> Sent: Monday, November 19, 2007 3:43 PM
> >> To: Brad
> >> Cc: php-general@lists.php.net
> >> Subject: Re: [PHP] two small issues with php mail
> >>
> >> Brad wrote:
> >>> Implementing Bcc and smtp.
> >> "Here we go again"
> >>
> >>> #1 email is only being sent to a few recipients.
> >>>
> >>> I need to implement 
> >>>
> >>> $smtp = ‘localhost’; 
> >>>
> >>> Somewhere, but I keep getting parse errors?
> >> Those are not normal quotes, but I'm guessing you actually typed that in 
> >> the evil that is Outlook.
> >>
> >>> #2 trying to do a Bcc but that gives me parse errors as well
> >>>
> >>> It should be as easy as?
> >>>
> >>> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
> >> That's not valid code. Ok, the second bit is, but still rather pointless.
> >>
> >>> Here is the working code, but if I implement the above needed inserts
> >>> anywhere, I get a big ‘ol fat parse error
> >>>
> >>> Any assistance would be truly appreciated.
> >>>
> >>> An explanation of why would really help since this is for a school
> >> project.
> >>
> >> Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
> >> that would mean that you didn't learn it yourself you just used somebody 
> >> elses work. So instead you ask here rather than reading the PHPMailer 
> >> source code. Nice.
> >>
> >>> Working code as is:
> >>>
> >>>  >>>
> >>> $email = $_REQUEST['email'];
> >>>
> >>> $fromaddress = '[EMAIL PROTECTED]';
> >>>
> >>> $fromname = 'Zone of success Club'; $eol = "\r\n";
> >>>
> >>> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> >>>
> >>> // $headers = 'bcc: '[EMAIL P

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut

Brad wrote:

As per your email!


Whose email? Not mine.


#

Brad wrote:


$headers = 'bcc: [EMAIL PROTECTED]';

Works but corrupts the "from" portion and changes it to "nobody"
Which I think goes back too the smtp portion.


There is no bcc: header. BCC'ing someone is normally done by sending them
the email without listing them explicitly in to: or cc:.


Per: While technically correct, PHP (on Windows) and Sendmail (in the 
default configuration used by PHP on most systems) will parse an email, 
extract Bcc headers and use them. There is a note regarding when this 
was added for Windows on the mail manual page.


-Stut

--
http://stut.net/




-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 5:18 PM

To: Brad
Cc: 'Wolf'; php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:

Well, since

http://forums.hostmysite.com/about1171.html

states

$headers .= "CC: [EMAIL PROTECTED]";

Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for 
doing
it, I am assuming that all this key wording on google is not going to and
the problem appears to be else where!


I don't believe I did that at all (if I did can someone else please let 
me know - it's never my intention).


Since you don't seem willing to properly read my original reply to you, 
the one with the answer in it, I give up. I wish your professor luck.


-Stut




-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut

Brad wrote:

You say

The use of BCC with the PHP mail function is pretty well-explained on 
the PHP manual page for said function.


I say,

No it doesn't, I tried everything on that page and it either parse error'ed
or didn't work.


Wrong bit. I also said...

> // $headers = 'bcc: '[EMAIL PROTECTED]';

This should work. However, because you're assigning this to $headers 
rather than concatenating it you're trampling over the From line above.


BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
problems but has the potential to stop it working.


Fin.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
As per your email!

#

Brad wrote:

> $headers = 'bcc: [EMAIL PROTECTED]';
> 
> Works but corrupts the "from" portion and changes it to "nobody"
> Which I think goes back too the smtp portion.

There is no bcc: header. BCC'ing someone is normally done by sending them
the email without listing them explicitly in to: or cc:.


/Per Jessen, Zürich



-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 5:18 PM
To: Brad
Cc: 'Wolf'; php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> Well, since
> 
> http://forums.hostmysite.com/about1171.html
> 
> states
> 
> $headers .= "CC: [EMAIL PROTECTED]";
> 
> Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for 
> doing
> it, I am assuming that all this key wording on google is not going to and
> the problem appears to be else where!

I don't believe I did that at all (if I did can someone else please let 
me know - it's never my intention).

Since you don't seem willing to properly read my original reply to you, 
the one with the answer in it, I give up. I wish your professor luck.

-Stut

-- 
http://stut.net/

> -Original Message-
> From: Wolf [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 4:39 PM
> To: Brad
> Cc: php-general@lists.php.net; 'Stut'
> Subject: RE: [PHP] two small issues with php mail
> 
> Since it is not in the assignment, find out how to do things within the
> parameters of your assignment.
> 
> http://www.google.com
> php: {issue}
> 
> Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do
> it.  If it fails, then you need to be examing the php.ini file for
> information or talking with the server admins as to what piece is wrong.
> Also, if you are error checking your own stuff, then the error log should
be
> able to tell you what has failed out.
> 
> I'm glad your professor is teaching you how to learn, but shouldn't this
be
> something you should be able to do already?  
> 
> And wasn't this whole thing started with you looking for something that
you
> were "already too much money into" to change for the next roll-out?  So
now
> you are fessing up to trying to get the PHP board to do your assignments
for
> you?
> 
> I sure hope your instructor is on this board too...
> 
> Wolf
> 
>  Brad <[EMAIL PROTECTED]> wrote: 
>> PHP mailer is not in the assignment and will be counted against me!
>>
>> -Original Message-
>> From: Stut [mailto:[EMAIL PROTECTED] 
>> Sent: Monday, November 19, 2007 3:43 PM
>> To: Brad
>> Cc: php-general@lists.php.net
>> Subject: Re: [PHP] two small issues with php mail
>>
>> Brad wrote:
>>> Implementing Bcc and smtp.
>> "Here we go again"
>>
>>> #1 email is only being sent to a few recipients.
>>>
>>> I need to implement 
>>>
>>> $smtp = ‘localhost’; 
>>>
>>> Somewhere, but I keep getting parse errors?
>> Those are not normal quotes, but I'm guessing you actually typed that in 
>> the evil that is Outlook.
>>
>>> #2 trying to do a Bcc but that gives me parse errors as well
>>>
>>> It should be as easy as?
>>>
>>> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
>> That's not valid code. Ok, the second bit is, but still rather pointless.
>>
>>> Here is the working code, but if I implement the above needed inserts
>>> anywhere, I get a big ‘ol fat parse error
>>>
>>> Any assistance would be truly appreciated.
>>>
>>> An explanation of why would really help since this is for a school
>> project.
>>
>> Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
>> that would mean that you didn't learn it yourself you just used somebody 
>> elses work. So instead you ask here rather than reading the PHPMailer 
>> source code. Nice.
>>
>>> Working code as is:
>>>
>>> >>
>>> $email = $_REQUEST['email'];
>>>
>>> $fromaddress = '[EMAIL PROTECTED]';
>>>
>>> $fromname = 'Zone of success Club'; $eol = "\r\n";
>>>
>>> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>>
>>> // $headers = 'bcc: '[EMAIL PROTECTED]';
>> This should work. However, because you're assigning this to $headers 
>> rather than concatenating it you're trampling over the From line above.
>>
>> BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
>> problems but has the potential to stop it working.
>>
>>> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>>
>>> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>>
>>> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
>>>
>>> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
>>>
>>> $headers .= 'Content-Transfer-Encoding: 8bit';
>>>
>>> $subject = 'Your free book!';
>>>
>>> $body = '>>
> href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
>>> ME"  Here is your FREE autopilot book';
>> "Click ME" indeed. I'm guessing this isn't an HCI course you're doing.
>>
>>> mail($email, $subject

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut

Brad wrote:

Well, since

http://forums.hostmysite.com/about1171.html

states

$headers .= "CC: [EMAIL PROTECTED]";

Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for 
doing
it, I am assuming that all this key wording on google is not going to and
the problem appears to be else where!


I don't believe I did that at all (if I did can someone else please let 
me know - it's never my intention).


Since you don't seem willing to properly read my original reply to you, 
the one with the answer in it, I give up. I wish your professor luck.


-Stut

--
http://stut.net/


-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 4:39 PM

To: Brad
Cc: php-general@lists.php.net; 'Stut'
Subject: RE: [PHP] two small issues with php mail

Since it is not in the assignment, find out how to do things within the
parameters of your assignment.

http://www.google.com
php: {issue}

Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do
it.  If it fails, then you need to be examing the php.ini file for
information or talking with the server admins as to what piece is wrong.
Also, if you are error checking your own stuff, then the error log should be
able to tell you what has failed out.

I'm glad your professor is teaching you how to learn, but shouldn't this be
something you should be able to do already?  


And wasn't this whole thing started with you looking for something that you
were "already too much money into" to change for the next roll-out?  So now
you are fessing up to trying to get the PHP board to do your assignments for
you?

I sure hope your instructor is on this board too...

Wolf

 Brad <[EMAIL PROTECTED]> wrote: 

PHP mailer is not in the assignment and will be counted against me!

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 3:43 PM

To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:

Implementing Bcc and smtp.

"Here we go again"


#1 email is only being sent to a few recipients.

I need to implement 

$smtp = ‘localhost’; 


Somewhere, but I keep getting parse errors?
Those are not normal quotes, but I'm guessing you actually typed that in 
the evil that is Outlook.



#2 trying to do a Bcc but that gives me parse errors as well

It should be as easy as?

$Bcc [EMAIL PROTECTED]; $eol = "\r\n";

That's not valid code. Ok, the second bit is, but still rather pointless.


Here is the working code, but if I implement the above needed inserts
anywhere, I get a big ‘ol fat parse error

Any assistance would be truly appreciated.

An explanation of why would really help since this is for a school

project.

Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
that would mean that you didn't learn it yourself you just used somebody 
elses work. So instead you ask here rather than reading the PHPMailer 
source code. Nice.



Working code as is:

'.$eol;

// $headers = 'bcc: '[EMAIL PROTECTED]';
This should work. However, because you're assigning this to $headers 
rather than concatenating it you're trampling over the From line above.


BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
problems but has the potential to stop it working.



$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = '
href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click

ME"  Here is your FREE autopilot book';

"Click ME" indeed. I'm guessing this isn't an HCI course you're doing.


mail($email, $subject, $body, $headers);

?>

Try the veal.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:

11/18/2007

5:15 PM
 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:

11/18/2007

5:15 PM
 


--
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



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Phpinfo

PHP Version 5.2.2 

System  Linux cp.ftnco.com 2.6.9-023stab044.11-smp #1 SMP Sun Sep 30
12:02:29 MSD 2007 i686  
Build Date  Oct 22 2007 02:06:41  
Configure Command  './configure' '--enable-bcmath' '--enable-calendar'
'--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml'
'--enable-magic-quotes' '--enable-mbstring' '--enable-sockets'
'--enable-zip' '--prefix=/usr/local'
'--with-apxs2=/usr/local/apache/bin/apxs' '--with-bz2'
'--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-freetype-dir=/usr'
'--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/'
'--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos'
'--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2/'
'--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/'
'--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock'
'--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-png-dir=/usr'
'--with-pspell' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr/X11R6'
'--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'  
Server API  Apache 2.0 Handler  
Virtual Directory Support  disabled  
Configuration File (php.ini) Path  /usr/local/lib  
Loaded Configuration File  /usr/local/Zend/etc/php.ini  
PHP API  20041225  
PHP Extension  20060613  
Zend Extension  220060519  
Debug Build  no  
Thread Safety  disabled  
Zend Memory Manager  enabled  
IPv6 Support  enabled  
Registered PHP Streams  zip, php, file, data, tftp, ftp, telnet, dict, ldap,
http, https, ftps, compress.bzip2, compress.zlib  
Registered Stream Socket Transports  tcp, udp, unix, udg, ssl, sslv3, sslv2,
tls  
Registered Stream Filters  string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*  

 This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend
Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend
Technologies
 





PHP Credits




Configuration
PHP Core
Directive Local Value Master Value 
allow_call_time_pass_reference On On 
allow_url_fopen On On 
allow_url_include Off Off 
always_populate_raw_post_data Off Off 
arg_separator.input & & 
arg_separator.output & & 
asp_tags Off Off 
auto_append_file no value no value 
auto_globals_jit On On 
auto_prepend_file no value no value 
browscap no value no value 
default_charset no value no value 
default_mimetype text/html text/html 
define_syslog_variables Off Off 
disable_classes no value no value 
disable_functions no value no value 
display_errors On On 
display_startup_errors Off Off 
doc_root no value no value 
docref_ext no value no value 
docref_root no value no value 
enable_dl On On 
error_append_string no value no value 
error_log error_log error_log 
error_prepend_string no value no value 
error_reporting 6135 6135 
expose_php On On 
extension_dir /usr/local/lib/php/extensions/no-debug-non-zts-20020429
/usr/local/lib/php/extensions/no-debug-non-zts-20020429 
file_uploads On On 
highlight.bg #FF #FF 
highlight.comment #FF8000 #FF8000 
highlight.default #BB #BB 
highlight.html #00 #00 
highlight.keyword #007700 #007700 
highlight.string #DD #DD 
html_errors On On 
ignore_repeated_errors Off Off 
ignore_repeated_source Off Off 
ignore_user_abort Off Off 
implicit_flush Off Off 
include_path .:/usr/lib/php:/usr/local/lib/php
.:/usr/lib/php:/usr/local/lib/php 
log_errors On On 
log_errors_max_len 1024 1024 
magic_quotes_gpc On On 
magic_quotes_runtime Off Off 
magic_quotes_sybase Off Off 
mail.force_extra_parameters no value no value 
max_execution_time 30 30 
max_input_nesting_level 64 64 
max_input_time 60 60 
memory_limit 8M 8M 
open_basedir no value no value 
output_buffering no value no value 
output_handler no value no value 
post_max_size 8M 8M 
precision 12 12 
realpath_cache_size 16K 16K 
realpath_cache_ttl 120 120 
register_argc_argv On On 
register_globals Off Off 
register_long_arrays On On 
report_memleaks On On 
report_zend_debug On On 
safe_mode Off Off 
safe_mode_exec_dir no value no value 
safe_mode_gid Off Off 
safe_mode_include_dir no value no value 
sendmail_from no value no value 
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i 
serialize_precision 100 100 
short_open_tag On On 
SMTP localhost localhost 
smtp_port 25 25 
sql.safe_mode Off Off 
track_errors Off Off 
unserialize_callback_func no value no value 
upload_max_filesize 2M 2M 
upload_tmp_dir no value no value 
user_dir no value no value 
variables_order EGPCS EGPCS 
xmlrpc_error_number 0 0 
xmlrpc_errors Off Off 
y2k_compliance On On 
zend.ze1_compatibility_mode Off Off 


apache2handler
Apache Version  Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.7a
FrontPa

RE: [PHP] two small issues with php mail

2007-11-19 Thread Wolf
I didn't say TO edit the php.ini file, but it will tell you what the setup of 
said server is, including compiled in pieces and smtp settings.

Are you aware of .htaccess files?  google override php.ini using .htaccess and 
you should get some good hits there.  But then that is probably outside the 
scope of your assignment.  However some professors see that as insightful, YMMV.

Wolf


 Brad <[EMAIL PROTECTED]> wrote: 
> I am very much aware of phpinfo()
> Which has nothing to do with being able to edit the php.ini file!
> 
> -Original Message-
> From: Wolf [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 4:59 PM
> To: Brad; php-general
> Subject: RE: [PHP] two small issues with php mail
> 
> 1.  Always copy the list back
> 2.  HERE is the right word you want, since you can't HEAR someone's on email
> or when reading the system files.  Maybe you should take English & Grammar
> 101 for your next course.
> 3.  Who says you need access to the server backend...  Google phpinfo() - >
> very basic,  ALL books say to make this page when verifying PHP is installed
> correctly.
> 
> I didn't assume anything, merely followed the threads.  And since from the
> looks of things the thread has not changed, the back-story has...  Well draw
> your own conclusions there.
> 
> Wolf
> 
>  Brad <[EMAIL PROTECTED]> wrote: 
> > Wolf write!
> > ###
> > Since it is not in the assignment, find out how to do things within the
> > parameters of your assignment.
> > 
> > http://www.google.com
> > php: {issue}
> > 
> > Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do
> > it.  If it fails, then you need to be examing the php.ini file for
> > information or talking with the server admins as to what piece is wrong.
> > 
> > ##
> > 
> > Me
> > 
> > No access to the server backend!
> > 
> > #
> >   Also, if you are error checking your own stuff, then the error log
> should
> > be able to tell you what has failed out.
> > 
> > ###
> > Me
> > 
> > Doing it, but since these are situational and specific to my problem
> alone,
> > I am batting zero and now on the list!
> > 
> > 
> > I'm glad your professor is teaching you how to learn, but shouldn't this
> be
> > something you should be able to do already?  
> > 
> > And wasn't this whole thing started with you looking for something that
> you
> > were "already too much money into" to change for the next roll-out?  So
> now
> > you are fessing up to trying to get the PHP board to do your assignments
> for
> > you?
> > 
> > ###
> > Me
> > 
> > You are assuming hear and one guarantee about assumptions is that they are
> > 99% incorrect.
> > 
> > ##
> > 
> > I sure hope your instructor is on this board too...
> > 
> > Wolf
> >  
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
I am very much aware of phpinfo()
Which has nothing to do with being able to edit the php.ini file!

-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 4:59 PM
To: Brad; php-general
Subject: RE: [PHP] two small issues with php mail

1.  Always copy the list back
2.  HERE is the right word you want, since you can't HEAR someone's on email
or when reading the system files.  Maybe you should take English & Grammar
101 for your next course.
3.  Who says you need access to the server backend...  Google phpinfo() - >
very basic,  ALL books say to make this page when verifying PHP is installed
correctly.

I didn't assume anything, merely followed the threads.  And since from the
looks of things the thread has not changed, the back-story has...  Well draw
your own conclusions there.

Wolf

 Brad <[EMAIL PROTECTED]> wrote: 
> Wolf write!
> ###
> Since it is not in the assignment, find out how to do things within the
> parameters of your assignment.
> 
> http://www.google.com
> php: {issue}
> 
> Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do
> it.  If it fails, then you need to be examing the php.ini file for
> information or talking with the server admins as to what piece is wrong.
> 
> ##
> 
> Me
> 
> No access to the server backend!
> 
> #
>   Also, if you are error checking your own stuff, then the error log
should
> be able to tell you what has failed out.
> 
> ###
> Me
> 
> Doing it, but since these are situational and specific to my problem
alone,
> I am batting zero and now on the list!
> 
> 
> I'm glad your professor is teaching you how to learn, but shouldn't this
be
> something you should be able to do already?  
> 
> And wasn't this whole thing started with you looking for something that
you
> were "already too much money into" to change for the next roll-out?  So
now
> you are fessing up to trying to get the PHP board to do your assignments
for
> you?
> 
> ###
> Me
> 
> You are assuming hear and one guarantee about assumptions is that they are
> 99% incorrect.
> 
> ##
> 
> I sure hope your instructor is on this board too...
> 
> Wolf
>  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Wolf
1.  Always copy the list back
2.  HERE is the right word you want, since you can't HEAR someone's on email or 
when reading the system files.  Maybe you should take English & Grammar 101 for 
your next course.
3.  Who says you need access to the server backend...  Google phpinfo() - > 
very basic,  ALL books say to make this page when verifying PHP is installed 
correctly.

I didn't assume anything, merely followed the threads.  And since from the 
looks of things the thread has not changed, the back-story has...  Well draw 
your own conclusions there.

Wolf

 Brad <[EMAIL PROTECTED]> wrote: 
> Wolf write!
> ###
> Since it is not in the assignment, find out how to do things within the
> parameters of your assignment.
> 
> http://www.google.com
> php: {issue}
> 
> Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do
> it.  If it fails, then you need to be examing the php.ini file for
> information or talking with the server admins as to what piece is wrong.
> 
> ##
> 
> Me
> 
> No access to the server backend!
> 
> #
>   Also, if you are error checking your own stuff, then the error log should
> be able to tell you what has failed out.
> 
> ###
> Me
> 
> Doing it, but since these are situational and specific to my problem alone,
> I am batting zero and now on the list!
> 
> 
> I'm glad your professor is teaching you how to learn, but shouldn't this be
> something you should be able to do already?  
> 
> And wasn't this whole thing started with you looking for something that you
> were "already too much money into" to change for the next roll-out?  So now
> you are fessing up to trying to get the PHP board to do your assignments for
> you?
> 
> ###
> Me
> 
> You are assuming hear and one guarantee about assumptions is that they are
> 99% incorrect.
> 
> ##
> 
> I sure hope your instructor is on this board too...
> 
> Wolf
>  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
You say

> The use of BCC with the PHP mail function is pretty well-explained on 
> the PHP manual page for said function.

I say,

No it doesn't, I tried everything on that page and it either parse error'ed
or didn't work.

The php manual page goes from baby basics to crazy smtp authentication
processes with a snippet of my issue "which when extracted" does not work.
When add lib is added, it does not work, when the entire code piece is
extracted, it does not work, when attempted to clean it up and cater to my
environment, it parse errors.

How about a relational examination or how they got from point a to point d?

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 4:41 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> This is why I am on this mailing instead of the php site for their mailer
> which is utterly useless!
> 
> I could probably recite the entire page by heart and gained nothing
compared
> to the insight and reading material offered by this list.
> 
> Just seeking knowledgeable guidance!
> 
> Any assistance on methods to solve my issue would be duly appreciated!

Once again... my reply contained everything you needed to get your code 
to work properly. Please read it again.

-Stut

-- 
http://stut.net/

> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 4:17 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
>> This information is pulled directly off the php website when used for
> other
>> applications, so if I am wrong, then so are they.
>>
>> As for php mailer, my professor explained it very well today,
>> Learn the in's and out's of the programming and it's quarks to understand
>> the logic and then he will show us the tricks.
> 
> I wouldn't call PHPMailer a trick as such, but your professor is 
> absolutely right about learning the in's and out's of programming. 
> Unfortunately your posts so far have demonstrated that you haven't yet 
> grasped the syntactic basics yet but it doesn't seem to bother you.
> 
>> Yes, here we go again!
>>
>> I am just seeking valid knowledge and understanding. Reading material is
>> great too as long as it is relevant.
> 
> The use of BCC with the PHP mail function is pretty well-explained on 
> the PHP manual page for said function.
> 
>> Sarcasm does not help with the learning curve sir!
> 
> You will find that if you read my reply carefully the answers you seek 
> are in there. I rarely answer a question with sarcasm alone, but I'm a 
> little ashamed to say that it does happen occasionally.
> 
> I hang about on this list for entertainment. I get that from helping 
> people and mocking those I think deserve it. If you don't like it feel 
> free to ignore me or add me to your kill list, but don't ask me to stop.
> 
> -Stut

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Well, since

http://forums.hostmysite.com/about1171.html

states

$headers .= "CC: [EMAIL PROTECTED]";

Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for 
doing
it, I am assuming that all this key wording on google is not going to and
the problem appears to be else where!



-Original Message-
From: Wolf [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 4:39 PM
To: Brad
Cc: php-general@lists.php.net; 'Stut'
Subject: RE: [PHP] two small issues with php mail

Since it is not in the assignment, find out how to do things within the
parameters of your assignment.

http://www.google.com
php: {issue}

Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do
it.  If it fails, then you need to be examing the php.ini file for
information or talking with the server admins as to what piece is wrong.
Also, if you are error checking your own stuff, then the error log should be
able to tell you what has failed out.

I'm glad your professor is teaching you how to learn, but shouldn't this be
something you should be able to do already?  

And wasn't this whole thing started with you looking for something that you
were "already too much money into" to change for the next roll-out?  So now
you are fessing up to trying to get the PHP board to do your assignments for
you?

I sure hope your instructor is on this board too...

Wolf

 Brad <[EMAIL PROTECTED]> wrote: 
> PHP mailer is not in the assignment and will be counted against me!
> 
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 3:43 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
> > Implementing Bcc and smtp.
> 
> "Here we go again"
> 
> > #1 email is only being sent to a few recipients.
> > 
> > I need to implement 
> > 
> > $smtp = ‘localhost’; 
> > 
> > Somewhere, but I keep getting parse errors?
> 
> Those are not normal quotes, but I'm guessing you actually typed that in 
> the evil that is Outlook.
> 
> > #2 trying to do a Bcc but that gives me parse errors as well
> > 
> > It should be as easy as?
> > 
> > $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
> 
> That's not valid code. Ok, the second bit is, but still rather pointless.
> 
> > Here is the working code, but if I implement the above needed inserts
> > anywhere, I get a big ‘ol fat parse error
> > 
> > Any assistance would be truly appreciated.
> > 
> > An explanation of why would really help since this is for a school
> project.
> 
> Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
> that would mean that you didn't learn it yourself you just used somebody 
> elses work. So instead you ask here rather than reading the PHPMailer 
> source code. Nice.
> 
> > Working code as is:
> > 
> >  > 
> > $email = $_REQUEST['email'];
> > 
> > $fromaddress = '[EMAIL PROTECTED]';
> > 
> > $fromname = 'Zone of success Club'; $eol = "\r\n";
> > 
> > $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> > 
> > // $headers = 'bcc: '[EMAIL PROTECTED]';
> 
> This should work. However, because you're assigning this to $headers 
> rather than concatenating it you're trampling over the From line above.
> 
> BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
> problems but has the potential to stop it working.
> 
> > $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> > 
> > $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> > 
> > $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> > 
> > $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> > 
> > $headers .= 'Content-Transfer-Encoding: 8bit';
> > 
> > $subject = 'Your free book!';
> > 
> > $body = ' >
href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
> > ME"  Here is your FREE autopilot book';
> 
> "Click ME" indeed. I'm guessing this isn't an HCI course you're doing.
> 
> > mail($email, $subject, $body, $headers);
> > 
> > ?>
> 
> Try the veal.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
11/18/2007
> 5:15 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
11/18/2007
> 5:15 PM
>  
> 
> --
> 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

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus 

RE: [PHP] two small issues with php mail

2007-11-19 Thread Wolf
Guidance:
1.  Learn the syntax of PHP, including how to concatenate information to 
variables.
2.  Learn the syntax of coding standards for the language you are using.
3.  Learn the proper way to ask for help
4.  Learn the proper way to read answers provided, since this is difficult for 
you...
A. Remove head from @$$
B. Read email top to bottom (printing it out sometimes helps)
C. Mark through the bits of working code that you provided
D. Re-Read non-working code with helpful tips from those whom have given 
you answers
E. THANK THE ANSWERERS FOR THEIR HELP
F. Fully document your code with the markings where you received further 
insight or code pieces themselves to show where you got it

If you don't like sarcasm or want people to do your homework for you, go to 
another list.  Many of us on here code daily, using pieces of our own and 
helping others and each other out (OK, I can't EVER remember helping Stut with 
something), but we are here because we like to help and pass on information.  
We are NOT here to write code for your business or homework.

You should be learning these principals in your class, you must have been 
skipping or asleep during them.

And yes, Stut's answers are great for the issue at hand, but you need to go 
back and follow the steps (possibly making sure to step A multiple times)... 
And I'd love to hear you recite the entire page.  What's your number and I'll 
speaker-phone it.  :-D

Wolf

 Brad <[EMAIL PROTECTED]> wrote: 
> This is why I am on this mailing instead of the php site for their mailer
> which is utterly useless!
> 
> I could probably recite the entire page by heart and gained nothing compared
> to the insight and reading material offered by this list.
> 
> Just seeking knowledgeable guidance!
> 
> Any assistance on methods to solve my issue would be duly appreciated!
> 
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 4:17 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
> > This information is pulled directly off the php website when used for
> other
> > applications, so if I am wrong, then so are they.
> > 
> > As for php mailer, my professor explained it very well today,
> > Learn the in's and out's of the programming and it's quarks to understand
> > the logic and then he will show us the tricks.
> 
> I wouldn't call PHPMailer a trick as such, but your professor is 
> absolutely right about learning the in's and out's of programming. 
> Unfortunately your posts so far have demonstrated that you haven't yet 
> grasped the syntactic basics yet but it doesn't seem to bother you.
> 
> > Yes, here we go again!
> > 
> > I am just seeking valid knowledge and understanding. Reading material is
> > great too as long as it is relevant.
> 
> The use of BCC with the PHP mail function is pretty well-explained on 
> the PHP manual page for said function.
> 
> > Sarcasm does not help with the learning curve sir!
> 
> You will find that if you read my reply carefully the answers you seek 
> are in there. I rarely answer a question with sarcasm alone, but I'm a 
> little ashamed to say that it does happen occasionally.
> 
> I hang about on this list for entertainment. I get that from helping 
> people and mocking those I think deserve it. If you don't like it feel 
> free to ignore me or add me to your kill list, but don't ask me to stop.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 
> > -Original Message-
> > From: Stut [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, November 19, 2007 3:43 PM
> > To: Brad
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] two small issues with php mail
> > 
> > Brad wrote:
> >> Implementing Bcc and smtp.
> > 
> > "Here we go again"
> > 
> >> #1 email is only being sent to a few recipients.
> >>
> >> I need to implement 
> >>
> >> $smtp = ‘localhost’; 
> >>
> >> Somewhere, but I keep getting parse errors?
> > 
> > Those are not normal quotes, but I'm guessing you actually typed that in 
> > the evil that is Outlook.
> > 
> >> #2 trying to do a Bcc but that gives me parse errors as well
> >>
> >> It should be as easy as?
> >>
> >> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
> > 
> > That's not valid code. Ok, the second bit is, but still rather pointless.
> > 
> >> Here is the working code, but if I implement the above needed inserts
> >> anywhere, I get a big ‘ol fat parse error
> >>
> >> Any assistance would be truly appreciated.
> >>
> >> An explanation of why would really help since this is for a school
> > project.
> > 
> > Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
> > that would mean that you didn't learn it yourself you just used somebody 
> > elses work. So instead you ask here rather than reading the PHPMailer 
> > source code. Nice.
> > 
> >> Working code as is:
> >>
> >>  >>
> >> $email = $_REQUEST['email'];
> >>
> >> $fromaddress = '[EMAIL PROTECTED]';
>

Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut

Brad wrote:

This is why I am on this mailing instead of the php site for their mailer
which is utterly useless!

I could probably recite the entire page by heart and gained nothing compared
to the insight and reading material offered by this list.

Just seeking knowledgeable guidance!

Any assistance on methods to solve my issue would be duly appreciated!


Once again... my reply contained everything you needed to get your code 
to work properly. Please read it again.


-Stut

--
http://stut.net/


-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 4:17 PM

To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:

This information is pulled directly off the php website when used for

other

applications, so if I am wrong, then so are they.

As for php mailer, my professor explained it very well today,
Learn the in's and out's of the programming and it's quarks to understand
the logic and then he will show us the tricks.


I wouldn't call PHPMailer a trick as such, but your professor is 
absolutely right about learning the in's and out's of programming. 
Unfortunately your posts so far have demonstrated that you haven't yet 
grasped the syntactic basics yet but it doesn't seem to bother you.



Yes, here we go again!

I am just seeking valid knowledge and understanding. Reading material is
great too as long as it is relevant.


The use of BCC with the PHP mail function is pretty well-explained on 
the PHP manual page for said function.



Sarcasm does not help with the learning curve sir!


You will find that if you read my reply carefully the answers you seek 
are in there. I rarely answer a question with sarcasm alone, but I'm a 
little ashamed to say that it does happen occasionally.


I hang about on this list for entertainment. I get that from helping 
people and mocking those I think deserve it. If you don't like it feel 
free to ignore me or add me to your kill list, but don't ask me to stop.


-Stut


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Wolf
Since it is not in the assignment, find out how to do things within the 
parameters of your assignment.

http://www.google.com
php: {issue}

Googling "PHP: mail bcc" (sans quotes) has 5 viable workings on how to do it.  
If it fails, then you need to be examing the php.ini file for information or 
talking with the server admins as to what piece is wrong.  Also, if you are 
error checking your own stuff, then the error log should be able to tell you 
what has failed out.

I'm glad your professor is teaching you how to learn, but shouldn't this be 
something you should be able to do already?  

And wasn't this whole thing started with you looking for something that you 
were "already too much money into" to change for the next roll-out?  So now you 
are fessing up to trying to get the PHP board to do your assignments for you?

I sure hope your instructor is on this board too...

Wolf

 Brad <[EMAIL PROTECTED]> wrote: 
> PHP mailer is not in the assignment and will be counted against me!
> 
> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 3:43 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
> > Implementing Bcc and smtp.
> 
> "Here we go again"
> 
> > #1 email is only being sent to a few recipients.
> > 
> > I need to implement 
> > 
> > $smtp = ‘localhost’; 
> > 
> > Somewhere, but I keep getting parse errors?
> 
> Those are not normal quotes, but I'm guessing you actually typed that in 
> the evil that is Outlook.
> 
> > #2 trying to do a Bcc but that gives me parse errors as well
> > 
> > It should be as easy as?
> > 
> > $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
> 
> That's not valid code. Ok, the second bit is, but still rather pointless.
> 
> > Here is the working code, but if I implement the above needed inserts
> > anywhere, I get a big ‘ol fat parse error
> > 
> > Any assistance would be truly appreciated.
> > 
> > An explanation of why would really help since this is for a school
> project.
> 
> Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
> that would mean that you didn't learn it yourself you just used somebody 
> elses work. So instead you ask here rather than reading the PHPMailer 
> source code. Nice.
> 
> > Working code as is:
> > 
> >  > 
> > $email = $_REQUEST['email'];
> > 
> > $fromaddress = '[EMAIL PROTECTED]';
> > 
> > $fromname = 'Zone of success Club'; $eol = "\r\n";
> > 
> > $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> > 
> > // $headers = 'bcc: '[EMAIL PROTECTED]';
> 
> This should work. However, because you're assigning this to $headers 
> rather than concatenating it you're trampling over the From line above.
> 
> BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
> problems but has the potential to stop it working.
> 
> > $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> > 
> > $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> > 
> > $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> > 
> > $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> > 
> > $headers .= 'Content-Transfer-Encoding: 8bit';
> > 
> > $subject = 'Your free book!';
> > 
> > $body = ' > href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
> > ME"  Here is your FREE autopilot book';
> 
> "Click ME" indeed. I'm guessing this isn't an HCI course you're doing.
> 
> > mail($email, $subject, $body, $headers);
> > 
> > ?>
> 
> Try the veal.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  
> 
> --
> 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



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
This is why I am on this mailing instead of the php site for their mailer
which is utterly useless!

I could probably recite the entire page by heart and gained nothing compared
to the insight and reading material offered by this list.

Just seeking knowledgeable guidance!

Any assistance on methods to solve my issue would be duly appreciated!

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 4:17 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> This information is pulled directly off the php website when used for
other
> applications, so if I am wrong, then so are they.
> 
> As for php mailer, my professor explained it very well today,
> Learn the in's and out's of the programming and it's quarks to understand
> the logic and then he will show us the tricks.

I wouldn't call PHPMailer a trick as such, but your professor is 
absolutely right about learning the in's and out's of programming. 
Unfortunately your posts so far have demonstrated that you haven't yet 
grasped the syntactic basics yet but it doesn't seem to bother you.

> Yes, here we go again!
> 
> I am just seeking valid knowledge and understanding. Reading material is
> great too as long as it is relevant.

The use of BCC with the PHP mail function is pretty well-explained on 
the PHP manual page for said function.

> Sarcasm does not help with the learning curve sir!

You will find that if you read my reply carefully the answers you seek 
are in there. I rarely answer a question with sarcasm alone, but I'm a 
little ashamed to say that it does happen occasionally.

I hang about on this list for entertainment. I get that from helping 
people and mocking those I think deserve it. If you don't like it feel 
free to ignore me or add me to your kill list, but don't ask me to stop.

-Stut

-- 
http://stut.net/

> -Original Message-
> From: Stut [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 3:43 PM
> To: Brad
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] two small issues with php mail
> 
> Brad wrote:
>> Implementing Bcc and smtp.
> 
> "Here we go again"
> 
>> #1 email is only being sent to a few recipients.
>>
>> I need to implement 
>>
>> $smtp = ‘localhost’; 
>>
>> Somewhere, but I keep getting parse errors?
> 
> Those are not normal quotes, but I'm guessing you actually typed that in 
> the evil that is Outlook.
> 
>> #2 trying to do a Bcc but that gives me parse errors as well
>>
>> It should be as easy as?
>>
>> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
> 
> That's not valid code. Ok, the second bit is, but still rather pointless.
> 
>> Here is the working code, but if I implement the above needed inserts
>> anywhere, I get a big ‘ol fat parse error
>>
>> Any assistance would be truly appreciated.
>>
>> An explanation of why would really help since this is for a school
> project.
> 
> Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
> that would mean that you didn't learn it yourself you just used somebody 
> elses work. So instead you ask here rather than reading the PHPMailer 
> source code. Nice.
> 
>> Working code as is:
>>
>> >
>> $email = $_REQUEST['email'];
>>
>> $fromaddress = '[EMAIL PROTECTED]';
>>
>> $fromname = 'Zone of success Club'; $eol = "\r\n";
>>
>> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>
>> // $headers = 'bcc: '[EMAIL PROTECTED]';
> 
> This should work. However, because you're assigning this to $headers 
> rather than concatenating it you're trampling over the From line above.
> 
> BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
> problems but has the potential to stop it working.
> 
>> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>
>> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
>>
>> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
>>
>> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
>>
>> $headers .= 'Content-Transfer-Encoding: 8bit';
>>
>> $subject = 'Your free book!';
>>
>> $body = '> href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
>> ME"  Here is your FREE autopilot book';
> 
> "Click ME" indeed. I'm guessing this isn't an HCI course you're doing.
> 
>> mail($email, $subject, $body, $headers);
>>
>> ?>
> 
> Try the veal.
> 
> -Stut

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut

Brad wrote:

This information is pulled directly off the php website when used for other
applications, so if I am wrong, then so are they.

As for php mailer, my professor explained it very well today,
Learn the in's and out's of the programming and it's quarks to understand
the logic and then he will show us the tricks.


I wouldn't call PHPMailer a trick as such, but your professor is 
absolutely right about learning the in's and out's of programming. 
Unfortunately your posts so far have demonstrated that you haven't yet 
grasped the syntactic basics yet but it doesn't seem to bother you.



Yes, here we go again!

I am just seeking valid knowledge and understanding. Reading material is
great too as long as it is relevant.


The use of BCC with the PHP mail function is pretty well-explained on 
the PHP manual page for said function.



Sarcasm does not help with the learning curve sir!


You will find that if you read my reply carefully the answers you seek 
are in there. I rarely answer a question with sarcasm alone, but I'm a 
little ashamed to say that it does happen occasionally.


I hang about on this list for entertainment. I get that from helping 
people and mocking those I think deserve it. If you don't like it feel 
free to ignore me or add me to your kill list, but don't ask me to stop.


-Stut

--
http://stut.net/


-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 3:43 PM

To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:

Implementing Bcc and smtp.


"Here we go again"


#1 email is only being sent to a few recipients.

I need to implement 

$smtp = ‘localhost’; 


Somewhere, but I keep getting parse errors?


Those are not normal quotes, but I'm guessing you actually typed that in 
the evil that is Outlook.



#2 trying to do a Bcc but that gives me parse errors as well

It should be as easy as?

$Bcc [EMAIL PROTECTED]; $eol = "\r\n";


That's not valid code. Ok, the second bit is, but still rather pointless.


Here is the working code, but if I implement the above needed inserts
anywhere, I get a big ‘ol fat parse error

Any assistance would be truly appreciated.

An explanation of why would really help since this is for a school

project.

Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
that would mean that you didn't learn it yourself you just used somebody 
elses work. So instead you ask here rather than reading the PHPMailer 
source code. Nice.



Working code as is:

'.$eol;

// $headers = 'bcc: '[EMAIL PROTECTED]';


This should work. However, because you're assigning this to $headers 
rather than concatenating it you're trampling over the From line above.


BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
problems but has the potential to stop it working.



$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = 'http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
ME"  Here is your FREE autopilot book';


"Click ME" indeed. I'm guessing this isn't an HCI course you're doing.


mail($email, $subject, $body, $headers);

?>


Try the veal.

-Stut


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] xinclude

2007-11-19 Thread Jonas Geiregat
Sorry the code works fine, just forgot the echo the output.


On Mon, 2007-11-19 at 22:04 +0100, Jonas Geiregat wrote:
> I've been playing with DOMDocument->xinclude but it just doesn't seem to
> work for me.
> 
> test.php:
> 
>  header('set content-type: text/xml');
> $doc = new DomDocument;
> 
> $doc->preserveWhiteSpace = false;
> $doc->formatOutput = true;
> 
> 
> $doc->load('test.xml');
> 
> $doc->xinclude();
> 
> $doc->saveXML();
> ?>
> 
> test.xml:
> 
> 
> 
> http://www.w3.org/2001/XInclude";>
> 
> 
> xinclude: book.xml not found
> 
> 
> 
> 
> foo.xml:
> 
> 
> 
> 
> 
> sfsd
> 
> 
> The output of test.php is nothing plain white space.
> 
> Any help is appreciated. 
> 
> thanks in advance Jonas
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] xinclude

2007-11-19 Thread Jonas Geiregat
I've been playing with DOMDocument->xinclude but it just doesn't seem to
work for me.

test.php:

preserveWhiteSpace = false;
$doc->formatOutput = true;


$doc->load('test.xml');

$doc->xinclude();

$doc->saveXML();
?>

test.xml:



http://www.w3.org/2001/XInclude";>


xinclude: book.xml not found




foo.xml:





sfsd


The output of test.php is nothing plain white space.

Any help is appreciated. 

thanks in advance Jonas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Open Source BTS?? -- Roach

2007-11-19 Thread Daevid Vincent
Since I got so much interest in Roach from the list, I spent several hours
last night putting up the most recent version for demo, making some 'fake'
data so you can see how it all works and looks (sans admin section) and
created a new .tgz file for ya'll to download. 

Keep in mind this was made for my company, so some things may need tweaking
on your end. Sorry about that. It is what it is.

I'll answer any questions I can or guide you to some degree for the
installation. Shouldn't be too difficult. Dump in the .sql schema and set up
the global.inc file. That should get you going.

D.Vin
http://daevid.com 

> -Original Message-
> From: Daevid Vincent [mailto:[EMAIL PROTECTED] 
> Sent: Friday, November 16, 2007 2:23 PM
> To: php-general@lists.php.net
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] Open Source BTS?? -- Roach
> 
> You could install the system I wrote called "Roach". 
> You can see an older version on my site (and I can post up or 
> email you a
> newer .tgz file):
> 
> http://daevid.com
> 
> I actively develop it for my company. We've used it for 6 
> years now. I *try*
> to make my fixes generic, and I repost them periodically to 
> my site in a tgz
> file.
> 
> I actually like it a lot. We started with Mantis (again, 
> years ago) and it
> sucked ass, so we rolled our own (in typical startup/FOSS fashion).
> 
> There's a sourceforge project that I don't update (I use svn 
> and not cvs and
> don't care to set that up anymore). 
> http://sourceforge.net/projects/roachphp/
> 
> D.Vin 
> 
> > -Original Message-
> > From: Richard Heyes [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, November 16, 2007 2:32 AM
> > To: Randy Patterson
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] Open Source BTS??
> > 
> > > I am needing to install a bug tracking system on a web 
> > server and looking for 
> > > a good PHP open source solution. Looking for a pretty 
> > mature system that 
> > > still has active development. Thanks for any suggestions.
> > 
> > The only one I have had experience of is Mantis:
> > 
> > http://www.mantisbt.org/
> > 
> > No complaints here.
> > 
> > -- 
> > Richard Heyes
> > +44 (0)800 0213 172
> > http://www.websupportsolutions.co.uk
> > 
> > Knowledge Base and HelpDesk software
> > that can cut the cost of online support
> > 
> > -- 
> > 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
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
This information is pulled directly off the php website when used for other
applications, so if I am wrong, then so are they.

As for php mailer, my professor explained it very well today,
Learn the in's and out's of the programming and it's quarks to understand
the logic and then he will show us the tricks.

Yes, here we go again!

I am just seeking valid knowledge and understanding. Reading material is
great too as long as it is relevant.

Sarcasm does not help with the learning curve sir!

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 3:43 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> Implementing Bcc and smtp.

"Here we go again"

> #1 email is only being sent to a few recipients.
> 
> I need to implement 
> 
> $smtp = ‘localhost’; 
> 
> Somewhere, but I keep getting parse errors?

Those are not normal quotes, but I'm guessing you actually typed that in 
the evil that is Outlook.

> #2 trying to do a Bcc but that gives me parse errors as well
> 
> It should be as easy as?
> 
> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";

That's not valid code. Ok, the second bit is, but still rather pointless.

> Here is the working code, but if I implement the above needed inserts
> anywhere, I get a big ‘ol fat parse error
> 
> Any assistance would be truly appreciated.
> 
> An explanation of why would really help since this is for a school
project.

Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
that would mean that you didn't learn it yourself you just used somebody 
elses work. So instead you ask here rather than reading the PHPMailer 
source code. Nice.

> Working code as is:
> 
>  
> $email = $_REQUEST['email'];
> 
> $fromaddress = '[EMAIL PROTECTED]';
> 
> $fromname = 'Zone of success Club'; $eol = "\r\n";
> 
> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> // $headers = 'bcc: '[EMAIL PROTECTED]';

This should work. However, because you're assigning this to $headers 
rather than concatenating it you're trampling over the From line above.

BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
problems but has the potential to stop it working.

> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> 
> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> 
> $headers .= 'Content-Transfer-Encoding: 8bit';
> 
> $subject = 'Your free book!';
> 
> $body = ' href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
> ME"  Here is your FREE autopilot book';

"Click ME" indeed. I'm guessing this isn't an HCI course you're doing.

> mail($email, $subject, $body, $headers);
> 
> ?>

Try the veal.

-Stut

-- 
http://stut.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
PHP mailer is not in the assignment and will be counted against me!

-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 3:43 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> Implementing Bcc and smtp.

"Here we go again"

> #1 email is only being sent to a few recipients.
> 
> I need to implement 
> 
> $smtp = ‘localhost’; 
> 
> Somewhere, but I keep getting parse errors?

Those are not normal quotes, but I'm guessing you actually typed that in 
the evil that is Outlook.

> #2 trying to do a Bcc but that gives me parse errors as well
> 
> It should be as easy as?
> 
> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";

That's not valid code. Ok, the second bit is, but still rather pointless.

> Here is the working code, but if I implement the above needed inserts
> anywhere, I get a big ‘ol fat parse error
> 
> Any assistance would be truly appreciated.
> 
> An explanation of why would really help since this is for a school
project.

Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
that would mean that you didn't learn it yourself you just used somebody 
elses work. So instead you ask here rather than reading the PHPMailer 
source code. Nice.

> Working code as is:
> 
>  
> $email = $_REQUEST['email'];
> 
> $fromaddress = '[EMAIL PROTECTED]';
> 
> $fromname = 'Zone of success Club'; $eol = "\r\n";
> 
> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> // $headers = 'bcc: '[EMAIL PROTECTED]';

This should work. However, because you're assigning this to $headers 
rather than concatenating it you're trampling over the From line above.

BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
problems but has the potential to stop it working.

> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> 
> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> 
> $headers .= 'Content-Transfer-Encoding: 8bit';
> 
> $subject = 'Your free book!';
> 
> $body = ' href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
> ME"  Here is your FREE autopilot book';

"Click ME" indeed. I'm guessing this isn't an HCI course you're doing.

> mail($email, $subject, $body, $headers);
> 
> ?>

Try the veal.

-Stut

-- 
http://stut.net/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] two small issues with php mail

2007-11-19 Thread Stut

Brad wrote:

Implementing Bcc and smtp.


"Here we go again"


#1 email is only being sent to a few recipients.

I need to implement 

$smtp = ‘localhost’; 


Somewhere, but I keep getting parse errors?


Those are not normal quotes, but I'm guessing you actually typed that in 
the evil that is Outlook.



#2 trying to do a Bcc but that gives me parse errors as well

It should be as easy as?

$Bcc [EMAIL PROTECTED]; $eol = "\r\n";


That's not valid code. Ok, the second bit is, but still rather pointless.


Here is the working code, but if I implement the above needed inserts
anywhere, I get a big ‘ol fat parse error

Any assistance would be truly appreciated.

An explanation of why would really help since this is for a school project.


Ahh, suddenly everything becomes clear. You can't use PHPMailer because 
that would mean that you didn't learn it yourself you just used somebody 
elses work. So instead you ask here rather than reading the PHPMailer 
source code. Nice.



Working code as is:

'.$eol;

// $headers = 'bcc: '[EMAIL PROTECTED]';


This should work. However, because you're assigning this to $headers 
rather than concatenating it you're trampling over the From line above.


BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
problems but has the potential to stop it working.



$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = 'http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
ME"  Here is your FREE autopilot book';


"Click ME" indeed. I'm guessing this isn't an HCI course you're doing.


mail($email, $subject, $body, $headers);

?>


Try the veal.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
Apperently my smtp portion is "not" working.
This did not solve my problem of sending email to only 50% of the
recipients, just no parse error
This is what the php mail manual page suggest?

And

Where should the bcc go if not the header?



-Original Message-
From: Per Jessen [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 1:55 PM
To: php-general@lists.php.net
Subject: RE: [PHP] two small issues with php mail

Brad wrote:

> $headers = 'bcc: [EMAIL PROTECTED]';
> 
> Works but corrupts the "from" portion and changes it to "nobody"
> Which I think goes back too the smtp portion.

There is no bcc: header. BCC'ing someone is normally done by sending
them the email without listing them explicitly in to: or cc:.


/Per Jessen, Zürich

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php DOM question

2007-11-19 Thread pere roca

hi everybody,

I'm starting with the php DOM tools with some success.
I want the user to dynamically alter the values of an xml tag () and
incrustate this tag in a predefined XML. This original XML is like this:
...
 
   
   
  userID
  nom USUARI   
   
   
   
   


After executing the code (showed below), the XML tag is inserted but INSIDE
of  tag, and should go AFTER. This is the wrong XML: 

  
   
  userID
  nom USUARI   
   

 >the new  in wrong position

 
   
  genus
  XXX   
   
 
  

Thanks everybody,
this is the code:

http://www.opengis.net/gml";>

  genus
  valor A PASSAR

  

$sxe = simplexml_load_string($xmlstr);
//Values we will pass to the new  to insert
$species=array('ontophaugs332','copris');
$dom = new DOMDocument;
//XML we will insert the data to
$dom -> load('edit_iberia3.xml');

//Where will be the data inserted
$where_to_insert= $dom->getElementsByTagName('Filter')->item(0);//->item(0);

//we pass parameters of the array
foreach ($species as $sp=>$value)
{
$sxe->PropertyIsEqualTo->Literal=$value;

//This function takes the node NODE  of class SimpleXML and makes it into a
DOMElement node
$node = dom_import_simplexml($sxe);
//This function returns a copy of the node to import and associates it with
the current document.
$node = $dom->importNode($node, true);
$before_insert->appendChild($node);
}

//we save the XML file
echo $dom->save(simples2);
?> 

-- 
View this message in context: 
http://www.nabble.com/php-DOM-question-tf4838570.html#a13842759
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] two small issues with php mail

2007-11-19 Thread Per Jessen
Brad wrote:

> $headers = 'bcc: [EMAIL PROTECTED]';
> 
> Works but corrupts the "from" portion and changes it to "nobody"
> Which I think goes back too the smtp portion.

There is no bcc: header. BCC'ing someone is normally done by sending
them the email without listing them explicitly in to: or cc:.


/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-19 Thread Jim Lucas

Dan Shirah wrote:

Jim,

I used your suggestion and modified it a little bit.  All of the names are
pulled from the database, but for some reason once it has pulled all the
names form each query it is adding an empty result to the end.

So when I do a echo $row['first_name']." ".$row['last_name']."\n"; it
is returning something like this:

John Smith
Bob Smith

Jane Smith
Robert Smith

The gap between the names contains a single space " ".  I tried to trim the
results but cannot get rid of it.

Any ideas?



forgot about that glitch in doing it that way.  The reason is because the system will create the new 
entry in the array in the while loop, but then the call to the fetch fails.  So the while loop gets 
loaded with a result of false rather then an array.


to fix this, you could simply do something like this

if ( $cs_type ) {
while ( $record = mssql_fetch_array($cs_type) ) {
$records[] = $record;
}
}

this would get rid of the empty array entry.

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-19 Thread Dan Shirah
FANTASIC!

Worked like a champ!

Thank you to everyone.


On 11/19/07, Philip Thompson <[EMAIL PROTECTED]> wrote:
>
> On Nov 19, 2007 12:16 PM, Dan Shirah <[EMAIL PROTECTED]> wrote:
>
> > Jim,
> >
> > I used your suggestion and modified it a little bit.  All of the names
> are
> > pulled from the database, but for some reason once it has pulled all the
> > names form each query it is adding an empty result to the end.
> >
> > So when I do a echo $row['first_name']." ".$row['last_name']."\n";
> > it
> > is returning something like this:
> >
> > John Smith
> > Bob Smith
> >
> > Jane Smith
> > Robert Smith
> >
> > The gap between the names contains a single space " ".  I tried to trim
> > the
> > results but cannot get rid of it.
> >
> > Any ideas?
>
>
>
> Run a test condition before displaying:
>
>  $first = trim ($row['first_name']);
> $last = trim ($row['last_name']);
>
> if (!empty ($first) && !empty ($last))
>echo "$first $last\n";
> ...
> ?>
>
> HTH
> ~Philip
>


RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
No parse error, but still "nobody".

Here is my new code.

How do you tell the difference between the need for '' and ""?

Working "kind of" code

'.$eol;
$headers = 'bcc: [EMAIL PROTECTED]';
$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
$headers .= 'X-Mailer: PHP '.phpversion().$eol;
$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
$headers .= 'Content-Transfer-Encoding: 8bit';
$subject = 'Your free book!';
$body = 'http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
ME"  Here is your FREE autopilot book';
mail($email, $subject, $body, $headers);
?>



-Original Message-
From: Brad [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 1:26 PM
To: 'Jim Lucas'
Cc: php-general@lists.php.net
Subject: RE: [PHP] two small issues with php mail

$headers = 'bcc: [EMAIL PROTECTED]';

Works but corrupts the "from" portion and changes it to "nobody"
Which I think goes back too the smtp portion.
Let me try that!

Thank you!

-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 12:49 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> Implementing Bcc and smtp.
> 
>  
> 
> #1 email is only being sent to a few recipients.
> 
> I need to implement 
> 
> $smtp = ‘localhost’; 

if the previous line is a cut/paste, it looks like you are using M$ special
quotes or back tics maybe.

make sure they are single or double quotes and you should be good to go.

> 
> Somewhere, but I keep getting parse errors?
> 
>  
> 
> #2 trying to do a Bcc but that gives me parse errors as well
> 
> It should be as easy as?
> 
> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
> 
>  
> 
> Here is the working code, but if I implement the above needed inserts
> anywhere, I get a big ‘ol fat parse error
> 
>  
> 
> Any assistance would be truly appreciated.
> 
> An explanation of why would really help since this is for a school
project.
> 
>  
> 
> Working code as is:
> 
>  
> 
>  
> $email = $_REQUEST['email'];
> 
> $fromaddress = '[EMAIL PROTECTED]';
> 
> $fromname = 'Zone of success Club'; $eol = "\r\n";
> 
> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> // $headers = 'bcc: '[EMAIL PROTECTED]';
You have an extra single quote in the previous line.  Hence your parse
error.

> 
> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> 
> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> 
> $headers .= 'Content-Transfer-Encoding: 8bit';
> 
> $subject = 'Your free book!';
> 
> $body = ' href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
> ME"  Here is your FREE autopilot book';
> 
> mail($email, $subject, $body, $headers);
> 
> ?>
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
11/18/2007
> 5:15 PM
>  
> 


-- 
Jim Lucas

"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
 by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-19 Thread Philip Thompson
On Nov 19, 2007 12:16 PM, Dan Shirah <[EMAIL PROTECTED]> wrote:

> Jim,
>
> I used your suggestion and modified it a little bit.  All of the names are
> pulled from the database, but for some reason once it has pulled all the
> names form each query it is adding an empty result to the end.
>
> So when I do a echo $row['first_name']." ".$row['last_name']."\n";
> it
> is returning something like this:
>
> John Smith
> Bob Smith
>
> Jane Smith
> Robert Smith
>
> The gap between the names contains a single space " ".  I tried to trim
> the
> results but cannot get rid of it.
>
> Any ideas?



Run a test condition before displaying:

\n";
...
?>

HTH
~Philip


RE: [PHP] two small issues with php mail

2007-11-19 Thread Brad
$headers = 'bcc: [EMAIL PROTECTED]';

Works but corrupts the "from" portion and changes it to "nobody"
Which I think goes back too the smtp portion.
Let me try that!

Thank you!

-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 19, 2007 12:49 PM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] two small issues with php mail

Brad wrote:
> Implementing Bcc and smtp.
> 
>  
> 
> #1 email is only being sent to a few recipients.
> 
> I need to implement 
> 
> $smtp = ‘localhost’; 

if the previous line is a cut/paste, it looks like you are using M$ special
quotes or back tics maybe.

make sure they are single or double quotes and you should be good to go.

> 
> Somewhere, but I keep getting parse errors?
> 
>  
> 
> #2 trying to do a Bcc but that gives me parse errors as well
> 
> It should be as easy as?
> 
> $Bcc [EMAIL PROTECTED]; $eol = "\r\n";
> 
>  
> 
> Here is the working code, but if I implement the above needed inserts
> anywhere, I get a big ‘ol fat parse error
> 
>  
> 
> Any assistance would be truly appreciated.
> 
> An explanation of why would really help since this is for a school
project.
> 
>  
> 
> Working code as is:
> 
>  
> 
>  
> $email = $_REQUEST['email'];
> 
> $fromaddress = '[EMAIL PROTECTED]';
> 
> $fromname = 'Zone of success Club'; $eol = "\r\n";
> 
> $headers  = 'From: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> // $headers = 'bcc: '[EMAIL PROTECTED]';
You have an extra single quote in the previous line.  Hence your parse
error.

> 
> $headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;
> 
> $headers .= 'X-Mailer: PHP '.phpversion().$eol;
> 
> $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;
> 
> $headers .= 'Content-Transfer-Encoding: 8bit';
> 
> $subject = 'Your free book!';
> 
> $body = ' href="http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
> ME"  Here is your FREE autopilot book';
> 
> mail($email, $subject, $body, $headers);
> 
> ?>
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
11/18/2007
> 5:15 PM
>  
> 


-- 
Jim Lucas

"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
 by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Loop issues

2007-11-19 Thread Dan Shirah
Jim,

I used your suggestion and modified it a little bit.  All of the names are
pulled from the database, but for some reason once it has pulled all the
names form each query it is adding an empty result to the end.

So when I do a echo $row['first_name']." ".$row['last_name']."\n"; it
is returning something like this:

John Smith
Bob Smith

Jane Smith
Robert Smith

The gap between the names contains a single space " ".  I tried to trim the
results but cannot get rid of it.

Any ideas?


On 11/16/07, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> Dan Shirah wrote:
> > Hello all,
> >
> > I am having trouble trying to figure out how I should compose this loop
> to
> > give me ALL the results I want.
> >
> > Below are my queries.  I am querying two different databases to pull in
> > records that match the requested $id. I am then putting the result into
> a
> > $variable and also counting the number of rows returned. These queries
> work
> > just fine and pull in all of the data that I want...and by viewing the
> > print_r() I have verified that all the information was returned.
> >
> >  > $get_cs = "SELECT DISTINCT
> >   request_type, card_id, first_name, last_name
> >FROM
> >  support_payment_request
> >WHERE
> >  card_id = '$id'";
> > $cs_type = mssql_query($get_cs) or die(mssql_get_last_message());
> > $cs_num = mssql_num_rows($cs_type);
> >
> > if($cs_num > 0) {
> >while ($cs_row = mssql_fetch_array($cs_type)) {
> > $cs_type2 = $cs_row['request_type'];
> > $cs_first = $cs_row['first_name'];
> > $cs_last = $cs_row['last_name'];
> > $cs_name = $cs_first." ".$cs_last;
> >  print_r ($cs_row);
> > }
> >}
> > $get_tr = "SELECT DISTINCT
> >   request_type, card_id, first_name, last_name
> >FROM
> >  payment_request
> >WHERE
> >  card_id = '$id'";
> > $tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
> > $tr_num = mssql_num_rows($tr_type);
> >
> > if($tr_num > 0) {
> >while ($tr_row = mssql_fetch_array($tr_type)) {
> > $tr_type2 = $tr_row['request_type'];
> > $tr_first = $tr_row['first_name'];
> > $tr_last = $tr_row['last_name'];
> > $tr_name = $tr_first." ".$tr_last;
> >  print_r ($tr_row);
> > }
> >}
> > $num_total = $cs_num + $tr_num;
> > $multiple = "MULTIPLE";
> > ?>
> >
> > Here is where I am running into problems. First I am writing an if ()
> > statement to see if there were any rows returned from the queries.  If a
> row
> > was returned I am echoing out the data that was assigned to the
> different
> > variables above.  This works...kind of...
> >
> >   > align='center'> href='javascript:editRecord($id)'>$id";
> > ?>
> >  > align='center'> 0) { echo "$cs_name\n"; }
> >   if ($tr_num > 0) { echo "$tr_name\n";
> > } ?>
> >  > align='center'>
> >  > align='center'> 1) { echo $multiple; }
> >   if ($num_total == 1 && $cs_num == 1) { echo
> $cs_type2;
> > }
> >   if ($num_total == 1 && $tr_num == 1) { echo
> $tr_type2;
> > } ?>
> >  > align='center'>
> >
> > If a single row was returned by the query, all of the information echos
> out
> > just fine.  BUT, If one of the queries returned more than one row, the
> > information that is echo'd out is only the LAST row's information. For
> > example, the result of my $cs_type query returns 3 names: John Smith,
> Jane
> > Smith, James Smith.  The only information being populated to my table is
> > James Smith.  Because of this I think I need to put a loop where the
> echo
> > "$cs_name\n"; is so it will loop through all of the returned names
> and
> > show them all.  I have tried a for, foreach and while loop but I just
> can't
> > seem to wrap my fingers around the right way to use it.
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Dan
> >
> What about something like this?
>
> 
> $records = array();
>
> $SQL = "SELECT  DISTINCT request_type,
>card_id,
>first_name,
>last_name
>FROMsupport_payment_request
>WHERE   card_id = '$id'";
>
> $cs_type = mssql_query($SQL) or die(mssql_get_last_message());
>
> if ( $cs_type ) {
>while ($records[] = $record = mssql_fetch_array($cs_type)) {
>print_r ($record);
>}
> }
>
> $SQL = "SELECT  DISTINCT request_type,
>card_id,
>first_name,
>last_name
>FROMpayment_request
>WHERE   card_id = '$id'";
> $tr_type = mssql_query($get_tr) or die(mssql_get_last_message());
>
> if ( $tr_type ) {
>while ( $records[] = $record = mssql_fetch_array($tr_type)) {
>print_r ($record);
>}
> }
>
> if ( count($records) ) {
>echo '';
>
>foreach ( $records AS $id => $row ) {
>
> echo <<
> class='tblcell'> href='javascript:editRecord({$row['card_id']})'>{$row['card_id']}
> 

Re: [PHP] two small issues with php mail

2007-11-19 Thread Jim Lucas

Brad wrote:

Implementing Bcc and smtp.

 


#1 email is only being sent to a few recipients.

I need to implement 

$smtp = ‘localhost’; 


if the previous line is a cut/paste, it looks like you are using M$ special 
quotes or back tics maybe.

make sure they are single or double quotes and you should be good to go.



Somewhere, but I keep getting parse errors?

 


#2 trying to do a Bcc but that gives me parse errors as well

It should be as easy as?

$Bcc [EMAIL PROTECTED]; $eol = "\r\n";

 


Here is the working code, but if I implement the above needed inserts
anywhere, I get a big ‘ol fat parse error

 


Any assistance would be truly appreciated.

An explanation of why would really help since this is for a school project.

 


Working code as is:

 


'.$eol;

// $headers = 'bcc: '[EMAIL PROTECTED]';

You have an extra single quote in the previous line.  Hence your parse error.



$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = 'http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
ME"  Here is your FREE autopilot book';

mail($email, $subject, $body, $headers);

?>


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007

5:15 PM
 




--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
   and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] two small issues with php mail

2007-11-19 Thread Brad
Implementing Bcc and smtp.

 

#1 email is only being sent to a few recipients.

I need to implement 

$smtp = ‘localhost’; 

Somewhere, but I keep getting parse errors?

 

#2 trying to do a Bcc but that gives me parse errors as well

It should be as easy as?

$Bcc [EMAIL PROTECTED]; $eol = "\r\n";

 

Here is the working code, but if I implement the above needed inserts
anywhere, I get a big ‘ol fat parse error

 

Any assistance would be truly appreciated.

An explanation of why would really help since this is for a school project.

 

Working code as is:

 

'.$eol;

// $headers = 'bcc: '[EMAIL PROTECTED]';

$headers .= 'Reply-To: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'Return-Path: '.$fromname.' <'.$fromaddress.'>'.$eol;

$headers .= 'X-Mailer: PHP '.phpversion().$eol;

$headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol;

$headers .= 'Content-Transfer-Encoding: 8bit';

$subject = 'Your free book!';

$body = 'http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf";>"Click
ME"  Here is your FREE autopilot book';

mail($email, $subject, $body, $headers);

?>


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
5:15 PM
 


Re: [PHP] bank query and curl

2007-11-19 Thread Philip Thompson
On Nov 19, 2007 3:46 AM, Stut <[EMAIL PROTECTED]> wrote:

> "Admin": Please don't reply directly to me. If you want to say something
> that you don't want to share with the group, don't bother.
>
> I did start replying to this email, but decided it wasn't worth it.
> Anyone who uses language like this does not deserve a response, but it
> made me chuckle so I thought I'd share it...
>
> [EMAIL PROTECTED] wrote:
> > Before you open your SMART MOUTH about me again, find out who I am first
> > smart ass.
> > I am a level 3 IASO(Information Assurance Security Officer) Certified
> > software Engineer. I work for the D.O.D. and if I have to spell it out
> for
> > you smart one it is, the "Department of Defense".
> >
> > It is IDIOT's like you who no clue of what that MX record is tied to,
> and
> > the past attempts on banking systems tied to that IP address range whom
> rant
> > off like they know something, when you're an idiot in all sense of the
> word.
> > Yet you spout off like your just a know it all.
> >
> > It amazes me you have not choked to death on a sandwich (lacking to
> brain
> > power to comprehend the chewing process).


I love this line. Is it copyrighted?

~Philip


Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Wolf
Depending on how you are doing the session/image you could do the following:



Then save that as a cron job that runs every minute or every 5 and (depending 
on site needs) and you should be good to go.

Wolf
 Fernando <[EMAIL PROTECTED]> wrote: 
> Hello,
> 
> I made a image validation code, wich generate a image every time the 
> user enters a page.
> 
> The name of the image uses the session id, and I save it in a temporary 
> directory.
> 
> When the user close the browser (or leave the site) I would have to 
> delete the image (or else I will start to have many garbage images in the 
> temp directory).
> 
> Is there any way to do that? From PHP?
> 
> Fernando Bonafé
> Artista Plástico
> (19) 81184401
> (19) 32322239
> [EMAIL PROTECTED]
> _
> www.opapagaiorinoceronte.net 
> 
> -- 
> 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



Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Stut

Richard Heyes wrote:
   I made a image validation code, wich generate a image every time 
the user enters a page.


   The name of the image uses the session id, and I save it in a 
temporary directory.


   When the user close the browser (or leave the site) I would have to 
delete the image (or else I will start to have many garbage images in 
the temp directory).


   Is there any way to do that? From PHP?


http://uk.php.net/manual/en/function.register-shutdown-function.php


That would work for the end of a request, not the end of a session.

The way I've done this in the past is to implement my own session 
handler and have that clean up temporary files when the session ends. 
However, there are less drastic ways to do it such as having a cron job 
simply delete images from the temp directory if they're older than a few 
days. Obviously this is less than ideal if the site traffic is high.


-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] freeing resourses after the end of the session

2007-11-19 Thread Richard Heyes
   I made a image validation code, wich generate a image every time the 
user enters a page.


   The name of the image uses the session id, and I save it in a 
temporary directory.


   When the user close the browser (or leave the site) I would have to 
delete the image (or else I will start to have many garbage images in 
the temp directory).


   Is there any way to do that? From PHP?


http://uk.php.net/manual/en/function.register-shutdown-function.php

--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk

Knowledge Base and HelpDesk software
that can cut the cost of online support

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] bank query and curl --- not important, skip it

2007-11-19 Thread Ronald Wiplinger
Stut wrote:
> "Admin": Please don't reply directly to me. If you want to say
> something that you don't want to share with the group, don't bother.
>
> I did start replying to this email, but decided it wasn't worth it.
> Anyone who uses language like this does not deserve a response, but it
> made me chuckle so I thought I'd share it...
>
> [EMAIL PROTECTED] wrote:
>

I deleted the words but would replace it with:

Often it is not so important the contents of the message, but how to
pack it.
With the (deleted) words I believe future employers do not care which
certificate he has, but if you can work with him or not.

or short: Try to keep your job, maybe there is no other left for you.


bye

Ronald

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Kiketom
Ok, no problem
;)

"Jochem Maas" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
> Kiketom wrote:
>> Then if i make this
>>
>> $foo = new foo();
>> $foo->ID = 12;
>>
>> what is happening??
>> if __Set and __Get only works if a member isn't exits,
>>
>> How come I do this?
>> $foo->ID = 12;
>> if the member $ID is private???
>>
>> I thought that this was possible because i have declared the two method 
>> set
>> and get :P
>>
>
> ignore my previous reply - it seems it was completely wrong. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] freeing resourses after the end of the session

2007-11-19 Thread Fernando

Hello,

   I made a image validation code, wich generate a image every time the 
user enters a page.


   The name of the image uses the session id, and I save it in a temporary 
directory.


   When the user close the browser (or leave the site) I would have to 
delete the image (or else I will start to have many garbage images in the 
temp directory).


   Is there any way to do that? From PHP?

Fernando Bonafé
Artista Plástico
(19) 81184401
(19) 32322239
[EMAIL PROTECTED]
_
www.opapagaiorinoceronte.net 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote:
> Then if i make this
> 
> $foo = new foo();
> $foo->ID = 12;
> 
> what is happening??
> if __Set and __Get only works if a member isn't exits,
> 
> How come I do this?
> $foo->ID = 12;
> if the member $ID is private???
> 
> I thought that this was possible because i have declared the two method set 
> and get :P
> 

ignore my previous reply - it seems it was completely wrong.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Kiketom
Then if i make this

$foo = new foo();
$foo->ID = 12;

what is happening??
if __Set and __Get only works if a member isn't exits,

How come I do this?
$foo->ID = 12;
if the member $ID is private???

I thought that this was possible because i have declared the two method set 
and get :P


"Jochem Maas" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
> Kiketom wrote:
>> Hi all.
>> Yesterday i have looking for the overloading members
>>
>> Member overloading
>> void __set ( string name, mixed value )
>> mixed __get ( string name )
>>
>> As an example i put this code:
>>
>> class foo
>> {
>> private $ID;
>> private $Name;
>> private $LastName;
>
> when you declare these three as 'real' members, __get() and __set()
> will no longer be called - they are only called for non-existent members.
>
> so instead dump your data in an array or something
>
> private $data  = array(
> 'ID' => null,
> 'Name' => null,
> 'LastName' => null,
> );
>
>>
>> private function __get($var)
>> {
>> return $var;
>
> there is no such thing as 'implicit class scope' $var will not refer to
> $this->var as you seem to expect.
>
> return isset($this->data[$var]) ? $this->data[$var] : null;
>
>> }
>>
>> private function __set($var,$value)
>> {
>> $var = $value;
>
> same thing here.
>
>   if (array_key_exists($var, $this->data)
> $this->data[$var] = $value;
>
>> }
>> }
>> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Jochem Maas
Kiketom wrote:
> Hi all.
> Yesterday i have looking for the overloading members
> 
> Member overloading
> void __set ( string name, mixed value )
> mixed __get ( string name )
> 
> As an example i put this code:
> 
> class foo
> {
> private $ID;
> private $Name;
> private $LastName;

when you declare these three as 'real' members, __get() and __set()
will no longer be called - they are only called for non-existent members.

so instead dump your data in an array or something

private $data  = array(
'ID' => null,
'Name' => null,
'LastName' => null,
);

> 
> private function __get($var)
> {
> return $var;

there is no such thing as 'implicit class scope' $var will not refer to
$this->var as you seem to expect.

return isset($this->data[$var]) ? $this->data[$var] : null;

> }
> 
> private function __set($var,$value)
> {
> $var = $value;

same thing here.

  if (array_key_exists($var, $this->data)
$this->data[$var] = $value;

> }
> }
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Kiketom
Ok, this is a great solution
Thanks ;)

"Robert Cummings" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
> On Mon, 2007-11-19 at 11:25 +0100, Kiketom wrote:
>> Hi all.
>> Yesterday i have looking for the overloading members
>>
>> Member overloading
>> void __set ( string name, mixed value )
>> mixed __get ( string name )
>>
>> As an example i put this code:
>>
>> class foo
>> {
>> private $ID;
>> private $Name;
>> private $LastName;
>>
>> private function __get($var)
>> {
>> return $var;
>> }
>>
>> private function __set($var,$value)
>> {
>> $var = $value;
>> }
>> }
>>
>>
>> $foo = new foo();
>> $foo->ID = 1;
>> $foo->Name = "Henry";
>> $foo->LastName = "Ford",
>> 
>>
>> that's horrible!!!
>>
>> And if i want to validate that ID > 0??
>>
>> i have to put this validation in the function __set for each property??
>> private function __set($var,$value)
>> {
>> if ($var = 'ID')
>> {
>> //validate that ID is > 0
>> }
>> $var = $value;
>> }
>>
>>
>> Not exists a better method to manage the properties in a class?
>>
>> Like in C#
>>
>> private int _ID;
>>
>> public int ID
>> {
>> get { return _ID;}
>> set
>> {
>> if (value > 0)
>> {
>> _ID = value;
>> }
>>  else
>>  {
>>  //Exception
>>  }
>> }
>> }
>
> Well, if you really want to, you can do the following:
>
> 
> class foo
> {
>private $ID;
>private $Name;
>private $LastName;
>
>private function __get( $var )
>{
>if( method_exists( $this, '___get_'.$var ) )
>{
>return $this->{'___get_'.$var}();
>}
>else
>{
>return $this->{$var};
>}
>}
>
>private function __set( $var, $value )
>{
>if( method_exists( $this, '___get_'.$var ) )
>{
>return $this->{'___set_'.$var}( $value );
>}
>else
>{
>return ($this->{$var} = $value);
>}
>}
>
>private function ___get_ID()
>{
>}
>
>private function ___set_ID( $value )
>{
>}
> }
>
> ?>
>
> But I wouldn't.
>
> Cheers,
> Rob.
> -- 
> ...
> SwarmBuy.com - http://www.swarmbuy.com
>
>Leveraging the buying power of the masses!
> ... 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Robert Cummings
On Mon, 2007-11-19 at 06:27 -0500, Robert Cummings wrote:
> On Mon, 2007-11-19 at 11:25 +0100, Kiketom wrote:
> > Hi all.
> > Yesterday i have looking for the overloading members
> > 
> > Member overloading
> > void __set ( string name, mixed value )
> > mixed __get ( string name )
> > 
> > As an example i put this code:
> > 
> > class foo
> > {
> > private $ID;
> > private $Name;
> > private $LastName;
> > 
> > private function __get($var)
> > {
> > return $var;
> > }
> > 
> > private function __set($var,$value)
> > {
> > $var = $value;
> > }
> > }
> > 
> > 
> > $foo = new foo();
> > $foo->ID = 1;
> > $foo->Name = "Henry";
> > $foo->LastName = "Ford",
> > 
> > 
> > that's horrible!!!
> > 
> > And if i want to validate that ID > 0??
> > 
> > i have to put this validation in the function __set for each property??
> > private function __set($var,$value)
> > {
> > if ($var = 'ID')
> > {
> > //validate that ID is > 0
> > }
> > $var = $value;
> > }
> > 
> > 
> > Not exists a better method to manage the properties in a class?

Why don't you use a switch btw?



Cheers,
Rob.
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] overloading members. aghhh!!!

2007-11-19 Thread Robert Cummings
On Mon, 2007-11-19 at 11:25 +0100, Kiketom wrote:
> Hi all.
> Yesterday i have looking for the overloading members
> 
> Member overloading
> void __set ( string name, mixed value )
> mixed __get ( string name )
> 
> As an example i put this code:
> 
> class foo
> {
> private $ID;
> private $Name;
> private $LastName;
> 
> private function __get($var)
> {
> return $var;
> }
> 
> private function __set($var,$value)
> {
> $var = $value;
> }
> }
> 
> 
> $foo = new foo();
> $foo->ID = 1;
> $foo->Name = "Henry";
> $foo->LastName = "Ford",
> 
> 
> that's horrible!!!
> 
> And if i want to validate that ID > 0??
> 
> i have to put this validation in the function __set for each property??
> private function __set($var,$value)
> {
> if ($var = 'ID')
> {
> //validate that ID is > 0
> }
> $var = $value;
> }
> 
> 
> Not exists a better method to manage the properties in a class?
> 
> Like in C#
> 
> private int _ID;
> 
> public int ID
> {
> get { return _ID;}
> set
> {
> if (value > 0)
> {
> _ID = value;
> }
>  else
>  {
>  //Exception
>  }
> }
> }

Well, if you really want to, you can do the following:

{'___get_'.$var}();
}
else
{
return $this->{$var};
}
}

private function __set( $var, $value )
{
if( method_exists( $this, '___get_'.$var ) )
{
return $this->{'___set_'.$var}( $value );
}
else
{
return ($this->{$var} = $value);
}
}

private function ___get_ID()
{
}

private function ___set_ID( $value )
{
}
}

?>

But I wouldn't.

Cheers,
Rob.
-- 
...
SwarmBuy.com - http://www.swarmbuy.com

Leveraging the buying power of the masses!
...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] overloading members. aghhh!!!

2007-11-19 Thread Kiketom
Hi all.
Yesterday i have looking for the overloading members

Member overloading
void __set ( string name, mixed value )
mixed __get ( string name )

As an example i put this code:

class foo
{
private $ID;
private $Name;
private $LastName;

private function __get($var)
{
return $var;
}

private function __set($var,$value)
{
$var = $value;
}
}


$foo = new foo();
$foo->ID = 1;
$foo->Name = "Henry";
$foo->LastName = "Ford",


that's horrible!!!

And if i want to validate that ID > 0??

i have to put this validation in the function __set for each property??
private function __set($var,$value)
{
if ($var = 'ID')
{
//validate that ID is > 0
}
$var = $value;
}


Not exists a better method to manage the properties in a class?

Like in C#

private int _ID;

public int ID
{
get { return _ID;}
set
{
if (value > 0)
{
_ID = value;
}
 else
 {
 //Exception
 }
}
}

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] bank query and curl

2007-11-19 Thread Stut
"Admin": Please don't reply directly to me. If you want to say something 
that you don't want to share with the group, don't bother.


I did start replying to this email, but decided it wasn't worth it. 
Anyone who uses language like this does not deserve a response, but it 
made me chuckle so I thought I'd share it...


[EMAIL PROTECTED] wrote:

Before you open your SMART MOUTH about me again, find out who I am first
smart ass.
I am a level 3 IASO(Information Assurance Security Officer) Certified
software Engineer. I work for the D.O.D. and if I have to spell it out for
you smart one it is, the "Department of Defense".

It is IDIOT's like you who no clue of what that MX record is tied to, and
the past attempts on banking systems tied to that IP address range whom rant
off like they know something, when you're an idiot in all sense of the word.
Yet you spout off like your just a know it all. 


It amazes me you have not choked to death on a sandwich (lacking to brain
power to comprehend the chewing process).

Look moron before you pout around like you actually know something, be DAMN
sure you are so not so fucking stupid that your brain does not over load
your ass, like you just did. 


This might be hard for someone in your capacity but   R E A D B E L O W
Brain child!

**Just released Security alert


IT security services provider ** says from September through October, it
blocked anywhere from 10,000 to 20,000 SQL Injection attacks per day. But as
of November that number jumped from 10,000 to 40,000 to 80,000 per day.
SQL Injection is a type of security exploit in which the attacker adds
structured query language (SQL) code to a Web form input box to gain access
to a form's resources or to make changes to data. Using this technique,
hackers can determine the structure and location of key databases and can
download the database or compromise the database server. 
** says the majority of the attacks are coming from outside the US in

the Taiwan location.
SQL injection attacks include the CardSystems security breach last year,
where hackers stole 263,000 customer credit card numbers and exposed 40
million more.

### SysWatch ***   
Processing Initiated: Sun Nov 17 04:02:01 2007
- SSHD Begin 
Failed logins from these:
   admin/password from 59.124.45.124: 502 Time(s)
   root/password from 59.124.45.124: 234 Time(s)
   guest/password from 59.124.45.124: 19 Time(s)

Illegal users from these:
   admin/none from 59.124.45.124: 1 Time(s)
   root/none from 59.124.45.124: 3 Time(s)
   guest/password from 59.124.45.124: 2 Time(s)
-- SSHD End -
## SysWatch End  #






-Stut

--
http://stut.net/


-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 17, 2007 5:15 PM

To: [EMAIL PROTECTED]
Cc: 'Ronald Wiplinger'; 'PHP General list'
Subject: Re: [PHP] bank query and curl

[EMAIL PROTECTED] wrote:
WHY! Would you even want to pull that data first off? 
It would be out dated as of the next transaction anyway.

Secondly if you can curl the data from the server, and get your account
information! I suggest you change banks.


With that attitude you'll end up keeping your money under your bed. 
Anything my browser can do curl can do.


Bad decision I think to make this attempt. 


Why? If Ronald decides to access *his* account using a method other than 
a browser, what is he doing wrong? The only downside to it is if he's 
storing his authentication credentials somewhere so it can be an 
automated process. Aside from that possibility I don't see the bad here.



You can bet I will be watching your networks for an attempt on
authentication failures.
Because that request does not sound RIGHT to me.

inetnum: 59.124.0.0 - 59.127.255.255
netname: HINET-NET
country: TW
descr: CHTD, Chunghwa Telecom Co.,Ltd.
descr: Data-Bldg.6F, No.21, Sec.21, Hsin-Yi Rd.
descr: Taipei Taiwan 100


Interland, Inc. MAXIM-NETBLK-1 (NET-216-65-0-0-1) 
216.65.0.0 - 216.65.127.255
Poke Internet Services MAX-CUSTNET-348 (NET-216-65-86-0-1) 
216.65.86.0 - 216.65.86.255


Wow. Look everyone, he knows how to look up the owner of an IP address. 
Phear his mad sysadmin skillz!


Seriously, I highly doubt Ronald is going to try anything against your 
systems. Just curious about something... what would you do if he did try 
something? Call your mother and have a little cry?



-Original Message-
From: Ronald Wiplinger [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 16, 2007 11:38 PM

To: PHP General list
Subject: [PHP] bank query and curl

I have a bank account and w

Re: [PHP] bank query and curl

2007-11-19 Thread Stut

Zoltán Németh wrote:

2007. 11. 17, szombat keltezéssel 23.15-kor Stut ezt írta:

[EMAIL PROTECTED] wrote:
WHY! Would you even want to pull that data first off? 
It would be out dated as of the next transaction anyway.

Secondly if you can curl the data from the server, and get your account
information! I suggest you change banks.
With that attitude you'll end up keeping your money under your bed. 
Anything my browser can do curl can do.


hmm, my bank won't let me access my account with only a browser. it uses
some additional authentication, either by sms or by card reader.


Maybe so, but that doesn't alter the fact that anything my browser can 
do curl can do. An external source like a card reader or code by SMS 
would prevent completely automating the process, but it doesn't stop it 
being done with curl.


-Stut

--
http://stut.net/

Bad decision I think to make this attempt. 
Why? If Ronald decides to access *his* account using a method other than 
a browser, what is he doing wrong? The only downside to it is if he's 
storing his authentication credentials somewhere so it can be an 
automated process. Aside from that possibility I don't see the bad here.



You can bet I will be watching your networks for an attempt on
authentication failures.
Because that request does not sound RIGHT to me.

inetnum: 59.124.0.0 - 59.127.255.255
netname: HINET-NET
country: TW
descr: CHTD, Chunghwa Telecom Co.,Ltd.
descr: Data-Bldg.6F, No.21, Sec.21, Hsin-Yi Rd.
descr: Taipei Taiwan 100


Interland, Inc. MAXIM-NETBLK-1 (NET-216-65-0-0-1) 
216.65.0.0 - 216.65.127.255
Poke Internet Services MAX-CUSTNET-348 (NET-216-65-86-0-1) 
216.65.86.0 - 216.65.86.255
Wow. Look everyone, he knows how to look up the owner of an IP address. 
Phear his mad sysadmin skillz!


Seriously, I highly doubt Ronald is going to try anything against your 
systems. Just curious about something... what would you do if he did try 
something? Call your mother and have a little cry?



-Original Message-
From: Ronald Wiplinger [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 16, 2007 11:38 PM

To: PHP General list
Subject: [PHP] bank query and curl

I have a bank account and would like to query the last transactions.

I can do that now via web and think that I can convert this procedure to
a list of curl requests and finally put the result into a database on my
server.
Fortunately this bank account does not allow transactions, just viewing
the account.

Is there a guide available how to start this project?
I would suggest the curl documentation. In order to duplicate what a 
browser does you basically just need to make sure you persist cookies 
between requests. Depending on what the site you're accessing does it 
may not be particularly trivial to do this. You may end up needing to 
parse each page that's returned to get the right URL to use for the next 
request, but it shouldn't get any more complicated than that.


As I mentioned above I would strongly recommend that you do not store 
your authentication credentials anywhere. If you need this to be an 
automated system don't bother - it's not worth the risk.


Oh, and don't underestimate the damage that can be caused by someone 
gaining access to this account. Just because you can't carry out 
transactions through the site doesn't mean the information it gives you 
access to can't be used for evil purposes.


One last thing... you may find yourself getting blocked from the banks 
site if you make too many failed requests. You may want to pick another 
site while you learn how curl works.


-Stut

--
http://stut.net/





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] submitting forms with ajax

2007-11-19 Thread samantha_o

Thanks a lot. Really appreciate it. I will try to apply it.


quickshiftin wrote:
> 
> json is just a terse way to create objects anonymously as well as other
> data
> structures in javascript.
> http://json.org/
> 
> to build a json response with html
> essentially all you need to do is create a javascript array in php and put
> the html
> you want for the next page in that.  then you use the eval() function in
> javascript
> to 'incarnate' the javascript array (which contains the html).  once youve
> done that
> you can put the html into the dom wherever you like.  typically you will
> replace some
> existing dom content w/ the new html.
> 
> so as an example; lets say on the php side of things you have your html;
> for
> the sake
> of brevity lets assume its in a variable called *$html*.  you will need to
> encode this for
> transmission (so the javascript interpreter doesnt blow up when it tries
> to
> 'incarnate' the
> string as literal javascript code).  if youre using php5 this is as simple
> as
> 
> $jsonResponse = json_encode(utf8_encode('var newHtml = [' . $html . ']'));
> 
> notice the braces on either side of the html; here were creating a
> javascript array containing
> our html string.  if you have multiple html segments youd like to stitch
> into different parts of the
> dom, simply delimit them with commas, such as
> 
> $jsonResponse = json_encode(utf8_encode('var newHtml = [' . $html . ', ' .
> $html1 . ', ' . $html2 . ']'));
> and so on.
> 
> then you will send that to the browser, where your ajax handler will
> intercept it.
> echo $jsonReponse;
> 
> on the javascript side all you need to do is run this output from the php
> through the javascript interpreter.
> jquery will hand you back the results packed up somehow, you will have to
> read up on how it will hand this
> to you (its an XMLHttpRequest object under the hood); but lets say its in
> a
> variable, *responseText*.
> the javascript to incarnate your string is:
> 
> eval('('+responseText+')');
> 
> now all the strings of html you put in the array on the server side are
> available to your javascript as indexes of
> the *newHtml* array.
> 
> so lets say you have a section of the dom in a div tag, with id, *
> dynamicContentSection*; using traditional dhtml
> techniques you would do something like this to get your new html in place
> 
> document.getElementById('dynamicContentSection').innerHtml = newHtml[0];
> 
> thats about it.  there are plenty of places to make mistakes though :)
> and there alternatives to the methods ive suggested, of course.
> 
> take a look a firebug (firefox plugin) and jslint (javascript syntax
> checker)
> theyre great javascript debugging tools.
> 
> -nathan
> 
> 
> On Nov 18, 2007 8:25 PM, samantha_o <[EMAIL PROTECTED]> wrote:
> 
>>
>> I did not try using json because i am very new in this field and dont
>> know
>> much about it. Can you give me some examples about it? Thanks for
>> helping.
>>
>>
>> Shiplu wrote:
>> >
>> > Why dont you use json as server response? Then manipulate it by own
>> > javascript. You can use jquery $.getJSON function to do the ajax part
>> > for you.
>> >
>> > On 11/16/07, Shiplu <[EMAIL PROTECTED]> wrote:
>> >> Why dont you use json as server response? Then manipulate it by own
>> >> javascript. You can use jquery $.getJSON function to do the ajax part
>> >> for you.
>> >>
>> >> On 11/16/07, samantha_o <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> > Hi,
>> >> >
>> >> > i would like to submit forms with ajax, using jquery and then load
>> the
>> >> next
>> >> > page. I had successfully do it with jquery and form plugin. however,
>> it
>> >> does
>> >> > not work whenever the server response consist of both HTMLs and
>> >> javascript
>> >> > together. Is it possible to make it works? I am new in all this. Can
>> >> anyone
>> >> > help me?
>> >> > --
>> >> > View this message in context:
>> >> >
>> >>
>> http://www.nabble.com/submitting-forms-with-ajax-tf4819530.html#a13788322
>> >> > Sent from the PHP - General mailing list archive at Nabble.com.
>> >> >
>> >> > --
>> >> > 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
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/submitting-forms-with-ajax-tf4819530.html#a13826338
>> Sent from the PHP - General mailing list archive at Nabble.com.
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/submitting-forms-with-ajax-tf4819530.html#a13830261
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] bank query and curl

2007-11-19 Thread Zoltán Németh
2007. 11. 17, szombat keltezéssel 23.15-kor Stut ezt írta:
> [EMAIL PROTECTED] wrote:
> > WHY! Would you even want to pull that data first off? 
> > It would be out dated as of the next transaction anyway.
> > Secondly if you can curl the data from the server, and get your account
> > information! I suggest you change banks.
> 
> With that attitude you'll end up keeping your money under your bed. 
> Anything my browser can do curl can do.

hmm, my bank won't let me access my account with only a browser. it uses
some additional authentication, either by sms or by card reader.

greets
Zoltán Németh

> 
> > Bad decision I think to make this attempt. 
> 
> Why? If Ronald decides to access *his* account using a method other than 
> a browser, what is he doing wrong? The only downside to it is if he's 
> storing his authentication credentials somewhere so it can be an 
> automated process. Aside from that possibility I don't see the bad here.
> 
> > You can bet I will be watching your networks for an attempt on
> > authentication failures.
> > Because that request does not sound RIGHT to me.
> > 
> > inetnum: 59.124.0.0 - 59.127.255.255
> > netname: HINET-NET
> > country: TW
> > descr: CHTD, Chunghwa Telecom Co.,Ltd.
> > descr: Data-Bldg.6F, No.21, Sec.21, Hsin-Yi Rd.
> > descr: Taipei Taiwan 100
> > 
> > 
> > Interland, Inc. MAXIM-NETBLK-1 (NET-216-65-0-0-1) 
> > 216.65.0.0 - 216.65.127.255
> > Poke Internet Services MAX-CUSTNET-348 (NET-216-65-86-0-1) 
> > 216.65.86.0 - 216.65.86.255
> 
> Wow. Look everyone, he knows how to look up the owner of an IP address. 
> Phear his mad sysadmin skillz!
> 
> Seriously, I highly doubt Ronald is going to try anything against your 
> systems. Just curious about something... what would you do if he did try 
> something? Call your mother and have a little cry?
> 
> > -Original Message-
> > From: Ronald Wiplinger [mailto:[EMAIL PROTECTED] 
> > Sent: Friday, November 16, 2007 11:38 PM
> > To: PHP General list
> > Subject: [PHP] bank query and curl
> > 
> > I have a bank account and would like to query the last transactions.
> > 
> > I can do that now via web and think that I can convert this procedure to
> > a list of curl requests and finally put the result into a database on my
> > server.
> > Fortunately this bank account does not allow transactions, just viewing
> > the account.
> > 
> > Is there a guide available how to start this project?
> 
> I would suggest the curl documentation. In order to duplicate what a 
> browser does you basically just need to make sure you persist cookies 
> between requests. Depending on what the site you're accessing does it 
> may not be particularly trivial to do this. You may end up needing to 
> parse each page that's returned to get the right URL to use for the next 
> request, but it shouldn't get any more complicated than that.
> 
> As I mentioned above I would strongly recommend that you do not store 
> your authentication credentials anywhere. If you need this to be an 
> automated system don't bother - it's not worth the risk.
> 
> Oh, and don't underestimate the damage that can be caused by someone 
> gaining access to this account. Just because you can't carry out 
> transactions through the site doesn't mean the information it gives you 
> access to can't be used for evil purposes.
> 
> One last thing... you may find yourself getting blocked from the banks 
> site if you make too many failed requests. You may want to pick another 
> site while you learn how curl works.
> 
> -Stut
> 
> -- 
> http://stut.net/
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php