Reply to Is this even possible?

Your name:

Reply:


Posted by rich on 11/29/05 15:06

I have a simply array containing direcotry names like this

$myarray = array("folder1","folder2", "folder3", "folder4");

below I have a foreach action

foreach ($myarray as $value) {
include($value . "/index.php");
}

now, inside every 'index.php' is the following

$color = "red";
$size = "small";
include("../template.html");

'template.html' is a basic template that simple provides a nice looking
table layout that houses the data. So basically, my end result is something
like this

<table>
<tr>
<td colspan="2">http://www.mydomain.com/folder1/</td>
</tr>
<tr>
<td>Colour</td>
<td>Red</td>
</tr>
<tr>
<td>Size</td>
<td>Small</td>
</tr>
</table>


now, that's all fine and dandy and everything. But now it turns out I need
to have a link on the page to provide a much simpler plain text formatted
style such as this:

$value, $colour, $size
$value, $colour, $size
$value, $colour, $size

Ideally I want this to open in a new window but I'm not sure if it's even
possible to do such a thing with the format that I have already? I can't go
and edit the index.phps in each directory cause there are over 1000. Is
there a simple way to do it that I'm overlooking? Remember that each
index.php include the template file, which obviously I don't want in this
plain txt linked version.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация