Simple PHP Troubles...

Status
Not open for further replies.

rileypool

paper clique fiend
Mar 8, 2007
1,345
43
0
40
Tulsa, OK
rileypool.com
Using the techinques in this thread http://www.wickedfire.com/design-de...ellent-php-tips-tricks-techniques-follow.html I'm rewriting some of my code and I can't get the variable to populate in the <img> tag. Can anybody tell me why?

PHP:
<?php
$file = fopen("http://www.example.com/urls.txt", "r") or exit("Unable to open file!"); //Output a line of the file until the end is reached

echo "</center>";

while(!feof($file))
    {
        $strURL = fgets($file);
?>
        <img src='<?php $strURL ?>'><br />
        Copy & Paste the Code Below to your Profile or Comment Box<br />
        <input name="code" type="text" /><br />
        <br />
        <br /> 

<?php
    }
fclose($file);

echo "</center>";
?>
 


Status
Not open for further replies.