Jump to content


Photo

blacklists and include()


  • Please log in to reply
2 replies to this topic

#1 joesabido

joesabido
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 September 2006 - 07:54 AM

Hi guys.

If I want to use the mail() function I need to notify my provider so he will add the file that uses the mail() function to a white-list to prevent SPAM, which is good because I hate spam  ;D

Now, let's suppose that I have this file:

#file: functions.php
<?php
function mailThis($to, $message){
  mail($to,'Hello',$message);
}
?>

and I have this file

#file: someFile.php
<?php
include("functions.php");
mailThis("somemail@server.com","Hello there!");
?>

In this case, which file is the one that actually sends the email? The one that contains the function itself or the one that includes the first file?

Or in other words, which file should be added to the white list?

Thanks

#2 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 22 September 2006 - 08:01 AM

The one that includes the first file.

#3 joesabido

joesabido
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 22 September 2006 - 08:08 AM

Dang!  :(

Well, oh thanks, guru of PHP wisdom  ;D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users