PDA

View Full Version : Error with checking links


stabuev
12-09-2005, 07:54 AM
I have installed eSyndicat here http://mincult.org.ru/dir/ but on every link I try to add it say to me that link is broken. I guess that problem is with hosting, but I don't now exactly the reason.

I host at dreamhost.com, hier is info: http://mincult.org.ru/dir/admin/info.php

:(

Simon Gooffin
12-09-2005, 10:24 AM
hello stabuev,
welcome to the forums :)

well I checked and it seems there is really problem with your hosting. I checked your phpinfo and could see you did not have allow_url_fopen enabled. If your server does not want to enable it then I would advise to disable broken link checking.

stabuev
12-09-2005, 01:04 PM
I see :( backlink checking is also connected with this option?

Simon Gooffin
12-10-2005, 04:58 AM
yes, these both functions are using the same function

stabuev
12-11-2005, 12:55 AM
I have connected with my hosting provider, they sat thsat this can help me

http://wiki.dreamhost.com/index.php/CURL

is it true ;)

Simon Gooffin
12-11-2005, 12:18 PM
hmm, thanks for the link. I will test these code lines and possible I will remake our functions. Anyway, you can make necessary changes yourself. Check functions can be found in utils.php file that is located in admin directory.

stabuev
12-11-2005, 07:36 PM
Hi Simon,

You mean util.php? In any case I'm not very qualified in PHP :( So wait for you :)

Simon Gooffin
12-12-2005, 04:22 AM
ok, I will create a patch and release it.

stabuev
12-13-2005, 05:30 PM
Hi Simon,

I have ask my friend to order me Unlim PRO (login: editor) as is waiting for patch :wink:

Simon Gooffin
12-14-2005, 10:30 AM
Hi Simon,
I have ask my friend to order me Unlim PRO (login: editor) as is waiting for patch :wink:
hey, why are you keeping silence then? Should I allow extra support for your or editor account? :)

stabuev
12-15-2005, 07:51 AM
Not yet, I'll say if :)

Simon Gooffin
12-15-2005, 09:43 AM
well, do not forget to inform me then.. ;)

stabuev
12-18-2005, 08:29 PM
Hi Simon,

What about my patch ;)... If you wish I can organize you testaccount on my hosting so you can try 8)

Simon Gooffin
12-19-2005, 08:48 AM
cool, please send me your credentials to sgooffin@esyndicat.com

Simon Gooffin
12-28-2005, 07:16 AM
hi Soso,
I checked your site :) Please check adding links from your admin panel.
now it uses CURL.
here is the newest code for getting http header by a given url:
/**
* Checks link and returns its header
*
* @param str $aUrl page url
*
* @return int
*/
function get_link_header($aUrl)
{
if (preg_match("'^http://'",$aUrl))
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $aUrl);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

if ($code)
{
$http_header = $code;
}
else
{
$http_header = 1;
}
}
return $http_header;
}

stabuev
12-28-2005, 08:15 AM
Hi Simon,

Thanks :)

And what about adding links from users and checking broken links?

Soslan

Simon Gooffin
12-28-2005, 08:29 AM
do you want me to make that mod also? It's easy :) You can do it yourself just use the code above instead of your current function in util.php file.

stabuev
12-28-2005, 10:05 AM
Ok thanks,

1. And where you have made previos changes
2. Do it work also for backlinks checking?

Simon Gooffin
12-28-2005, 10:25 AM
I changed the only file: admin/util.php there you can find a function I posted above. TO make changes for your visitors submission - just changes your util.php in your directory script root directory.
I did changes in broken link checking function. I will make changes in your recip checking function asap.

add
01-05-2007, 02:42 AM
Simon i'm also interested in this patch, because my host doesn't allow url_fopen and he suggested me to use CURL (They said it's more secure).

PageRank checking also need to be changed for CURL i guess..

bunny
01-05-2007, 03:34 AM
Whenever i try to check for broken links it asks me to download manage-links.php file, i do not know what the issue is.