Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You will need to configure sudo to allow the apache user to execute the specific commands you are after.
  2. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=333604.0
  3. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=333536.0
  4. I have no idea what your talking about.
  5. Look at it. On each request you set $_SESSION['start_time'] to the current time. Meaning, it will always equal less than the current time + 500. You need to set an end_time on the first request and check start_time against that on subsequent requests.
  6. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=333523.0
  7. What your looking for is a proxy or internet gateway.
  8. You really should look into using an autoloader. Having include statements throughout your code will be a nightmare if you ever need to move things around.
  9. @wepnop, are you sure your in the right thread?
  10. trq

    goto

    Considering it's only new, I would say it will be around for a while. At least any version of > 5.* Still, goto is not something I have ever thought I needed, I can think of better ways of doing things.
  11. stripslashes is generally only needed if you have escaped your data incorrectly on the way into the database or you have magic quotes enabled and would like to display request data directly. if your data is escaped properly it will not actually be stored with the slashes intact.
  12. All of these..... $username = $_POST['username']; Need to be..... $username = mysql_real_escape_string($_POST['username']); You'll need to move your connection before them though as mysql_real_escape_string requires an active connection. ps: Just a tip here, but at my work, none of our code will pass tests (and get committed into version control) if it is more than 120 chars wide. Making code stretch a screen like that is rude.
  13. This would be much better handled client side using JavaScript IMO.
  14. trq

    web hosts

    See http://www.phpfreaks.com/forums/index.php?topic=117475.0
  15. Put your code into functions and call what you need. Scripts execute from top to bottom without stopping.
  16. What exactly is your issue? This board is for help with PHP code, do you have any?
  17. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=333306.0
  18. Each keyword is a string so it will need to be surrounded by quotes. $keywords= "'" . implode("','",$keyword) . "'"; It's always a good idea (for debugging) to echo your sql queries so you can actually see what they look like. eg; echo $sql10000;
  19. Please, read the 'How To Ask?' link in my signature.
  20. Definitely not. I would use a simple IN() statement in this case.
  21. Are you sure that is your issue? What does.... echo '<pre>'; print_r($_GET); echo '</pre>'; show?
  22. Your going to need to be allot more descriptive than that I'm afraid. The only thing that stands out to me is your use of the long ago deprecated session_register function, doesn't anyone look at the manual these days?
  23. In server side JavaScript environments such as node.js, but I'm sure that's not what your looking for.
  24. As per usual, this is covered in the manual. http://httpd.apache.org/docs/current/vhosts/mass.html
  25. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=333173.0
×
×
  • 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.