Jump to content

A simple mailing list


Jet-Black

Recommended Posts

Hey,

 

I am trying to write some code for a simple mailing list, but my host doesn't allow fopen and I am having a lot of trouble understanding cUrl. Are there any other alternatives, or is there someone who could break down how to rewrite my code using cUrl.  ???

 

<?php

 

$email = $_POST['email'];

 

if( $email != '' ) echo $email;

 

$myIF = 'mailinglist.txt' or die("couldnt openfile");

 

$fh = fopen($myIF, "a");

 

$stringData = "$email\n";

 

fwrite($fh, $stringData);

 

fclose($fh);

 

 

?>

Link to comment
https://forums.phpfreaks.com/topic/88331-a-simple-mailing-list/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.