Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #// scripts7.com
- #// twitter.com/scripts7com
- #// Change index.php to whatever you want V.2
- #// You can just type : /index.php and gonna touch index.php for you!
- #// OR Just type the all path of whatever you want!
- #
- #
- # YOU NEED TO PUT THE ALL PATH NOT JUST /index.php EX: /home/user/public_html/index.php
- #$s7 = "/home/user/public_html/css/" #<---! 777 or 755
- $s7 = "/home/scripts7com/public_html/test/index.php";
- #// Number 1-1 : Don't change "w" just leave it like that
- $fi = fopen( $s7, "w" );
- if( $fi == false )
- {
- #// if doesn't work then will see this error
- echo " Make Sure it's 755 or 777 ";
- exit();
- #// exit if doesn't work
- }
- #// but " IF IT WORK THEN " change this one "scripts7.com \n" to whatever you want
- fwrite($fi, "scripts7.com \n" );
- fclose($fi );
- #// Number 2-1 :
- #// Now In this one " you need to copy the path as same as " Number 1-1 : "
- $s7 = "/home/scripts7com/public_html/test/index.php";
- $fi = fopen( $s7, "r" );
- if( $fi == false )
- {
- #// IF you see this error , means ' we can't open the file to edit it but ? WE CAN Write into it :(
- echo ( "We can't open the file .. " );
- exit();
- }
- #// Number 3-1 : If you see this one , means " DONE "
- $f = filesize( $s7 );
- $ft = fread( $fi, $f );
- fclose( $fi );
- echo "The File Name : $s7 <h3> has been changed";
- ?>
Add Comment
Please, Sign In to add comment