how to get "specific" contents of a webpage? ££££££££ $filename="http://blahblah/index.php"; ........... ob_start(); $message = @readfile($filename); if (false !== $message) { // no readfile error $message = ob_get_contents(); } ob_end_clean(); if I echo $message, there is no problem for it show on the screen, however, it won't get inserted into database which is frustrating me a lot(if change $message="ok", it can be inserted perfectly fine): $insertQuery = "insert into posts values ( \"{$fid}\", \"{$tid}\", \"{$pid}\", \"{$author}\", \"{$message}\", \"{$subject}\" )"; @mysql_query ($insertquery, $conn); based on this, even if I could insert $message later on, how do I differentiate the contents from images, such as I only want to insert text info of $message and despite all the images. thank you, I'm getting frustrated. Bo -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php