Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Install rvm (https://rvm.beginrescueend.com/) then use it to install Ruby and any gems (including rails).
  2. Works fine for me. thorpe@anapnea[~]+ if [ -e www/foo.txt ] ; then echo 'found' ; fi www is a link to /home/www/thorpe
  3. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=335668.0
  4. Then your data must contain the <br> tags.
  5. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=335653.0
  6. Don't convert newlines to <br /> when storing in the database, only when you need to display your data within html.
  7. Your logo looks very familiar. In fact I'm sure it's an old PHP architect logo.
  8. Sorry, what exactly do you mean?
  9. You must have missed the big sticky at the top of this board huh?
  10. HTML5 allows custom data attributes, there basically a place to store extra data relating to an element. This data can then be selected and used within JavaScript. See here
  11. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=335506.0
  12. PHP doesn't work like this. Some things that do are Node.js or Ruby's Goliath framework.
  13. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=335479.0
  14. Can you please be a little more vague?
  15. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=335458.0
  16. Extending a Main Core class is ridiculous, are all your classes the same type? The best thing you can do is use some form of dependency injection to inject the database object into classes that need it. The simplest form of dependency injection is simply passing the required object into the constructor of the class that needs it. Of course, the object that needs it should also verify it understands the API of the object being passed in (you can do this easily enough using interfaces or an abstract database object).
  17. There can be a fair bit more to it than simply parsing the url for different segments. It's not exactly something that would be easily described within a simple forum post. I would take a look at some of the other frameworks and in particular there routing. If your looking for something simple to use as an example, my framework (Proem) linked to via the Github link in my signature has a fairly basic routing system (still incomplete).
  18. Your code makes little sense. What exactly do you hope to achieve using variable variables?
  19. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=335348.0
  20. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=335330.0
  21. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=335217.0
  22. No, there is no 0 index. How exactly can you not know the index?
  23. You need to edit the path to point to the new .so file.
×
×
  • 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.