|
|
|
// This code should only be used if you have a dinky site like
// mine, which doesn't get a lot of hits. Create a shell script
// and cron job if your site is rather busy.
// I've posted a tutorial to this type of script at
// http://www.yps.org/message.php3?selectid=8
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="2" CELLSPACING="0">
<TR ALIGN="Center" VALIGN="Middle">
<TD ALIGN="Center" VALIGN="Middle">
<A HREF="http://slashdot.org" onMouseOver="window.status='slashdot.org'; return true" on MouseOut="window.status='';
return true">
<IMG SRC="images/sd.gif" BORDER="0" ALIGN="Absmiddle" WIDTH="88" HEIGHT="31" ALT="slashdot.org">
</A>
</TD>
</TR>
<TR ALIGN="Center" VALIGN="Middle">
<TD ALIGN="Center" VALIGN="Middle" BGCOLOR="#007070">
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="2" CELLSPACING="0">
<TR ALIGN="Center" VALIGN="Middle" BGCOLOR="#FFFFFF">
<TD ALIGN="Left" VALIGN="Middle">
<?
$MAXLEN = 2048;
$PORT = 80;
$i = 0;
$fp = fsockopen("slashdot.org", $PORT, &$errno, &$errstr);
if(!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs($fp,"GET /ultramode.txt HTTP/1.0\n\n");
while (!feof($fp)) {
$fline = fgets($fp,$MAXLEN);
if (strstr($fline,'%%')) {
if ($i == 0) {
$i++;
} else {
$fstring = chop(fgets($fp,$MAXLEN));
$fhref = chop(fgets($fp,$MAXLEN));
if (!empty($fstring)) {
echo "<FONT FACE=\"Arial\" SIZE=\"2\" COLOR=\"#000000\">·</FONT> ";
echo "<A HREF=\"$fhref\"><FONT FACE=\"Arial\" SIZE=\"2\" COLOR=\"#000000\">$fstring</FONT></A><BR>
\n";
}
}
}
}
fclose($fp);
}
?>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
|
|
| webcam cam view image ispy browser independant Categories : Graphics, HTML, HTML and PHP, PHP | | | How to preset a text string in a textarea input field Categories : HTML, HTML and PHP, PHP, Beginner Guides | | | This script shows you the 7th latest php items from the mailing list archive on zend.com Categories : HTML, HTML and PHP, HTTP, PHP | | | url,display url,complete url,fetch url,grab Categories : HTML and PHP, HTML, PHP | | | GonxTabs : Create elegant HTML tabs based interface Categories : Navigation, HTML, HTML and PHP, PHP | | | class formHTML build your HTML Forms from PHP Categories : PHP, PHP Classes, HTML and PHP, HTML | | | Automatic generation of HTML code for a table. OO interface. Can define colspan, rowspan, table style, cell style, and data style. Simple, but
effective. Categories : PHP, PHP Classes, HTML, HTML and PHP | | | Snipe.Net's Web Design Color Scheme Previewer- Allows uses to input hex
codes for their text, background, and link colors, and preview the color
scheme with their background image. Example:
http://www.snipe.net/tech/snipeschool/hex.php3 Categories : PHP, HTML and PHP, General, Graphics, HTML | | | Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP, PHP, HTML, PDF, Excel | | | Real simple example of removing HTML tags from text then changing \n (new line) to <br>. Could be used in a forum for instance. Categories : HTML, PHP, HTML and PHP, Beginner Guides | | | How to use regular expressions to get the list of links from an HTML page Categories : PHP, Regexps, HTML, HTML and PHP | | | A simple class with some HTML output functions that would come in handy for consistent page layout etc. Categories : PHP, PHP Classes, HTML and PHP, HTML, Navigation | | | PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use! Categories : HTML and PHP, Email, PHP, Perl, HTML and PHP | | | Popup Menu 0.5, popup, select, html, state-maintaing Categories : HTML, PHP, HTML and PHP | | | a function that builds an HTML select list from any mysql table. Categories : PHP, MySQL, HTML and PHP | |
| | | | John Yaya wrote :6
As my web site has gotten busier, I've found it
necessary to redo the Slashdot
and Freshmeat headlines I had previously created.
Each hit to my news page
simultanously created a hit to both of theirs. This is
a BAD THING, and so I
came up with a solution.
http://www.yps.org/message.php3?selectid=15
| |
|
|
|