|
|
<? /******************************.
/ *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>
<? } ?>
|
|
| 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 | | | Changing the default 30 seconds time limit of PHP scripts
Categories : PHP, PHP Options and Info | | | Random Image Display Categories : PHP, Filesystem, Graphics, HTML and PHP | | | Security, Password lock out after three tries, authorization fails and is logged locked out of account till admin decides he will unlock it. Categories : Sessions, PHP, MySQL, PHP Options and Info | | | 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 | | | Produces browser-safe strings while preserving HTML tags. Categories : Strings, HTTP, PHP, HTML and PHP | | | Step by Step installation
manual for PHP4.1.x on Windows 2000 based systems running IIS5
using CGI or ISAPI Categories : PHP, PHP Configuration, PHP Options and Info, Windows 2000 | | | A Custom Error Handling And Debugging Class Categories : PHP, PHP Classes, Debugging, Errors and Logging | | | If you want to create select buttons featuring current date this example will show you how... Categories : Date Time, HTML and PHP, PHP | | | How to pass an array from one PHP Script to another via an HTML form Categories : PHP, HTML and PHP, Arrays | | | Record Set Paging with PHP (RSP) Categories : PHP, MySQL, Navigation, Databases, HTML and PHP | | | Using select multiple with php3 Categories : HTML and PHP, PHP | | | The Nearly Perfect Contact Us Form Categories : PHP, Form Processing, HTML and PHP | |
| |
| |
|