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

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


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:

$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>";



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

Re: Convert a php resource to a string

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

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