ple
December 26th, 2013, 21:08
من یک جدول رو با file_get_content در سایتم منشر کردم اما نمیخواهم چند کلمه ثابت در ان جدول در سایتم نمایش داده بشود مثل نام نویسنده نام سایت یا هر چیز دیگری چطور جلوی نمایش کلمات ناخواسته رو درسایتم بگیرم
<td colspan="5">متنی که نمایل نداریم چاپ شود
</td>
<?phpini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
include('simple_html_dom.php');
$html = new simple_html_dom();
// Create DOM from URL or file
$html = file_get_html('http://www.example.com');
$myContent = $html->find('table', 0)->plaintext; echo $myContent;
<td colspan="5">متنی که نمایل نداریم چاپ شود
</td>
<?phpini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
include('simple_html_dom.php');
$html = new simple_html_dom();
// Create DOM from URL or file
$html = file_get_html('http://www.example.com');
$myContent = $html->find('table', 0)->plaintext; echo $myContent;