Skip to content

Instantly share code, notes, and snippets.

@c00kiemon5ter
Created May 21, 2010 19:53
Show Gist options
  • Save c00kiemon5ter/409334 to your computer and use it in GitHub Desktop.
Save c00kiemon5ter/409334 to your computer and use it in GitHub Desktop.
myloader: change the owner/group dont set 777 permisions
file: README.mrdn
- 2) chmod 777 myloader and chmod 777 myloader/uploads to make both directories writeable by apache
+ 2.1) chown apache:apache myloader; chmod 755 myloader;
+ 2.2) chown apache:apache myloader/uploads; chmod 755 myloader/uploads;
--------------------------------------------------------------------------------
file: index.php
== 123c123
- echo "The file <b>".basename( $_FILES['uploadedfile']['name'])."</b> has been uploaded<br/>";
+ echo "<br/>The file <b>".basename( $_FILES['uploadedfile']['name'])."</b> has been uploaded<br/>";
== 136c136,137
- echo '<a href="index.php">Upload a new file!</a>';
+ #echo '<a href="index.php">Upload a new file!</a>';
+ echo "<a href=\"index.php\">Return to MyLoader!</a><br><br>";
== 152c153
- echo "&nbsp;&nbsp;<input type=\"button\" value=\"R\" name=\"submit\" onclick=\"window.location.href='random.php';return false\" />";
+ echo "&nbsp;&nbsp;<input type=\"button\" value=\"/b/\" name=\"submit\" onclick=\"window.location.href='random.php';return false\" />";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment