VBScript Test:
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery _
("Select * from Win32_PerfRawData_PerfProc_ThreadDetails_Costly",,48)
For Each objItem in colItems
Wscript.Echo "Caption: " & objItem.Caption
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Frequency_Object: " & objItem.Frequency_Object
Wscript.Echo "Frequency_PerfTime: " & objItem.Frequency_PerfTime
Wscript.Echo "Frequency_Sys100NS: " & objItem.Frequency_Sys100NS
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "Timestamp_Object: " & objItem.Timestamp_Object
Wscript.Echo "Timestamp_PerfTime: " & objItem.Timestamp_PerfTime
Wscript.Echo "Timestamp_Sys100NS: " & objItem.Timestamp_Sys100NS
Wscript.Echo "UserPC: " & objItem.UserPC
Next
PHP3 Test:
if (!function_exists("smiliescmp")) {
function smiliescmp ($a, $b) {
if (strlen($a) == strlen($b)) {
return strcmp($a, $b);
}
return (strlen($a) > strlen($b)) ? -1 : 1;
}
}
Perl and Textile!
FileLoop: foreach $arg_file (@files) {
my($out)="";
GetIni ("$arg_dir$arg_file");
my( $HttpBody, $type ) = get_url( $URL );
my $re = qr|$REG_EXP|si;
if ($REG_EXP ne '') {
while (($HttpBody =~ m|$re|g) && ($MAX_MATCHES > 0)) {
my $e = '$out .= "'.$MSG_TEMPLATE.'"';
eval($e);
$MAX_MATCHES--;
}
$out = &ExpandUrls(&Squeeze($out),$URL);
} else {
$out = 'REG_EXP is not defined';
}
#sneaky way around an if statement
($out eq '') && ($out = 'No pattern match found');
#
print "<hr /><a href="$URL"><h3>$TITLE</h3></a><h4>$DESCRIPTION</h4>";
print $out;
}
Well, what do you think?
Similar Posts:
- None Found
Pages: 1 2
Hi, this Q is some kind of outa topic, but what function calls “finish reading” link? My site is organized like yours, but I can’t find how to organize it like this one.
Cheers!
You might wanna update those links to the source, they are broken.
Yep, sorry … re-ordered that.
I knew, at the time, that I ought to have posted that code in a … perma-link type location, ah well, I fixed the links now.
WP version 1.0.1 the b2var.php is now just var.php in the includes folder.
Just fyi.
regards,
Jepa
Sorry not var.php, but vars.php
Links still broken to the readme file.
It’s this tag here:
< ?php the_content("finish reading..."); ?>The trick is to put a<!--more-->tag in your post wherever you want to break between what gets put on the front page, and what get’s put inside, and then to put a<!--nextpage-->tag for page breaks. It’s all in WordPress readme fileWow, I love that textile & beautifier
Yeah, that’s wierd. Anyway, the readme is just about how to get the multi-page posts. And it’s just the readme that comes with WordPress, you’ll get much more up-to-date information from the WordPress Docs