PHP Developers Network
http://forums.devnetwork.net/

Convert a php resource to a string
http://forums.devnetwork.net/viewtopic.php?f=1&t=147865
Page 1 of 1

Author:  sjuaq [ Sat Oct 06, 2018 10:38 am ]
Post subject:  Convert a php resource to a string


Author:  Christopher [ Sun Oct 07, 2018 9:35 pm ]
Post subject:  Re: Convert a php resource to a string

The $file variable is a resource returned by fopen(). The first parameter for mail() should be a string containing the email address of the recipient.

Are the email addresses in the file? If so, then read the line into a variable:
Syntax: [ Download ] [ Hide ]
  $email = fgets($file);
  mail($email, 'Thanks for joining!', Hi\nWe are glad to see you onboard\n\nPrivateloader);
 

Author:  sjuaq [ Thu Oct 11, 2018 1:56 pm ]
Post subject:  Re: Convert a php resource to a string

Thanks it really helped.

I have one other question how do i increase the time limitation of 30 seconds per execution in PHP?
I'm having problems running the whole script under 30 seconds.

Author:  Christopher [ Sat Oct 13, 2018 7:14 pm ]
Post subject:  Re: Convert a php resource to a string


Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/