PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

Mac4's Recent Pastes

"Untitled" (Plain Text) view

  1. <?php
  2.         $upload_path = './files/'; // The place the files will be uploaded to (currently a 'files' directory).
  3.  
  4.   $filename = $_FILES['userfile']['name']; // Get the name of the file (including file extension).
  5.   $ext = substr($filename, strpos($filename,'.'), strlen($filename)-1); // Get the extension from the filename.
  6.  
  7.  
  8.   // Check if we can upload to the specified path, if not DIE and inform the user.
  9.   if(!is_writable($upload_path))
  10.       die('You cannot upload to the specified directory, please CHMOD it to 777.');

"Untitled" (Plain Text) view

  1. <?php
  2.   if ($_FILES["file"]["error"] > 0)
  3.     echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
  4.     else
  5.     {
  6.     echo "Upload: " . $_FILES["file"]["name"] . "<br />";
  7.     echo "Type: " . $_FILES["file"]["type"] . "<br />";
  8.     echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
  9.     echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";    if (file_exists("upload/" . $_FILES["file"]["name"]))
  10.       {

"Untitled" (PHP) view

  1. <?php
  2. if ((($_FILES["file"]["type"] == "application/rar")
  3. && ($_FILES["file"]["type"] == "application/exe"))
  4.   {
  5.   if ($_FILES["file"]["error"] > 0)
  6.     {
  7.     echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
  8.     }
  9.   else
  10.     {

"Untitled" (Plain Text) view

  1. How do i make it so if someone puts
  2. <?php
  3. echo "hello";
  4. ?>
  5. into a box and they press show it will show them "hello"?

"Re: #1411" (Plain Text) view

  1. <form action="login.php" method="post">
  2. Enter your name: <input type="text" name="name" />
  3. <br>
  4. Enter your password <input type="password" name="pass" />
  5. <input type="submit" />
  6. </form>
  7.  
  8. Hello <?php $_POST["name"] ?> .
  9. Your Name pass and IP have been saved for when you next login.

"Untitled" (Plain Text) view

  1. <form action="login.php" method="post">
  2. Enter your name: <input type="text" name="name" />
  3. <br>
  4. Enter your password <input type="password" name="pass" />
  5. <input type="submit" />
  6. </form>
  7.  
  8. Hello <?php $_GET["name"] ?>
  9. Your Name pass and IP have been saved for when you next login.

"Untitled" (Plain Text) view

  1. <?php
  2. eval ()
  3. ?>
  4. what can i put in eval(here)

"Untitled" (Plain Text) view

  1. <?php
  2. eval ("echo test")
  3. ?>

"Untitled" (Plain Text) view

  1. <?php
  2. $script = $_GET['script'];
  3. eval($script);
  4. echo $script;
  5. ?>

"Untitled" (CSS) view

  1. <style type="text/css">
  2. #title {
  3.     text-align: center;
  4.     color: rgb(255,255,255);
  5.     font-family: Lucida Console;
  6.     font-size:26px
  7. }
  8. body {background-color: black}
  9. a:link { color: rgb(100,100,100); }
  10. a:visited { color: rgb(100,100,100); }

« Page: 1, 2, 3, 4.. »