Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You do realise that using Javascript to do this means that users can simply bypass your checks?
  2. Don't try and force functions to use variables declared in the globals namespace, it defeats the a big part of there purpose.
  3. You don't need any regular expression, see json_decode.
  4. You doubt there is any performance issues? When PHP generates an error there are costs involved. Simply suppressing the error does not eliminate all of these costs.
  5. I'm not sure you understand the purpose of this forum.
  6. To access these parameters you would use the getParams() or getParam() method of the Request object.
  7. Why aren't you using a where clause in your initial select query in the first place?
  8. Care to format your code so that it is readable?
  9. I follow the PSR-2 standard, so the closing ?> must be omitted.
  10. We can't really help much without seeing your code.
  11. nl2br appends <br> tags after newline characters so you do NOT wont to use it when displaying data in a textarea. Why don't you post your actual code?
  12. Have a look at your code. It doesn't make much sense.
  13. If they are programs that can be invoked via some form of shell you can use one of the exec family of functions. Otherwise, if they are written in C, you might like to turn them into PHP extensions (though this will be a fair bit more work).
  14. SELECT c.camp_title, c.camp_info, u.email FROM camp c LEFT JOIN users u ON (u.id = c.id_owner
  15. Before you can get any help, you will first have to define exactly what a datalist is.
  16. The code you have posted does not do what you describe, nor is it php. Why have you posted in the Application Frameworks section? Care to provide more information?
  17. There is nothing particularly special about it. Just escape your data as per usual.
  18. Not sure about your issue,b ut, none of the variables you have declared at the top of your script are available to the functions. Functions have there own scope.
  19. localhost is just a hostname that automatically points to the computer it is being used on. As for explaining how web servers work, that is not something that can be easily described in a simple forum reply.
  20. This resonates with me more than anything else. http://blog.sanctum.geek.nz/series/unix-as-ide/
  21. My main motivation for working in vim is the fact that we do allot of remote stuff via ssh on client machines at work. So, now I can use the same editor under all circumstances. Even when I work from home, it's so much easier to just connect to the vps, ssh in and open vim in a terminal. I don;t have to worry about the overhead of a Desktop.
  22. Have you tried an IDE? I used to think a simple text editor was all I needed too, but then I tried an IDE. The only time I use a regular text editor now is just for real quick edits, or stuff that I don't want to make into a project in my IDE. IDE's tend to get in my way. All I use is vim with a few plugins: https://github.com/tpope/vim-pathogen https://github.com/tpope/vim-fugitive https://github.com/tpope/vim-unimpaired https://github.com/vim-scripts/taglist.vim https://github.com/vim-scripts/sessionman.vim https://github.com/vim-scripts/bufexplorer.zip https://github.com/tpope/vim-surround https://github.com/vim-scripts/FuzzyFinder
  23. I'm a massive vim fan so don't really have much of an opinion when it comes to IDE's.
  24. That's because MS sux balls.
×
×
  • 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.