Jump to content

Maq

Administrators
  • Posts

    9,363
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Maq

  1. You did not mention the uname -a command in your first post. The SSH client that I use (from ssh.com) has a GUI terminal where you can browse the directories and files. My question was, is there a standard folder I can look in to find the OS information? From your response I guess the answer is no.
  2. Echo $result->num_rows
  3. Cool, think I'm gonna buy a sweatshirt. The best one is the bib...
  4. Sorry, I meant when you browse the folders with the GUI of SSH. Basically my question was if you don't know the command, is there a file I can look in to view the OS version, distro etc.?
  5. haha yeah it def is.
  6. Put this at the top of your script: ini_set ("display_errors", "1"); error_reporting(E_ALL); Run it, and see if there are any errors.
  7. a few years should be enough to know how to prevent injections. Anyway there r plenty of examples of how to prevent these types of attacks.
  8. ok cool topic solved?
  9. Minor change: The links are black now and when they're active, the cursor changes, and it's underlined. It used to be blue so people could recognize it. Here's a pic. [attachment deleted by admin]
  10. SQL injections can be performed with just view only, it's being injected into your code. Please read: SQL Injections
  11. Maq

    Moving servers?

    Are you running a linux server? If so, do a FSCK run in the command line. Here's how: FSCK Run
  12. Can you post the code? Do you get errors? Try this example's format: (PHP.net ftp_connect()) $ftp_server = "ftp.example.com"; // set up a connection or die $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); ?>
  13. What does that mean? Are there any errors? If not do you have display_errors turned on? Try: if (isset($_POST['delete'])) {
  14. I'm not sure about this but I think you need to surround it by the tag like this: $ips = array_map('trim', file('ban.txt')); if (in_array($_SERVER['REMOTE_ADDR'], $ips)) {exit('You have been banned!');} ?>
  15. My solution gave me enough information for what I need but do you happen to know a command or where to look in the GUI SSH to find all the information?
  16. K, I will check that out thanks.
  17. Figured it out. You have to go into the "proc" directory and type "cat version" in the command line. In addition, there are a lot of other useful info in that directory.
  18. Make it 777 for now to be sure but that should work. 644 is only write for the owner.
  19. -You need to give proper permission to the ban.txt file. -$mes isn't properly defined Fix that and tell me what the errors are.
  20. Check this tutorial out: Tizag Upload
  21. No shit. What are your errors? Do you have error reporting temporarily turned on? ini_set ("display_errors", "1"); error_reporting(E_ALL);
  22. Are there errors? If you don't have them turned on put: ini_set ("display_errors", "1"); error_reporting(E_ALL); At the top. What's the output?
  23. I know I'm running a linux server but what's the command for finding the exact operating system via SSH?
  24. Maq

    [SOLVED] columns

    Ah ok sorry. You should get the number of results and when you reach over half start a new column. I don't know if it's the best way to do it but I should work. $half = mysql_num_rows($result)/2; while(...){ . . if($t > $half) { echo ""; } $t++; }
  25. Yep, consider it a compliment.  ;D
×
×
  • 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.