Тема: Convert a resource to a string in php 2
Hi,
I posted a few minutes ago a question regarding the convertion of a resource into a string in php. I did create a working example using mail function and one of the mods flag it as a spam tool. Here is another example to solve this question without been a spam tool.
Here is the code:
<?php
$file = fopen("sites.txt","r");
while(! feof($file))
{
echo file_get_contents("http://127.0.0.1/index.php?url=$file");
echo fgets($file). "<br>";
}
fclose($file);
?>
Thanks