แจก Code PHP ง่ายๆ Random Articles จาก Ezine Article มากกว่า หกแสน Articles*

เริ่มโดย ggynmsn, 06 สิงหาคม 2007, 00:05:43

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

golf98765

สุดยอดเจงๆครับอันนี้

จะให้ดีขอตัวเอาเข้า Mysql ด้วย  :D

:-* หะๆๆ

prestige2007

ขอบคุณครับ แค่เอาไปติดก็ใช้ได้เลยง่ายดีคับ

naitam

อ้างถึงจาก: ggynmsn ใน 06 สิงหาคม 2007, 00:05:43
แจก Random Articles จาก Ezine Article มากกว่า หกแสน Articles เหมาะสำครับคนที่ต้องการหาเนื้อหาไปใส่ในเวบปั่นๆ
เอาไปประยุกต์เองเด้ออาจจะหาจากเจ้าอื่นมากมาย อาจจะดึงเก็บลงไฟล์ก็ได้หนึ่ง article/ไฟล์  ใครอยากจะมาแชร์เทคนิกเจ๋งช่วยเพื่อนๆ  ในบอร์ดก็เชิญเด้อครับ ไม่ต้องกั๊กเด้อ ช่วยๆ กัน


<?
/*include("adsense.php"); */
if(!isset($id))
{
$id=1;   
}
$id=rand(1,666666);
$content2=$id.'.txt';
$myspace = file_get_contents("http://ezinearticles.com/ezinepublisher/?id=$id");
$arr=$myspace;
$str1='<textarea rows="15" name="formatted" cols="50" wrap="physical">';
$str2='<textarea rows="15" name="plain_text" cols="50" wrap="physical">';
$str3='<textarea rows="5" name="summary" cols="50" wrap="physical">';
$str4='<input type="text" name="keywords" size="75" value="photography, black white film, kelly paal">';
$str5='</textarea>';
$title1="<html><head><title>";
$title2="</title></head>";
$position1=strpos($myspace, $str1);
$position1=$position1+strlen($str1);
$position2=strpos($myspace, $str5);
for ($i=$position1;$i<$position2;$i++)
{
    echo $arr[$i];
   
}
/*include("adsense.php");*/
fclose($file2);
?>






fclose() คือ ฟังก์ชั่นปิดการเข้าถึงไฟล์นั้น ๆ ในที่นี้น่าจะได้ไฟล์เป็นชื่อ 1.txt , 2.txt ไปเรื่อยๆ หนะครับ

gAAp

ลองเข้าไปดูแล้วครับเมื่อกี้ มันแจ้งว่า คุณเข้าใช้งานเว็บของเราเร็วเกินมนุษย์มนา เราขอบล๊อคไว้ก่อนนะ -*- :-X

ก้ามปู

ตอนนี้ผมไม่ค่อยว่างตอบอะไรใครนะครับ เพราะไม่ได้เข้าบอร์ดเลย

guy852


Mr_RSS

อ้างถึงจาก: Newbies ใน 06 สิงหาคม 2007, 09:06:46
มีหลังบ้านด้วย ง่ายกว่าเข้าหน้าบ้านเยอะเลย

ขอบคุณมากๆครับ

คืออะไรครับ

ขึ้นแบบนี้เหมือนกันครับ

Warning: fclose(): supplied argument is not a valid stream resource in /home/xxxxx/domains/xxxxx.com/public_html/article/test.php on line 27


robots

อ้างถึงจาก: ggynmsn ใน 06 สิงหาคม 2007, 00:05:43
แจก Random Articles จาก Ezine Article มากกว่า หกแสน Articles เหมาะสำครับคนที่ต้องการหาเนื้อหาไปใส่ในเวบปั่นๆ
เอาไปประยุกต์เองเด้ออาจจะหาจากเจ้าอื่นมากมาย อาจจะดึงเก็บลงไฟล์ก็ได้หนึ่ง article/ไฟล์  ใครอยากจะมาแชร์เทคนิกเจ๋งช่วยเพื่อนๆ  ในบอร์ดก็เชิญเด้อครับ ไม่ต้องกั๊กเด้อ ช่วยๆ กัน


<?
/*include("adsense.php"); */
if(!isset($id))
{
$id=1;   
}
$id=rand(1,666666);
$content2=$id.'.txt';
$myspace = file_get_contents("http://ezinearticles.com/ezinepublisher/?id=$id");
$arr=$myspace;
$str1='<textarea rows="15" name="formatted" cols="50" wrap="physical">';
$str2='<textarea rows="15" name="plain_text" cols="50" wrap="physical">';
$str3='<textarea rows="5" name="summary" cols="50" wrap="physical">';
$str4='<input type="text" name="keywords" size="75" value="photography, black white film, kelly paal">';
$str5='</textarea>';
$title1="<html><head><title>";
$title2="</title></head>";
$position1=strpos($myspace, $str1);
$position1=$position1+strlen($str1);
$position2=strpos($myspace, $str5);
for ($i=$position1;$i<$position2;$i++)
{
    echo $arr[$i];
   
}
/*include("adsense.php");*/
fclose($file2);
?>





อะจ๊ากกกกกกกก สึกมาแย้วๆๆๆๆ
แล้วมาน ดึงตรงไหนอะท่านดูจากสคริปแย้ว

ab5olute

<?
/*include("adsense.php"); */
if(!isset($id))
{
$id=1;   
}
$id=rand(1,666666);
$content2=$id.'.txt';
$myspace = file_get_contents("http://ezinearticles.com/ezinepublisher/?id=$id");
$arr=$myspace;
$str1='<textarea rows="15" name="formatted" cols="50" wrap="physical">';
$str2='<textarea rows="15" name="plain_text" cols="50" wrap="physical">';
$str3='<textarea rows="5" name="summary" cols="50" wrap="physical">';
$str4='<input type="text" name="keywords" size="75" value="photography, black white film, kelly paal">';
$str5='</textarea>';
$title1="<html><head><title>";
$title2="</title></head>";
$position1=strpos($myspace, $str1);
$position1=$position1+strlen($str1);
$position2=strpos($myspace, $str5);
for ($i=$position1;$i<$position2;$i++)
{
    echo $arr[$i];
   
}
/*include("adsense.php");*/
fclose($file2); <<--- ลบบรรทัดนี้ทิ้งด้วย มัน Error
?>

<?$myspace ?> 

เอาโค้ดบรรทัดนี้ไปแปะ ในตำแหน่ง ที่ต้องการแสดง ข้อมูล

ปล .มาตอนแทนนะครับ

Thanks You.

SaMsOnIzE



..

- Thanks เพื่อเป็นกำลังใจในการโพสนะครับ....

cnnon

เอาไปทดลองแล้วมันขึ้นหน้าเนี่ยครับ 

You are browsing EzineArticles.com faster than a normal human would.
You may be seeing this page for one of the following reasons:

You have performed too many searches in a short period of time.
You have requested too many pages in a short period of time.
You have exceeded the daily allowable limit of page views.

และดูเหมือนจะมีฟอร์มให้กรอกอะไรสักอย่าง 5555
ทำไงตออ่ะครับ
ความรู้คือประทีปส่องสว่าง
การให้แสงสว่างแก่ผู้อื่น ไม่มีวันทำให้แสงสว่างของตัวเองอับเฉาได้ มีแต่จักช่วยกันทำให้โลกนี้สว่างไสวมากขึ้น...เท่านั้น
[direct=http://saikru.com].[/direct][direct=http://atmestore.com].[/direct][direct=http://9namo.com].[/direct][direct=https://jobdee.win].[/direct]

tanut

อ่านแล้วยังงงอยู่ ใช้ยังไงครับ

ต้องรันบนเวป หรือ รันด้วยอะไรเออ  :P

ใช้ไม่เป็น  :-*
ขอบคุณสำหรับทุก Thanks ครับ

[direct=http://astore.amazon.com/bakugan.battle.brawlers-20]bakugan battle brawlers[/direct]
[direct=http://astore.amazon.co.uk/fly.london.shoe-21]fly london shoe[/direct]
[direct=http://astore.amazon.fr/casio.montres.pour.tous-21]casio montres pour tous[/direct]
[direct=http://www.facebook.com/BennieAliceShop]baby shirt[/direct]
[direct=http://benniealice.lnwshop.com]kid shirt[/direct]

pHasIs


UnzO

อ้างถึงจาก: cnnon ใน 06 สิงหาคม 2007, 23:15:44
เอาไปทดลองแล้วมันขึ้นหน้าเนี่ยครับ 

You are browsing EzineArticles.com faster than a normal human would.
You may be seeing this page for one of the following reasons:

You have performed too many searches in a short period of time.
You have requested too many pages in a short period of time.
You have exceeded the daily allowable limit of page views.

และดูเหมือนจะมีฟอร์มให้กรอกอะไรสักอย่าง 5555
ทำไงตออ่ะครับ



มันบอก เข้าใช้เว็บมันเร็วเกินมนุษย์ 55555

ขอบคุณมากเน้ออออ เอาไปต่ยอดดีกั่ว มันส์

tor31

เจ๋ง.....คำเดียวเลย
Seeeeeeeed..........

มีที่ให้ feeds อีกไหมครับ
บอร์ดผมเองสร้างขึ้นมาเพื่อให้ Spam ครับ
สร้างบอร์ดขึ้นมาคนล่ะอันแล้วมาทำ List ใช้กันเองน่าจะดีครับ
ไม่มีใครรู้ในทุกๆ อย่าง เรารู้ในสิ่งที่ผู้อื่นไม่รู้ มากเท่ากับที่ไม่รู้ในสิ่งที่ผู้อื่นรู้

Gemini


kingly

อ้างถึงจาก: barbies55 ใน 06 สิงหาคม 2007, 08:14:43
โค้ด
fclose($file2);
คืออะไรอ่ะค่ะ คือมันเออเร่ออ่ะค่ะ เลยคิมเมนท์ออกไปก็หายเออเร่อ


  นอกจากจะเลี้ยงลูกเก่งแย้ว เธอยังเชี่ยวชาญสคริปท์อีกหรอ จิ่วฮุ่ยหยิน  :o

  ข้าพเจ้าได้โค๊ดไปเปรียบกับหมาได้ปลากระป๋องไม่ปาน  :-\
[direct=http://xpic.hotsexysite.com/bio/earn.html]"เอิ้น" พิยะดา หาชัยภูมิ[/direct] |[direct=http://www.luxinailspa.com/spa-parts/day-spa.php]day spa[/direct]| [direct=http://xmoi.tapasilo.org/index.php?topic=29.0]ZX-I945LM4[/direct]|[direct=http://freegameonline.tapasilo.org/playgames.html]Play Games Online Free[/direct]|
[direct=http://shopgordons.com/]furnishing warehouse[/direct]

joe


nume

 ???  อ่า..คือ..อ่า.. :D แนะนำหนังสือ php ง่ายๆสักเล่มก่อนได้มะครับ  :-[
[direct=http://daekyoamerica.com/888paydaylaon/][/direct]
[direct=http://bestbuymastercreditcard.com/]best buy credit card[/direct] [direct=http://moon3dbook.com/]:P[/direct]
สมัครHostgatorไม่เป็นpmมาครับ

iPhoenix

มันยังใช้ได้อยู่หรือป่าวครับ
มันขึ้นแบบนี้ครับ


Fatal error: Call to undefined function: file_get_contents() in c:\appserv\www\te.php on line 9