| |
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا|
#1
| ||
| ||
| 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; } } __DEFINE_LIKE_SHARE__ |
![]() |
| مواقع النشر (المفضلة) |
| |