|
|
|
<? /******************************.
/ *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 | | | A simple class with some HTML output functions that would come in handy for consistent page layout etc. Categories : PHP, PHP Classes, HTML and PHP, HTML, Navigation | | | Calendar using Date function Categories : HTML and PHP, PHP, Date Time, Calendar | | | phpCards - PHP/mySQL postcard script with web based admin to add, edit, and delete cards and categories. Very easy to install. Categories : PHP, Complete Programs, HTML and PHP, MySQL | | | Constantly refresh your PHP/HTML page data. Categories : PHP, HTML and PHP, Sybase | | | Select with current month Categories : PHP, HTML and PHP, Date Time, Arrays | | | PHP4 session helper HTML file.
Categories : PHP, Java Script, HTML and PHP, Sessions | | | html split bar used to split in multiple pages a database result Categories : HTML and PHP, Databases, MySQL, PHP | | | PageRank Display Categories : Search Engines, HTML and PHP, PHP | | | Automatically printing the contents of an sql table in MySQL. Categories : MySQL, PHP, HTML and PHP, Databases | | | Dynamic Calender in PHP, Javascript and HTML. Categories : PHP, Java Script, HTML and PHP, Calendar | | | phpWebCam v1.0- Webcam management software - Automatically checks if you're online, and comes with a caption tool capable of handling multiple users. Categories : PHP, Complete Programs, HTML and PHP | | | 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 | |
|
|
|