...

View Full Version : Directory lister, Identify Folder diff than File



Peuplarchie
05-05-2006, 01:43 AM
Good day to you all,

I need to make the folder from my dir lister point to a link different of my files ?

I'm working with windows NT server... and php 4.3.2

Thanks !

Here is my code :


<?php
$file = $_GET['file'];
if(isset($_POST['text']))
{
if(get_magic_quotes_gpc())
{
$_POST['text'] = stripslashes($_POST['text']);
}
$handle = fopen($file, 'w') or die("Unable to open file for writing");
fwrite($handle, $_POST['text']);
fclose($handle);
}

$text = "";

if(is_readable($file))
{
$text = file_get_contents($file);
}
?>



And later on the page in the html part :



<textarea class="zz" name="text" id="text" cols=170 rows=10 wrap="off"><?php echo $text; ?></textarea></td></tr>



and to add anothe challenge I need it to open in another frame wich is the verticaly siding this one.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum