Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.
View The Source Code of Any PHP File - PHP Code Bank
View The Source Code of Any PHP File
JUST UPLOAD THIS FILE AND THEN TO VIEW THE SOURCE OF
ANY FILE USE THE FOLLOWING URL:
HTTP://your_server/view.php?file=file_you_want_to_view.php
THATS ALL.
<html>
<?php
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
/*
======================================================
= INSTRUCTIONS =
======================================================
JUST UPLOAD THIS PHP FILE ON THE FOLLOWING URL:
HTTP://your_server/view.php?file=file_you_want_to_view.php
THATS ALL.
*/
?>
<head>
<title>PHP Source Viewer</title>
<style type="text/css">
TD { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana }
</style>
</head>
<body>
<?php
$size=filesize($file);
$file_size = round($size / 1024 * 100) / 100 . "Kb";
echo"<center><FONT SIZE=2 face=arial>Viewing <B>$file</B> Filesize: <B>$file_size</B></FONT><table width=94% border=1 bordercolor=#AFC6DB cellspacing=0><tr><td>";
$po=show_source($file);
echo "</td></tr></table><BR><FONT SIZE=1 face=arial>Powered By: <A HREF=http://www.cgixp.tk target=_new>PHP Source Viewer</A></FONT></center>";
?>
</body></html>
Comments
killgooglecom 12 years ago
Test your code before you submit it, there are 7 errors, I will post a de-bugged script later.