Jump to content

KILOGRAM

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Everything posted by KILOGRAM

  1. i am doing a code which says i need to create a file explorer which shows al the files and folders in ascending order.it should also provide a link to oen the folder and files in the same explorer. after doing this the code should be written in such a way that instead of resulting output in apage it should be stored in a data base. database structure is completely flexible.but it should include file name,file URL,meta tags of each file,full text count of the files. can any one has a code for this .please help me .
  2. any website that does the basic functions
  3. i am completely new to php but i have leareent aall the basics i want to develop a website that
  4. i am palnning to do project in php can any one have any idea what will be the best in doing can any one suggest me the topic for my topic i am intrested in developing the website thanx's
  5. I didnt get what u told, but I am sending the exact code which i am using for executing. The problem it is showing all files in c:\, and more over I am not able to access them. <?php function dirList ($directory, $startpath) { $results = array(); $handler = opendir($directory); while ($file = readdir($handler)) { if ($file != '.' && $file != '..') { $nextDir = $directory."/".$file; $results[] = preg_replace('%^'.preg_quote($startpath).'/%', '', $nextDir); if(is_dir($nextDir)) { $results = $results + dirList($nextDir, $startpath); } } } closedir($handler); return $results; } $results=$_POST['results']; $dir = dirname(""c:\php");//"c:\php"; $files = dirList($dir, $dir); foreach ($files as $file) { echo "<a href=\"$file\" title=\"$file\">$file</a><br>"; } ?> Please make requried modifiction.I am new to PHP.
  6. c:\php
  7. but still it say s unable to open the path
  8. but it does not link me to open the files in any folder.wheni clicked the file it is not openening
  9. but this is the same code that i had posted
  10. i need a help regarding the following code pasted below. <?php function dirList ($directory) { $results = array(); $handler = opendir($directory); while ($file = readdir($handler)) { if ($file != '.' && $file != '..') { $results[] = $file; dirList($directory); } } closedir($handler); return $results; } $results=$_POST['results']; $dir = "c:\php"; $files = dirList($dir); foreach ($files as $file) { echo "<a href=\"$file\" title=\"$file\">$file</a><br />"; } ?> the above code is fine in displaying the files and folders but when i am trying to click the any of the files and folders iam not able to open the file and folders. can any one modify the above code and please reply to me .it sjould have access to open the file or folder when clicked to the path provided by us.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.