Opera Mini 8 Secret codes

Image
As I have already said that I'll share secret codes of opera mini in last post about secret codes of uc browser , I'm sharing the secret codes of opera mini which works on all new versions of opera mini in all platforms like Java, Android and others.

Simple Php script to edit text files

After a long break in PHP side Im posting this script to edit any text files in the server. There are also lots of free online text editors. But there is a need to have some own text editor in your server. Im also using this script to edit text files in my server.
edit wrong text

Php script to edit text files

As I've already said this is simple form of the script so it is programmed to edit a single predefined text file(test.txt). This program cannot navigate through your server so place the text files in the folder where the php file is located.

Installation

Create a separate folder where all txt files are kept
Copy the below code and create index.php of that folder
Change the $text name with your text file name with extension chmodded to 777
As the program does not able to create txt in its own, you should create on your own.

Editing for your preference

To edit multiple files you may use Get function in text variable. $text = $_GET['n'];
When you are using multiple files call yourdomain.com/folder/index.php?n="name" or use a form like this
<form action="yourdomain.com/folder/index.php"><input type="text" id="n" name="n"><input type="submit" value="load"></form>
As I've already said you need to create files on your own and remember them. You can also create a dropdown list with all files. Don't forget to chmod files to 777 <!-- </xmp--><br> <xmp>$text = "test.txt" ;
if (isset( $_POST [ 'content' ]))
{
$content = stripslashes ( $_POST [ 'content']);
$fp = fopen ( $text , "w" ) or die ( "Error opening file in write mode!" );
fputs ( $fp , $content );
fclose ( $fp ) or die ( "Error closing file!" );
}
?> <form action="<?php echo $_SERVER [ "PHP_SELF" ] ?>" method="post">
<textarea rows="25" cols="40" name="content"><?php readfile ($text);?></textarea>
<input type="submit" value="Save">
</form> If you are able to edit the code and improve it please comment below and i will update it.thank you

Comments

Popular posts from this blog

Php script to convert Jad to Jar

Opera Mini 8 Secret codes

10 Addictive java Games 2014