jf3000 Posted November 12, 2006 Share Posted November 12, 2006 Can someone explain what this means please :[code]Warning: parse_url(http://) [function.parse-url]: Unable to parse url in xml/pages/class.http.inc.php on line 107[/code]First line is 106, then under that is 107 :[code]$redir = preg_replace('#([^/\:]/)/+#','\\1',$redir); $rurl = parse_url($redir);[/code] Link to comment https://forums.phpfreaks.com/topic/26991-parse-error-help-please/ Share on other sites More sharing options...
doni49 Posted November 12, 2006 Share Posted November 12, 2006 Do you have a space between parse and url? It looks like it from your post.Assuming that it is an underbar that's just not showing here, putting this above both lines: echo "<br />" . $redir. It sounds to me like it has trouble with that variable. Link to comment https://forums.phpfreaks.com/topic/26991-parse-error-help-please/#findComment-123533 Share on other sites More sharing options...
varungr Posted November 12, 2006 Share Posted November 12, 2006 The problem it seems is with the regex. The match is not found and thus the oparse_url is not getting the complete url.. it is only getting the "http://' string. Link to comment https://forums.phpfreaks.com/topic/26991-parse-error-help-please/#findComment-123536 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.