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
Internet Security Software
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
פרייסז - הכח לקנות עובר לידיים שלך
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 : 20279
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 <php@mose.com> |
| 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>
<?        } ?>



PHP, simple, counter, bala
Categories : HTML and PHP, PHP, PHP Options and Info
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
Save time debugging PHP3 under UNIX/Linux using linked .phps files
Categories : HTML and PHP, Debugging, PHP
Multiple Select box, Select multiple Items from Menu.List box
Categories : PHP, HTML and PHP, Beginner Guides
This script contains 2 functions: 1 to create html select object based on your own customer date format entry- "M d Y h:i.... etc". The second function processes the select object on submit back to unix time.
Categories : PHP, Calendar, Date Time, HTML and PHP
If you want to create select buttons featuring current date this example will show you how...
Categories : Date Time, HTML and PHP, PHP
Directory TreeView - File Manager & Explorer - FTP - Utility - PHP/HTML -
Categories : PHP, Directories, FTP, Filesystem, HTML and PHP
Website colour changer
Categories : PHP, HTML and PHP, Date Time
Creates three SELECT form fields: Month, Day, and Year. You give it a string which will be used to make the name for the three fields, and a number of seconds to use as the default date. If you give it blank for this value, the current date is used.
Categories : HTML and PHP, PHP, Date Time
A quick way set data from a form to a function or other places where you can lose scope.
Categories : PHP, HTML and PHP, Variables
Newbie Notes #4 - Trapping dumb MySQL query errors
Categories : PHP, Databases, MySQL, Debugging, Beginner Guides
Pageinfo: Array containing page URI, page query string (parameters), request method (GET or POST) and the complete URI
Categories : Variables, PHP Options and Info, Arrays, URLs, PHP
PHP Tester - Lets you test php code from a browser (modification).
Categories : PHP, HTML and PHP, Testing
Control ITunes playlist via the web with PHP a full working and simple example
Categories : PHP, HTML and PHP, Multimedia, User Interface
function textwrap will wrap text to any desired width using <BR>\n as the default line break. Default wrap width is 80 columns.
Categories : Strings, HTML and PHP, PHP