Forum Moderators: coopster
<?
// Read in index.htm as string
$filename = "/vol/drive2/sites/site9/web/CTV/index.html";
$fd = fopen ($filename, "r");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
//Parse out needed text area
preg_match("/<!--\s*Begin\s*Content\s*-->\s*\w*(.¦\n)*<!--\s*End\s*Content\s*-->/", $contents, $textArea);
// Remove slashes
// Delete this line when config is changed
$textArea[0] = stripslashes($textArea[0]);
// Remove HTML comments
$textArea[0] = str_replace("<!-- Begin Content -->","",$textArea[0]);
$textArea[0] = str_replace("<!-- End Content -->","",$textArea[0]);
// Convert all standard and XHTML-compliant tags to newlines
$textArea[0] = eregi_replace('<br[[:space:]]*/?[[:space:]]*>', "\n", $textArea[0]);
?>
If there is a max size on arrays, What is it? Is there a way around this problem? Thanks.
did you figure out your problem on this yet? I would think it wouldn't be an array size problem but, more likely, how the data is being handled or displayed.