salut les mec j ai un gros probleme ,
mon site arrete de charger des resultat de recherche sur ovh ou debut le site ca marche parfaitment mais apres 24 online a stope je c pas si le probleme et sure le code ou bien le serveur ou mon site et heberger voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?php
include('functions.inc.php');
ob_start();
if (isset($_GET['q'])){
$query = trim($_GET['q']);
$query = str_replace('-', ' ', $query);
}
if ( !isset($_GET['q']) || $_GET['q'] == ''){
header("Location: index.php");
exit;
}
if (isset($_GET['page'])){
$page = $_GET['page'];
}else $page = 1;
 
$results = build_search($query, $page);
$search_results = $results[0];
$total_found = $results[1];
$sugg = $results[2];
$meta_desc1 = $search_results[0]; 
$meta_desc1 = $meta_desc1['desc']['title'];
$meta_desc2 = $search_results[1]; 
$meta_desc2 = $meta_desc2['desc']['title'];
$meta_desc = strip_tags($meta_desc1 . ' ' . $meta_desc2);
$rewrite_status = rewrite_status();
$pagination = build_pagination($total_found, $query, $page);
?>
<?php
include('searchheader.php');
?>
<script>
  function form_validate(formName)
{
    if( (eval("document."+formName+".q.value") == ""))
    {
        alert("Please enter search keyword(s).");
        return false;
    }
    return true;
}
 
var isIE;
if (window.XMLHttpRequest) {
    var xmlHttp = new XMLHttpRequest();
}else if (window.ActiveXObject) {
   isIE = true;
    var xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");
}
function read_more(id, fid){
document.getElementById('desc_' + id).innerHTML = '<center><img src="img/loading.gif" border="0" /></center>';
xmlHttp.open('GET', 'ajax.php?readmore=true&fid=' + fid, true);
xmlHttp.onreadystatechange = function() {//Call a function when the state changes. 
   if(xmlHttp.readyState == 4 && xmlHttp.status == 200) {
   document.getElementById('desc_' + id).innerHTML = xmlHttp.responseText;
   }
}
xmlHttp.send(null);
}
 
function show_download(id, link){
document.getElementById('dl_btn_' + id).innerHTML = '<center><img src="img/loading.gif" border="0" /></center>';
xmlHttp.open('GET', 'ajax.php?showdownload=true&link=' + link, true);
xmlHttp.onreadystatechange = function() {//Call a function when the state changes. 
   if(xmlHttp.readyState == 4 && xmlHttp.status == 200) {
   document.getElementById('dl_btn_' + id).innerHTML = xmlHttp.responseText;
   }
}
xmlHttp.send(null);
}
 
function iFrameHeight(id) {
	var h = 0;
	if ( !document.all ) {
		h = document.getElementById(id).contentDocument.height;
		document.getElementById(id).style.height = h + 60 + 'px';
	} else if( document.all ) {
		h = document.frames(id).document.body.scrollHeight;
		document.all.blockrandom.style.height = h + 20 + 'px';
	}
 
	if (navigator.userAgent.indexOf('Opera') != -1){
 
	    h = document.frames(id).document.body.scrollHeight;
		document.all.blockrandom.style.height = h + 20 + 'px';
	}
}
</script>
 
<?php
include('searchbar2.php');
?>
 
 
<!-- start_search_listing -->
<!-- Start of Page Container -->
<div class="page-container">
<div class="container">
<!--    code recentbox   -->
 
<!--   end code recentbox    -->
<div class="row">
 
<!-- start of page content -->
<div class="span8 page-content">
 
<!-- Basic Home Page Template -->
<div class="row separator">
<article class="format-standard type-post hentry clearfix">
<?php
$i = 0;
foreach ($search_results as $result) {
?>
<header class="clearfix">
<h3 class="post-title">
<a href="#desc_<?php echo $i; ?>" onclick="show_download(<?php echo "'" . $i . "'," . "'" . $result['link'] . "'"; ?>);" title="Download now <?php echo strip_tags($result['title']); ?>"><?php echo "<b style=\"color: #f60;\">$i</b>. " . $result['title']; ?></a>
</h3>
</header>
<p class="green"> <?php echo $result['title'] . ' ' . $result['data']['more_info']; ?></p>
<span style="display:none;"><a href="ajax.php?rd=<?php echo $result['fid']; ?>" target="_blank"><?php echo $result['title'] . ' ' . $result['data']['more_info']; ?></a>
</span>
<div class="descrition">
<ul> <li><span><span class="hostcolr"> Size: </span><?php echo $result['data']['size']; ?></span></li>
<li class="mrgdownload"><span> <span class="hostcolr">Host:</span> <?php echo $result['data']['host']; ?></span></li>
<li ><a href="javascript:void();" onclick="show_download(<?php echo "'" . $i . "'," . "'" . $result['link'] . "'"; ?>);" title="Download now <?php echo strip_tags($result['title']); ?>"><img  src="images/download_now.png" border="0" >Download</a> </li>
</ul>
</div>
<?php
$desc = $result['desc'];
$desc_title = $desc['title'];
$desc_content = $desc['content'];
$desc_content = strip_tags($desc_content);
$rand_char_count = mt_rand(100, 300);
$arr = str_split($desc_content, $rand_char_count);
$desc_content = $arr[0];
echo "<div class='desc_2' id='desc_$i' name='desc_$i'><b>$desc_title</b><br>$desc_content... <br><a href=\"#desc_ $i\"  id=\"more_text_link$i\" onclick=\"read_more('$i', '" . $result['fid'] . "');\" title=\"Read full description of " . strip_tags($result['title']) . ".\">Read full description of " . $result['title'] . ".</a></div>";
?>
<div id="dl_btn_<?php echo $i; ?>" name="dl_btn_<?php echo $i; ?>">
</div>
<center><noscript><b style="color:red;">Javascript is required to download.</b></noscript></center>
 
<hr>
 
<!--new result start-->
<?php
$i++;
}
?>
 
 
 
<center>
 
<?php
echo $pagination;
?>
 
</centre>
 
</div>
</div>
<!-- end of page content -->
 
 
<!-- start of sidebar -->
<?php include 'sidebarads.php';   ?>
<!-- end of sidebar -->
</div>
<?php include 'recentbox.php';   ?>
</div>
 
</div>
 
<BR>
<?php include "footer.php" ?>
 
<?php ob_end_flush(); ?>
nb: jai le problem dans la page de recherche seulment