Jump to content

mageeda

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mageeda's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. where is the htaccess or apache? is that in my godaddy dashboard?
  2. ya.. its godaddy.. it supports php.. how else can i browse a directory??
  3. I need help. I am trying to figure out why some code i copied and pasted into dreamweaver works in that program but once i create a index.php file and put it on the hosting site when i try to run it - all i see is the code on the page... can someone help??? here is the code.. it should just display the files in the folder... thanks <?php if ($_POST['submit']) { copy($_FILES['file']['tmp_name'], $_FILES['file']['name']); } ?> <html> <head><title>page</title> </head> <body> <?php $dir=opendir("."); $files=array(); while (($file=readdir($dir)) !== false) { if ($file != "." and $file != ".." and $file != "index.php") { array_push($files, $file); } } closedir($dir); sort($files); foreach ($files as $file) print "[A href='$file'>$file</a] "; ?> <form action='<?php echo $PHP_SELF ?>' enctype='multipart/form-data' method='POST'> Add a new file: <input type='file' name='file'> <input type='submit' name='submit' value='Add File!'> </form> </body> </html>
×
×
  • 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.