Arkadaşlar aşağıdaki kod parçası ile bir sitede bir sayfanın var olup olmadığını kontrol etmek istiyorum, fakat localhostta çalışan şey hostta atınca çalışmadı nedense kod bu :
<?
include('config.php');
$kod=$_GET['kod'];
$sql="SELECT * FROM website WHERE onaykodu = '$kod'";
$query=mysql_query($sql) or die(mysql_error());
$sec=mysql_fetch_array($query);
$url = "http://".$sec['site_ismi']."/".$kod.".html";
require ('HTTP/Request.php');
$request =& new HTTP_Request($url);
$request->sendRequest();
$response = $request->getResponsecode();
echo "Serverdan cevap : <br>";
if ($sec['site_durum'] == "active") {
echo "<b>Site zaten aktif</b>";
} else {
if ($response == "200") {
$onayla="UPDATE website SET site_durum ='active' WHERE onaykodu='$kod'";
mysql_query($onayla) or die(mysql_error());
echo "<b>Site onaylandı</b>";
} else {
echo "<b><br>Dosya Mevcut değil lütfen $kod.html adlı dosyayı oluşturunuz</b>";
}
}
?>Hatada bu
Warning: require(HTTP/Request.php) [function.require]: failed to open stream: No such file or directory in /home/xxx/public_html/includes/kontrol.php on line 20
Warning: require(HTTP/Request.php) [function.require]: failed to open stream: No such file or directory in /home/xxx/public_html/includes/kontrol.php on line 20
Fatal error: require() [function.require]: Failed opening required 'HTTP/Request.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/includes/kontrol.php on line 20
Birde bu yazdığım ilk script yani henüz amatörüm, daha iyi kullanışlı yapacak birşeyler varsa önerilerinize açığım