Includes with Strings?
Posted: Mon Dec 27, 2004 5:45 pm
To access the file $reverse[] refers to, it's here: http://nindsnet.com/db/home.inc
First problem is that where I first commented, $reverse[1]. This string reads as valid HTML, and it is an img link: <img src etc. etc.... However, the image doesn't display for some reason.
The second problem is that on my second comment, I can't seem to include that file. Why?
The link to my site is here: http://www.nindsnet.com/indexo.php
I'd be grateful for any help.
Thanks
First problem is that where I first commented, $reverse[1]. This string reads as valid HTML, and it is an img link: <img src etc. etc.... However, the image doesn't display for some reason.
The second problem is that on my second comment, I can't seem to include that file. Why?
The link to my site is here: http://www.nindsnet.com/indexo.php
I'd be grateful for any help.
Code: Select all
$data = file('db/home.inc');
$reverse = array_reverse($data);
echo $reverseї0];
echo '
</td>
</tr>
<tr>
<td bgcolor="#CCCCCC">';
echo $reverseї1]; //$reverseї1] is a valid img src link to an existing image...that doesn't display for some reason on the page
$result = include("news/admin/content/$reverseї2]"); //Doesn't include..?
$result;