![]() |
Sitemap erro When you use sitemap and you have set in php.ini the option to display errors (default in wampserver) the xml-file is incorrect, because the errors are part of the file. I have edited the class/Sitemap.php Code: public function buildFile() { if (isset($_REQUEST['menus'])) { $menus = $_REQUEST['menus']; } else { $menus = null; } ... public function checkURL($link) { $pattern = '/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2,2})+(:([\d\w]|%[a-fA-f\d]{2,2})+)?@)?([\d\w][-\d\w]{0,253}[\d\w]\.)+[\w]{2,4}(:[\d]+)?(\/([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)*(\?(&?([-+_~.\d\w]|%[a-fA-f\d]{2,2})=?)*)?(#([-+_~.\d\w]|%[a-fA-f\d]{2,2})*)?$/'; // print_r($matches); exit; if (preg_match($pattern, $link, $matches)) { return true; } else { return false; } } |
الساعة الآن 10:58 AM |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By
Almuhajir