We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

damarev on 12/14/07


Tagged


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

vali29
Nix


mailings


Published in: PHP 


  1. $content = str_replace(
  2. array( '%%PRENOM%%', '%%LIEN%%', '%%SERVER%%' ),
  3. array( $prenom, $lien, 'http://'.$_SERVER[ 'HTTP_HOST' ].'/' ),
  4. file_get_contents( 'email_ecard.txt' )
  5. );

Report this snippet 

You need to login to post a comment.