Re: Tripple The Fun

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$reply = new DOMDocument("1.0","utf-8");
$reply->formatOutput = true;
$headers = $reply->createElement("headers");
$body = $reply->createElement("body");
$subject = $reply->createElement("Subject","Re:  Tripple The Fun");
$to = $reply->createElement("To","abdulazeez alugo <defatigue@xxxxxxxxxxx>");
$cc      = $reply->createElement("Cc:","php-general@xxxxxxxxxxxxx");
$headers->appendChild($subject);
$headers->appendChild($to);
$headers->appendChild($cc);

$reply->appendChild($headers);

$message = $reply->createTextNode("About halfway through this, I realized I should have just used phpMailer instead of DOMDocument");
$body->appendChild($message);
$reply->appendChild($body);

print $reply->saveXML();

abdulazeez alugo wrote:
Hello guys,

The list seems boring to me today so I've come up with an idea (you can call it a challenge). What if we all wrote to this thread in PHP codes. on't get the gist yet? well all it means is that, on this thread, all that we should see must be written in PHP codes and it must be meaningful and relevant to any discussion on ground. The challenge starts..... Now!

<?php

$alugo="Hello guys, anyone up for the challenge?";

print $alugo;

?>

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux