|
|
<? /******************************.
/ *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 | |
| |
| |
|