Erg. Son birkaç gün içinde başlayan yüksek tweet kimlikleri benim kod kırma (en azından, o kimliği ile ilgili, ama ben API döner bazı son değişiklik olabilir varsayalım görünür). İlk başta ben bu işleve bir dize yerine bir tamsayı olarak kimliğini geçen denedim, ve ben bu çalıştı düşündüm, ama gerçekte benim sonundan dosyayı yüklemeden sadece süreç oldu.
Kısacası, bir php script bu fonksiyon çağrıları üretir, ve bunu yaptığında, onlar başarısız. Ben içine çağrı oluşturulan php dosyasını indirirseniz, sunucu kopyası silmek ve onu değiştirmeden aynı dosyayı yeniden yükleyin, iyi çalışıyor. Herkes bu davranışa neden olabilir biliyor mu?
Aşağıda hataları çekerek dosyaları tek tek en önemli parçası olması şüpheli budur. Dosyaların her bir durum kimliği için adlandırılır (örneğin aşağıdaki dosya 12058543656.php adlı)
<?php
require "singlePost.php";
SinglePost(12058543656)
?>
İşte yukarıdaki dosyaları yazar kod:
$postFileName = $single_post_id.".php";
if(!file_exists($postFileName)){
$created_at_full = date("l, F jS, Y", strtotime($postRow[postdate])-(18000));
$postFileHandle = fopen($postFileName, 'w+');
fwrite($postFileHandle, '<html>
<head>
<title><?php $thisTITLE = "escarp | A brief poem or short story by '.$authorname.' on '.$created_at_full.'"; echo $thisTITLE;?></title><META NAME="Description" CONTENT="This brief poem or short story, by '.$authorname.', was published on '.$created_at_full.'">
<?php include("head.php");?>
To receive other poems or short stories like this one from <a href=http://twitter.com/escarp>escarp</a> on your cellphone, <a href=http://twitter.com/signup>create</a> and/or <a href=http://twitter.com/devices>associate</a> a Twitter account with your cellphone</a>, follow <a href=http://twitter.com/escarp>us</a>, and turn device updates on.
<pre><?php
require "singlePost.php";
SinglePost("'.$single_post_id.'")
?>
</div></div></pre><?php include("foot.php");?>
</body>
</html>');
fclose($postFileHandle);}
$postcounter++;
}
Burada hiçbir şey görmüyorum ben daha gönderebilir, ancak ilgili birkaç dosya var ve ben alakasız kod damping ton önlemek için çalışıyorum.
Hata:
Warning: include(head.php) [function.include]: failed to open stream: No such file or directory in /f2/escarp/public/12177797583.php on line 4 Warning: include(head.php) [function.include]: failed to open stream: No such file or directory in /f2/escarp/public/12177797583.php on line 4
Warning: include() [function.include]: Failed opening 'head.php' for inclusion (include_path='.:/nfsn/apps/php5/lib/php/:/nfsn/apps/php/lib/php/') in /f2/escarp/public/12177797583.php on line 4 To receive other poems or short stories like this one from escarp on your cellphone, create and/or associate a Twitter account with your cellphone, follow us, and turn device updates on.
Uyarı: failed to open stream: 7. satırda Böyle bir dosya ya da / f2/escarp/public/12177797583.php dizinine (singlePost.php) [function.require] gerektirir
Uyarı: failed to open stream: 7. satırda Böyle bir dosya ya da / f2/escarp/public/12177797583.php dizinine (singlePost.php) [function.require] gerektirir
Ölümcül hata:) [function.require] (gerektirir: '. :/ Nfsn/apps/php5/lib/php / :/ nfsn / apps / php / lib / php /' (include_pathdaki = 'singlePost.php' gerekli Başarısız açılış ) hattında 7 / f2/escarp/public/12177797583.php içinde
SinglePost ()
<?php
function SinglePost($statusID) {
require "nicetime.php";
$db = sqlite_open("db.escarp");
$updates = sqlite_query($db, "SELECT * FROM posts WHERE postID = '$statusID'");
$row = sqlite_fetch_array($updates, SQLITE_ASSOC);
$id = $row[authorID];
$result = sqlite_query($db, "SELECT * FROM authors WHERE authorID = '$id'");
$row5 = sqlite_fetch_array($result, SQLITE_ASSOC);
$created_at_full = date("l, F jS, Y", strtotime($row[postdate])-(18000));
$created_at = nicetime($row[postdate]);
if($row5[url]==""){
$authorurl = '';
}
else{
/*I'm omitting a few pages of output code and associated regex*/
return;
}
?>