Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $file = $_GET['file'];
- //echo "Intentando abrir -> " . $file;
- if (file_exists($file)){
- echo "El archivo existe!";
- }
- if (isset($file)){
- $f = fopen($file,"r"); //or die("Error al abrir el archivo");
- $buffer = "";
- if ($f!=false){
- while(!feof($f)){
- $buffer .= fgets($f,4096) .'\n';
- }
- }
- fclose($f);
- echo $buffer;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment