1 Востаннє редагувалося privateloader (06.10.2018 15:07:38)

Тема: Convert a php resource to a string

Hi,

I was creating this little program to help me out sending emails but there is a issue i can't solve.

Convert a resource to a string
$file returns Resource id #3 instead of the value of the string

Here is the code:

<?php
$file = fopen("emails.txt","r");

while(! feof($file))
  {
  mail($file, 'Thanks for joining!', Hi\nWe are glad to see you onboard\n\nPrivateloader);
  echo fgets($file). " - just received a email.<br>";
  }

fclose($file);
?>

Thanks
Privateloader

Buy Threads, Replies, Reactions, Signatures, etc - http://electrify.atspace.eu/shop/

2 Востаннє редагувалося leofun01 (07.10.2018 02:44:07)

Re: Convert a php resource to a string

Spam bot detected. Go away.
Тему переніс в кошик для сміття за не дотримання п.1.1 правил форуму.

Ок. Нехай тема буде тут.