WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Display Slashdot headers on your own site
Categories : HTML and PHP, HTML, PHP Update Picture
John Yaya
Date : Apr 09th 1999
Grade : 3 of 5 (graded 3 times)
Viewed : 5869
File : No file for this code example.
Images : No Images for this code example.
Search : More code by John Yaya
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

// 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