WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search


Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
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 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
פרייסז - השוואת מחירים בסופר
ZeroLag.com
Texas Holdem Poker Evangelists

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 : PhpView 0.1 - simple php viewer, using temporary files and frames.
Categories : PHP, PHP Options and Info, Debugging, HTML and PHP Update Picture
zom mose
Date : Dec 10th 1999
Grade : 3 of 5 (graded 8 times)
Viewed : 21019
File : No file for this code example.
Images : No Images for this code example.
Search : More code by zom mose
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<? /******************************.
/ *PhpView* - 0.1 - 10 dec 1999 |
| written by mose <[email protected]> |
| Just put that file anywhere |
| in an unix apache+php webtree |
| Call it with your browser |
| you'll save time in debugging. |
| ------------------------------ |
| That piece of code is free |
'------------------------------*/ ?>

<?        if (empty($pvfile)) { $pvfile = "/tmp/test.".time().".php"; } ?>
<?        if ($pvin == "top") { ?>
<html><body bgcolor=#ffffff>
<form action=<? echo $PHP_SELF; ?> method=post target=content>
<input type=hidden name=pvin value=content>
<input type=hidden name=pvfile value="<? echo $pvfile; ?>">
<textarea name=pvtext cols=80 rows=12 wrap=no><? echo "$pvtext"; ?></textarea>
<input type=submit name=pvaction value='View'>
</form></body></html>
<?         } elseif ($pvin == "content") {
                if (!empty($pvtext)) {
                        $pvfp = fopen($pvfile,"w");
                        fputs($pvfp,"$pvtext");
                        fclose($pvfp);
                        echo "Result ($pvfile)";
                        echo "<hr noshade size=1>\n";
                        if (is_file($pvfile)) {
                                $pvtimein = split(" ",microtime());
                                include "$pvfile";
                                $pvtimeout = split(" ",microtime());
                                echo "<hr noshade size=1>\n";
                                $pvlapsm = $pvtimeout[0] - $pvtimein[0];
                                $pvlapss = $pvtimeout[1] - $pvtimein[1];
                                echo "TimeSpent ".$pvlapss+$pvlapsm;
                        }
                } else {
                        echo "Type in the box your php or html text, it will be included in the bottom
frame.<br>";
                        echo "<b>PhpView</b> also displays time spent to do it.";
                }
        } else { ?>
<html>
<head><title>PhpView</title></head>
<frameset rows="230,*">
        <frame name=top src=<? echo $PHP_SELF; ?>?pvin=top frameborder=0 framespacing=0>
        <frame name=content src=<? echo $PHP_SELF; ?>?pvin=content frameborder=0 framespacing=0>
</frameset>
</html>
<?        } ?>



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
PHP, simple, counter, bala
Categories : HTML and PHP, PHP, PHP Options and Info
Save time debugging PHP3 under UNIX/Linux using linked .phps files
Categories : HTML and PHP, Debugging, PHP
CSS style switcher
Categories : PHP, CSS, HTML and PHP, Arrays, Sessions
Simple PHP program which calls other PHP program you can pass the variables to other PHP program : by Raju
Categories : PHP, PHP Options and Info, Regexps, Program Execution
dynamic table columns
Categories : PHP, HTML and PHP, Arrays, Databases, MySQL
Function that allows a Javascript cookie to be set after HTML has been outputted to the page.
Categories : PHP, Java Script, Cookies, HTML and PHP
Parse a HTML-document for a certain tag and display its content and attributes.
Categories : HTML and PHP, PHP, Tag Extractors
Website Engine
Categories : PHP, HTML and PHP, Templates
How to use regular expressions to get the list of links from an HTML page
Categories : PHP, Regexps, HTML, HTML and PHP
Football News Aggregator
Categories : PHP, Object Oriented, PHP Classes, Rich Site Summary (RSS), HTML and PHP
Complex paging with no resultset limit
Categories : PHP, MySQL, Databases, Output Control, HTML and PHP
Customizable Calendar Class
Categories : HTML and PHP, Date Time, PHP, PHP Classes, Calendar
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
This script allows people to add their favorite quotes to your website. This could easily be modified to be a guestbook script or comment page script.
Categories : PHP, Complete Programs, HTML and PHP, Misc