Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You failed to check that $q is a resource before using it within mysql_fetch_array.
  2. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=361034.0
  3. Of course you can. Did you try it?
  4. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=361059.0
  5. Because (as I said) you need to move your UPDATE code so that it is within your loop.
  6. No. That would completely depend on the exploit. If they have access to the filesystem there is nothing stopping them accessing the php files. A php application itself cannot protect itself in that mannor. What exactly are you trying to get at? Do you have a specific issue?
  7. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=361008.0
  8. Ok, it wasn't clear from your post that the SELECT was selecting data from a different database. On to your issue. You already have the loop, you just need to move your mysql UPDATE code into it.
  9. No that will not work. Variables are not interpolated within single quotes.
  10. Why are you executing a SELECT query in order to eventually do an UPDATE ?
  11. shell_exec("sed -i 's/auth_default_realm = $olddomain/auth_default_realm = $newdomain/' /etc/test/test.conf"); Works as expected for me.
  12. We can't help without seeing your code.
  13. 1) it could be either a or b 2) a dedicated server is always going to have less ability to be tampered with by other users simply because there aren't any.
  14. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=361005.0
  15. I'm really not sure what your talking about. Are you sure you want to replace auth_default_realm ? Maybe: shell_exec("sed -i 's/domain = $olddomain/domain = $newdomain/' /etc/test/test.conf"); is what your really trying to do.
  16. You've lost me, your not using anything from SPL.
  17. xml is not a scripting language and as such cannot process post data. Your question makes little sense.
  18. You might want to take a look at phpQuery. http://code.google.com/p/phpquery/
  19. Im not sure I understand the question / problem.
  20. Firstly, the command you posted will fail because you are mixing single and double quotes. Secondly, your making your php example more complicated than it need be: shell_exec("sed -i 's/auth_default_realm = $olddomain/domain = $newdomain/' /etc/test/test.conf"); Be sure to validate and escape $olddomain and $newdomain especially if they are coming from user input. Your opening yourself to massive security concerns otherwise.
  21. This resonates with me more than anything else. http://blog.sanctum.geek.nz/series/unix-as-ide/
  22. Neither would be my choice. Is this a MS oriented workplace?
×
×
  • 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.