คือผมไม่รู้จะคัด บทความออกจากurlได้อย่างไร เช่น
สวัสดีครับ
http://www.google.com/ 
สวัสดีครับhttp://www.google.com/
อยากได้โค้ดแยกบทความด้านบนอ่ะครับให้เหลือแต่
http://www.google.com/ 
อย่างเดียวอ่ะครับ
ใครinw ช่วยหน่อยครับ
ขอบคุณล่วงหน้าครับ
<?
$urls = 'http://'.$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd 
">
<html xmlns="
http://www.w3.org/1999/xhtml 
" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" type="text/javascript"></script>
<script>
jQuery.noConflict();
jQuery(document).ready(
function (){
var getcontent = jQuery('#showcontent').html();
var urls = '<?php echo $urls; ?>';
var newcontent = getcontent.replace(urls , '');
jQuery('#showcontent').html(newcontent);
});
</script>
</head>
<body>
<div id="showcontent"> ตัวอย่างสวัสดีชาวthaiseo<?php echo $urls; ?>ตัวอย่างบทความนะครับ</div>
</body>
</html>
ตัวอย่างนี้แบบง่ายๆนะครับ แต่ได้ผล