| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Auteur |
Message |
denis
Inscrit le: 14 Mai 2008 Messages: 21 Localisation: anjou
|
Posté le: Ven Mai 16, 2008 4:20 pm Sujet du message: Re: code php dans le overall_footer.html |
|
|
| si je t ai bien compris je met le code que tu m as passe dans une page php et je le lance pour voir si ca execute bien les liens |
|
|
| Revenir en haut de page |
|
 |
|
 |
SeO Administrateur - Site Admin

Inscrit le: 15 Mar 2006 Messages: 3482
|
|
| Revenir en haut de page |
|
 |
denis
Inscrit le: 14 Mai 2008 Messages: 21 Localisation: anjou
|
Posté le: Ven Mai 16, 2008 4:32 pm Sujet du message: Re: code php dans le overall_footer.html |
|
|
j ai bien mis mon code dans une page php puis je l ouvre
je ne vois pas de boite mais le code
| Citation: | | // The following variable defines whether links are opened in a new window // (1 = Yes, 0 = No) $OpenInNewWindow = "1"; // ******************************************************************** // Please DO NOT modify anything below // ******************************************************************** $BLKey = "EV7M-MH31-5E48"; $QueryString = "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); $QueryString .= "&Key=" .urlencode($BLKey); $QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow); if(intval(get_cfg_var('allow_url_fopen')) && function_exists('file_get_contents')) { if ( ($result = file_get_contents("http://www.backlinks.com/engine.php?".$QueryString))) { echo utf8_encode($result); } } elseif(function_exists('curl_init')) { $ch = curl_init ("http://www.backlinks.com/engine.php?".$QueryString); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_exec ($ch); if(curl_error($ch)) print "Error processing request"; curl_close ($ch); } else { print "It appears that your web host has disabled all functions for handling remote pages and as a result the BackLinks software will not function on your web page. Please contact your web host for more information."; } |
ne vous fiez pas as ca ($BLKey = "EV7M-MH31-5E48" car je remet le nouveau a chaque fois que je reactive le code |
|
|
| Revenir en haut de page |
|
 |
SeO Administrateur - Site Admin

Inscrit le: 15 Mar 2006 Messages: 3482
|
Posté le: Ven Mai 16, 2008 5:32 pm Sujet du message: Re: code php dans le overall_footer.html |
|
|
Tu met bien :
| Code: | <?php
// The following variable defines whether links are opened in a new window
// (1 = Yes, 0 = No)
$OpenInNewWindow = "1";
// ********************************************************************
// Please DO NOT modify anything below
// ********************************************************************
$BLKey = "6EE9-SVF7-481H";
$QueryString = "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$QueryString .= "&Key=" .urlencode($BLKey);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);
if(intval(get_cfg_var('allow_url_fopen')) && function_exists('file_get_contents')) {
if ( ($result = file_get_contents("http://www.backlinks.com/engine.php?".$QueryString))) {
echo $result;
}
}
?> |
Dans test.php ? |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Revenir en haut de page |
|
 |
denis
Inscrit le: 14 Mai 2008 Messages: 21 Localisation: anjou
|
Posté le: Ven Mai 16, 2008 5:57 pm Sujet du message: Re: code php dans le overall_footer.html |
|
|
si je met ton code avec les < ?php code ?>
rien ne s affiche
si je met <!-- PHP -->code <!-- ENDPHP --> je vois juste ton code
je met bien ce que tu m as dit
| SeO a écrit: | Tu met bien :
| Code: | <?php
// The following variable defines whether links are opened in a new window
// (1 = Yes, 0 = No)
$OpenInNewWindow = "1";
// ********************************************************************
// Please DO NOT modify anything below
// ********************************************************************
$BLKey = "6EE9-SVF7-481H";
$QueryString = "LinkUrl=".urlencode((($_SERVER['HTTPS']=='on')?'https://':'http://').$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$QueryString .= "&Key=" .urlencode($BLKey);
$QueryString .= "&OpenInNewWindow=" .urlencode($OpenInNewWindow);
if(intval(get_cfg_var('allow_url_fopen')) && function_exists('file_get_contents')) {
if ( ($result = file_get_contents("http://www.backlinks.com/engine.php?".$QueryString))) {
echo $result;
}
}
?> |
Dans test.php ? |
|
|
|
| Revenir en haut de page |
|
 |
|
|
| Navigation |
Autres sujets de discussion |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |