Home
Software Programming Learning
EDA & IP & IC
Goodies
News
Contact Us
Article
Contents Of Article
Previous Article
SNO:
Writer:
Next Article
Title:
<?php $flag1st = 1; if (!empty($_POST['program'])) $flag1st = 0; if ($flag1st != 1) { include("password.php"); $revisedmyprogram = str_replace('\"','"',$_POST['program']); $revisedmyprogram = str_replace("\'","'",$revisedmyprogram); if ($pwmismatch != 1) { $fp = fopen('myprogram.php','w'); fwrite($fp,$revisedmyprogram); fclose($fp); } } ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Quick-Run PHP</title> <style> div { text-align:center; font-family:Calibri; font-weight:bold; font-size:20px; color:#0070C0; } textarea, input { font-family:Calibri; font-size:18px } </style> </head> <body> <div> <form method="post" action="quickrunphp.php"> <input type="submit" value="ToServer"/><br/> <?php if ($flag1st != 1) echo '<a href="myprogram.php" target="_blank">Run</a><br/>'; ?> AUTHORIZATION CHECKING -> Username:<input type="text" name="username"/> Password:<input type="password" name="password"/> PHP Program:<br/> <textarea name="program" rows="30" cols="150"><?php if ($flag1st != 1) { $revisedprogram = $revisedmyprogram; echo $revisedmyprogram; }?></textarea><br/> </form> </div> </body> </html>
Previous Article
Next Article