|
|
|
<? /******************************.
/ *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 | | | Save time debugging PHP3 under UNIX/Linux using linked .phps files Categories : HTML and PHP, Debugging, PHP | | | 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 | | | Customizable encoding and decoding strings with security. Categories : PHP, Strings, HTML and PHP | | | Check parameters validity. Paranoia was designed to check the validity of the parameters that a php page will receive after a form submission. It can be used to check the variables sent by POST or GET Categories : Algorithms, HTML and PHP, PHP, Variables | | | Sed, a coder's best friend. This lovely linux command allows you to swap strings in a file. Great for changing a variable name in a script with
multiple files. Categories : HTML and PHP, HTML and PHP | | | Record Set Paging with PHP (RSP) Categories : PHP, MySQL, Navigation, Databases, HTML and PHP | | | Alternating background color for HTML table rows Categories : PHP, Databases, MySQL, HTML and PHP | | | Parse string to find sub-string between two arbitrary strings Categories : PHP, Strings, HTML and PHP, Arrays | | | The class to check load time of your script
VERY usefull for relatively slow applications, but not only.. Categories : PHP, PHP Classes, Debugging | | | Database resultset navigation Categories : PHP, HTML and PHP, Databases, MySQL, Navigation | | | webcam cam view image ispy browser independant Categories : Graphics, HTML, HTML and PHP, PHP | | | Function to do live population of HTML's <Select> tag from a Table Categories : PHP, MySQL, HTML and PHP, Databases | | | This program will take data from a user via a web based form, validate it, show it
to the user for re-validation, and finally insert it into the database. Plenty of
sanity checking on the fields in the form.
Categories : MySQL, HTML and PHP, PHP, Complete Programs, Databases | | | CALENDAR - easy calendar-navigation with PHP Categories : PHP, Date Time, HTML and PHP, Calendar | |
|
|