I started writing a basic script to list links and made some changes so that I could use a small template type of file but now, I'm starting again on the script using XP Pro, php 4.3.4 and so on but now, the tbuf will not work. I just get a reference to: Undefined variable: tbuf in c:\inetpub\wwwroot\chris\dbtest\pages.php on line 40
Line 40 is shown directly below: -- $buffer = $tbuf;
Here is a bigger part of the fuction if it helps... --- while($row = mysql_fetch_array($sql)) { // Setup for use with templates.
$variable1=$row["title"]; $buffer = $tbuf;
$fd = fopen("template.inc","r"); while (!feof ($fd)) {$buffer .= fgets($fd, 4096);} fclose ($fd);
$buffer = ereg_replace( '\$title',$row["title"],$buffer); $string = eregi_replace('<br[[:space:]]*/?[[:space:]]*>',"\n", $string); echo $buffer; }
---
Any help or ideas on this would be appreciated. From searching the web, It appears that there have been patches released to fix this issue but I have not found any info on an updated installer including the patch.. Maybe I am just missing something.
Thanks in advance for your help, Chris
_________________________________________________________________
Shop online for kids? toys by age group, price range, and toy category at MSN Shopping. No waiting for a clerk to help you! http://shopping.msn.com
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php