Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

9.03.50 Link problem never disappeared....

Newest version still refusing to accept all the links.

Gene
Try this,
https://github.com/php-fusion/PHP-Fus...hp#L67-L95

CodeDownload  
if (filter_var($url, FILTER_VALIDATE_URL)) {
 return $url;
} else if (function_exists('curl_version')) {
 $ch = curl_init($url);

 curl_setopt_array($ch, [
 CURLOPT_TIMEOUT => 20,
 CURLOPT_FOLLOWLOCATION => TRUE,
 CURLOPT_NOBODY => TRUE,
 CURLOPT_HEADER => FALSE,
 CURLOPT_RETURNTRANSFER => FALSE,
 CURLOPT_SSL_VERIFYHOST => FALSE,
 CURLOPT_SSL_VERIFYPEER => FALSE
 ]);

 curl_exec($ch);

 $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

 if ($http_code == 200) {
 return $url;
 } else {
 return FALSE;
 }

 curl_close($ch);
} else if (preg_match("/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i", $url)) {
 return $url;
}

I'll give it a shot RobiNN, thanks!
Here's one of the links that's giving me a problem, maybe you can see if it's the link or not....

https://www.gunsprings.com/

Thanks, Gene
I'll give it a shot again RobiNN
Looks like it's working RobiNN, If there are any other issues, I'll let you know...

Thanks Again for all your work...
Thread is closed now. Any questions further than this, please use a new thread.
Thread Information
Author
Replies
8 posts
Views
194 times
Last Post
Last updated on 2 months ago
Related Threads
You can view all discussion threads in this forum.
You cannot set up a bounty in this discussion thread.
You can start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You can download attachments in this forum.
You cannot up or down-vote on the post in this discussion thread.
Users who participated in discussion: Chan, RobiNN, daimonbok1