Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This book is only brand new (so I haven't read it) and still a work in progress, but this guy knows his shit. Especially when it comes to API design. https://leanpub.com/build-apis-you-wont-hate
  2. Get a decent host.
  3. How do you know its the same problem? The op who made this post provided zero information.
  4. Github have the best API I've seen / used. Well documented, and well thought out.
  5. API's can implement many different request methods.
  6. You should be passing your database dependency into the auth object when it is instantiated.
  7. Sorry, but that is some seriously messed up code on oh so many levels. One of the problems is quite obvious, and your already aware of it. $_POST does not persist across requests.
  8. I guess I should have mentioned that with the system I spoke of above, we also managed all our clients servers as well as part of the system so there is no way for them really to manipulate the code to gain a license. And yeah, you guessed it. Because PHP code is sitting there in plain view there is very little you can do to prevent people from manipulating the code in some way to get around the license. You can try and hide it, but thats about it. You just need to make sure when a breach is detected, you are in a position to go after compensation for it.
  9. The second question in particular assumes you are talking about client side (executed in the browser) javascript. Server side javascript is becoming more and more popular these days and is capable of making use of many different database systems.
  10. PHP is a programming language, you can build whatever you like. Where I used to work our systems used to check-in with our management console hourly. The console was responsible for managing licenses. Many different ways to do this though.
  11. To answer the question though, yes its possible. You just need to configure IIS to execute PHP. A terrible environment for sure, but it works.
  12. I've not used it myself (and I'm not much of a ZF fan) but there is a lot of chatter around about Apigility at the moment.
  13. People actually use PHP on Windows?
  14. Post your code.
  15. It means that the index 'amount' does not exist within the $_POST array. Change: if (isset($_POST['addClientFunds'])): to if (isset($_POST['addClientFunds']) && isset($_POST['amount'])):
  16. trq

    PEAR Help

    Really? That seems a silly place to install it. You really installed it into the root of the filesystem? You didn't, or PHP would be able to find it there. Using the include statement you are using yoiu wouldn't even need to edit your include_path. First thing first, find where you actually installed PEAR to.
  17. This subject (like most) is covered in the manual. http://laravel.com/docs/security#authenticating-users If you need to watch a video in order to learn things you're in the wrong game.
  18. Don't do that. Code producing warnings should always be fixed.
  19. So why would you post your question in the "PHP Applications" board? A board designed for questions relating to applications built with PHP?
  20. What have you done to debug the issue?
  21. Awesome.
  22. Never heard of it but it doesn't really look that interesting. If I want to store snippets, I use Github's Gist.
  23. The number of rows returned from a "SELECT COUNT" query will always be 1. You would actually need to check to see that the count returned is 1. Or better still, just do a SELECT query and check if a row was returned.
  24. spanner206, can you please use the <code></code> tags like everybody else when posting code?
  25. include doesn't return a string unless your included file has a return statement specifying so.
×
×
  • 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.