PHP Feezing with a function
I have created a function for a script I am doing for my website to help with manage navigation but something inside the function is causing the PHP Engine to stop running the script. I'm not to good with match expresions so I have a feeling it will have something to do with them.
[php]function navigation($navigation) {
if($navigation) {
preg_match("#\[coverage\](.*?)\[/coverage\]#is", $navigation, $navCov);
preg_match("#\[media\](.*?)\[/media]#is", $navigation, $navMedia);
}
if($navCov[0]) {
$coverage = explode("\n",$navCov[0]);
foreach($coverage as $link) $nav .= "
$link\n";
$return = <<
Ragnarok
Junior Poster in Training
94 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0
I have fixed the problem now, my host really screwed up when installing the stuff on the server, he had turned off half the error reporting and my error was one that had been disabled
Ragnarok
Junior Poster in Training
94 posts since Mar 2004
Reputation Points: 10
Solved Threads: 0