I usually scrape links this way: $dom = new DOMDocument(); @$dom->loadHTML($html); $links = $dom ->...
Thanks for the feedback. Yes, I have been listing the entire text on the homepage. Will try the custom excerpt business. On a question like,...
I'm having a bit of a problem with Wordpress and Google. Basically, Google is indexing the homepage rather than the permalink for some stories....
The location of the sitemap is often included in robots.txt.
use pg_num_rows to check how many rows are in the result.
This seems to work OK. You can change the value of "$n<=" to change the font weight. 2 for semi-bold; 8 for really bold. // Create a new...
Use a cookie: if (isset($_GET['kw'])) { setcookie('keyword', $_GET['kw']); $kw = $_GET['kw']; } if (isset($_COOKIE['keyword']))...
I use this function. Obviously you can dump the ellipsis from the end if you want to. function wordlimit($string, $length = 50, $ellipsis =...
I think you want something like this: $_POST[firstkey][secondkey]=12; if (isset($_POST)) { foreach($_POST as $key=>$value){ if...
Use the onload event: <BODY onLoad="your_ajax_function_goes_here">
You are giving all your links the same ID (linkname), so all your getElementById("linkname") calls get the same innerHTML. Why not just pass the...
change $imageURL[$i] = "\"".$user->profile_image_url."\""; to: $imageURL[$i] = $user->profile_image_url; It's already a string so you don't...
$ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, "http://twitter.com/statuses/public_timeline.json"); curl_setopt ($ch,...
use fwrite()
Separate names with a comma.