salve ragazzi non riesco a far funzionare sta pagina
webdc.altervista.org/link.php
mi da il seguente errore
Destination host forbidden
Fatal error: Maximum execution time of 15 seconds exceeded in /membri/webdc/link.php on line 84
mi potete aiutare
Printable View
salve ragazzi non riesco a far funzionare sta pagina
webdc.altervista.org/link.php
mi da il seguente errore
Destination host forbidden
Fatal error: Maximum execution time of 15 seconds exceeded in /membri/webdc/link.php on line 84
mi potete aiutare
Almeno facci vedere il sorgente php!
Non abbiamo la sfera di cristallo!
Ciao!
Il sorgente php, non la il link (a cui è facile risalire).
Ciao!
come faccio ad inviarti il file cosi capisci
praticamente sono link remoti per incrementare visite
Ti è stato praticamente chiesto di copiare il codice di quel file sul forum.
Una cosa che puoi controllare da subito, comunque, è questa: di solito quell'errore è dovuto alla presenza di un ciclo infinito. Il "motore" di PHP gli "taglia le gambe" dopo 15 secondi, in modo da non bloccare tutto...
Stammi bene...
quindi non posso usarli
su un dominio altervista
cme ecco il codice?
Codice PHP:<?php
// # THE FOLLOWING BLOCK IS USED TO RETRIEVE AND DISPLAY LINK INFORMATION.
// # PLACE THIS ENTIRE BLOCK IN THE AREA YOU WANT THE DATA TO BE DISPLAYED.
// # BackLinkSpider user key:
$UserKey ="MA-2328RO-SA";
// # MODIFY THE VARIABLES BELOW:
// # The following variable defines how many links to display per page
$LinksPerPage = "25";
// # The following variable defines how many columns are used to display categories
$CategoryColumns = "2";
// # The following variable defines whether links are opened in a new window
// # (1 = Yes, 0 = No)
$OpenInNewWindow = "0";
// # DO NOT MODIFY ANYTHING ELSE BELOW THIS LINE!
// ----------------------------------------------
$QueryString = "script=php";
$QueryString .= "&UserKey=" .urlencode($UserKey);
$QueryString .= "&CategoryColumns=" .urlencode($CategoryColumns);
$QueryString .= "&LinksPerPage=" .urlencode($LinksPerPage);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);
$QueryString .= "&siteid=5898" ;
foreach ($_GET as $key => $value) {
$value = urlencode(stripslashes($value));
$QueryString .= "&$key=$value";
}
// congfigure our headers
if(intval(ini_get('allow_url_fopen')) && function_exists('readfile')) {
if(!@readfile("http://www.backlinkspider.com/generate.links.php?".$QueryString)) {
echo "Error processing request";
}
}
elseif(intval(ini_get('allow_url_fopen')) && function_exists('file')) {
if(!($content = @file("http://www.backlinkspider.com/generate.links.php?".$QueryString))) {
echo "Error processing request";
}
else {
echo @join('', $content);
}
}
elseif(function_exists('curl_init')) {
$ch = curl_init ("http://www.backlinkspider.com/generate.links.php?".$QueryString);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
if(curl_error($ch))
echo "Error processing request";
curl_close ($ch);
}
else {
echo "Your web hosting provider has disabled all functions for handling remote pages pages and as a result the BackLinkSpider software will not function on your web site.";
}
echo "<input type='hidden' name='userkey' value='".$UserKey."'>";
?>
<!-- IndexGuy Snippet v1.5 for PHP Begins Here -->
<?php
if(!isset($_GET['id'])) $_GET['id']=0;
if(!isset($_GET['start'])) $_GET['start']=0;
if(!isset($_GET['end'])) $_GET['end']=0;
if($_GET['id'] == '') $_GET['id']=0;
if($_GET['start'] == '') $_GET['start']=1;
if($_GET['end'] == '') $_GET['end']=50;
if (!isset($_SERVER['QUERY_STRING'])) $_SERVER['QUERY_STRING'] = '';
$handle = fopen("http://www.indexguy.com/request_server.cfm?member_id=13087"."&id=".$_GET['id']."&".$_SERVER['QUERY_STRING'],"r");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
fclose($handle);
echo $contents;
?>
<!-- IndexGuy Snippet v1.5 for PHP Ends Here -->
<?php
if (!is_set) {
$HTTP_GET_VARS['this']=0;
}
$file = fopen ("http://telalinks.com/system/get.cgi?u=datalogic&id=36983&c=16&this=".$HTTP_GET_VARS['this'], "r");
while (!feof ($file)) echo fgets ($file, 1024);
fclose($file);
?>
<?php
// ********************************************************************
// You may change the variables below to customize the look and feel of
// your links page
// ********************************************************************
// This option defines the number of columns used to display categories
$LPCatCol = "2";
// This option defines the number of links displayed per page
$LPLPP = "25";
// This option defines whether links are opened in a new web browser window
// (1 = Yes, 0 = No)
$LPNW = "1";
// This option determines whether the search function is enabled
// for your links page (1 = Yes, 0 = No)
$LPAS = "1";
$LPKey = "L24D-5N6H-S84I";
// ********************************************************************
// *****Please DO NOT make any edits or changes to the code below******
// ********************************************************************
$PageName = $_SERVER["PHP_SELF"];
$LPQS = "script=php&UserKey=".urlencode($LPKey)."&ScriptName=".urlencode($PageName)."&CatCols=" .urlencode($LPCatCol)."&LinksPerPage=".urlencode($LPLPP)."&OpenInNewWindow=" .urlencode($LPNW)."&AllowSearch=".urlencode($LPAS);
foreach ($_GET as $key => $value) {
$LPQS .= "&$key=".urlencode(stripslashes($value));
}
if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
if(!@readfile("http://www.linkspanel.com/engine.php?".$LPQS)) {
print "Error processing request";
}
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
if(!($content = @file("http://www.linkspanel.com/engine.php?".$LPQS))) {
print "Error processing request";
}
else {
print @join('', $content);
}
}
elseif(function_exists('curl_init')) {
$ch = curl_init ("http://www.linkspanel.com/engine.php?".$LPQS);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
if(curl_error($ch))
print "Error processing request";
curl_close ($ch);
}
else {
print "It seems that your web host has disabled all functions for handling remote pages and as a result the LinksPanel software will not function on your web site. Please contact your web host and ask them to enable PHP curl or fopen.";
}
?>
<?php
// ********************************************************************
// You may change the variables below to customize the look and feel of
// your links page
// ********************************************************************
// This option defines the number of columns used to display categories
$GLCatCol = "2";
// This option defines the number of links displayed per page
$GLLPP = "25";
// This option defines whether links are opened in a new web browser window
// (1 = Yes, 0 = No)
$GLNW = "1";
// This option determines whether the search function is enabled
// for your links page (1 = Yes, 0 = No)
$GLAS = "1";
$GLKey = "LFS8-7276-JONG";
// ********************************************************************
// *****Please DO NOT make any edits or changes to the code below******
// ********************************************************************
$PageName = $_SERVER["PHP_SELF"];
$GLQS = "script=php&UserKey=".urlencode($GLKey)."&ScriptName=".urlencode($PageName)."&CatCols=" .urlencode($GLCatCol)."&LinksPerPage=".urlencode($GLLPP)."&OpenInNewWindow=" .urlencode($GLNW)."&AllowSearch=".urlencode($GLAS);
if(!is_array($_GET)) $_GET = $HTTP_GET_VARS;
foreach ($_GET as $key => $value) {
$GLQS .= "&$key=".urlencode(stripslashes($value));
}
if(intval(get_cfg_var('allow_url_fopen')) && function_exists('readfile')) {
if(!@readfile("http://www.gotlinks.com/engine2.php?".$GLQS)) {
print "Error processing request";
}
}
elseif(intval(get_cfg_var('allow_url_fopen')) && function_exists('file')) {
if(!($content = @file("http://www.gotlinks.com/engine2.php?".$GLQS))) {
print "Error processing request";
}
else {
print @join('', $content);
}
}
elseif(function_exists('curl_init')) {
$ch = curl_init ("http://www.gotlinks.com/engine2.php?".$GLQS);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
if(curl_error($ch))
print "Error processing request";
curl_close ($ch);
}
else {
print "It seems that your web host has disabled all functions for handling remote pages and as a result the GotLinks software will not function on your web site. Please contact your web host and ask them to enable PHP curl or fopen.";
}
?>
Cosa c'è alla riga 84?
(risposta a post cancellato) Non ti è stato chiesto di riportare di nuovo il codice del file, ti è stato chiesto quale fosse la linea 84 del file...
Se le ho contate bene, temo che il risultato non sia molto d'aiuto, perché la riga 84 ha solo scritto <?php. Dato che evidentemente non è interno ad un ciclo, la causa potrebbe anche essere un ciclo precedente che si dilunga troppo: il più probabile è questoPotresti provare a risolvere il problema così:Codice PHP:while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
- se questo non comporta grosse perdite di funzionalità al tuo script, fermarti alle prime acquisizioni del file, invece che leggerlo tutto a tutti i costi.
- provare ad usare altre funzioni per leggere il contenuto del file, ad esempio file_get_contents.
Stammi bene...