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" (MySQL) view

  1. CREATE TABLE Login
  2. (
  3. Column 1 char(12),
  4. Column 2 char
  5. )

"Untitled" (PHP) view

  1. <html><form action="index.php" method="post">
  2. Enter your calculation: <input type="text" name="calc" />
  3. <input type="submit" />
  4. </form>
  5. <br>
  6. Answer:
  7. <?php $calc = $_POST["calc"];
  8. echo 'calc("calc")';
  9. ?>
  10. </html>

"Untitled" (CSS) view

  1. <style type="text/css">
  2. body
  3. {
  4. background-image: url('Headder.gif','Footer.gif');
  5. background-repeat: repeat-x repeat-y;
  6. background-attachment:fixed;
  7. background-position: 50% 0% 50% 100%;
  8. }
  9. body {background-color: black}
  10. center {color: rgb(255,165,0)}

"Untitled" (CSS) view

  1. <style type="text/css">
  2. body
  3. {
  4. background-image: url('Headder.gif');
  5. background-repeat: repeat-x;
  6. background-attachment:fixed;
  7. background-position: 50% 0%;
  8. }
  9. body
  10. {

"Untitled" (Plain Text) view

  1. <form action="script.php" method="post">
  2. Script:
  3. <br>
  4. <textarea type="text" name="name" cols="100" rows="10"/>
  5. </textarea>
  6. <input type="submit" />
  7. </form>
  8.  
  9. <?php
  10. echo $_POST['name'];

"Untitled" (Plain Text) view

  1. <textarea name="code" rows="10" cols="100"></textarea>
  2. <form name="input" action="http://website.com/code.php" method="post">
  3. <input type="submit" value="Submit">
  4. </form>
  5.  
  6. <?php
  7. file_put_contents("code.php",$_POST['code']);
  8. Header("Location: http://website.com/code.php");
  9. ?>

"Re: Re: #1424" (Plain Text) view

  1. CREATE TABLE Song
  2. (
  3. Date Added varchar,
  4. Song Name varchar,
  5. Song Artist varchar
  6. )

"Re: #1424" (Plain Text) view

  1. CREATE TABLE Song
  2. (
  3. Date Added time(),
  4. Song Name varchar,
  5. Song Artist varchar
  6. )

"Untitled" (Plain Text) view

  1. CREATE TABLE Song
  2. (
  3. Date Added date(ddmmyyyy),
  4. Song Name varchar,
  5. Song Artist varchar
  6. )

"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.');

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