Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. You only need to require the class you have stored in the session before calling session_start().
  2. Can you post some relevant code? And John, George, Paul and Ringo are members of arguably the most influential bands of all time.
  3. The link resource that mysql_query uses as an optional second argument represents a database server. If these two databases are on the same server there shouldn't be any issue.
  4. trq

    F**k me!

    The questions disappear eventually. With a site of this size we attract allot of bot/spam action, sorry, but it's just the way things have to be to keep the place tidy. Oh, and welcome.
  5. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=342885.0
  6. You just need to think about the steps involved and then implement them. 1) User registration - add new username & password to a database. 2) User authentication - check a username password combination against records in a database 3) User login - Persist data so as to identify a user across multiple requests. No one likes to have to think too much these days it would seem.
  7. bbcode is a type of markup that is generally parsed and transformed into HTML. It is indeed what this forum uses to transform tags into HTML's <b></b>.
  8. I'm not sure a simple file_get_contents call is binary safe. Use fopen and fread instead.
  9. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=342981.0
  10. Did you try looking at the manual?. See sqlite. You can't connect to a remote sqlite database unless you mount the drive it is on locally.
  11. Looking at it a little further, there seem to be a few funny design decisions going on. Your Route object extends Arrgh, yet also depends on (and uses) Arrgh. Same goes for the View which extends the Controller yet the Controller also depends on (and uses) a Controller. A View object isn't the same type as a Controller, therefore a View really shouldn't extend a Controller. I thought Ruby devs where all about OOP?
  12. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=343012.0
  13. A few things. Firstly, I didn't actually download any code, just hade a quick look through it on github. I don't really see where the framework itself resides. I managed to track down a file in vendor/framework/framework.php which appears to be some sort of Application object (class named Arrgh), but this object depends on Logger and Route objects that I am not able to locate anywhere. It's also very odd to have a class within a file of a different name. The general best practice is to name your files so they map 1-1 with there contents. This makes autoloading a breeze. It also seems odd to have this file (if this is indeed part of your framework) within a directory called vendor. Vendor directories are generally for third party code. This brings me to my next point. Smarty? I'm not sure its a great idea to dump that kind of dependency on anyone. Personally i think template engines are well overrated in PHP, but smarty in particular is a pretty big dependency to have to pull.
  14. This topic has been moved to Beta Test Your Stuff!. http://www.phpfreaks.com/forums/index.php?topic=343027.0
  15. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=343031.0
  16. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=342944.0
  17. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=342956.0
  18. You need to change your database queries to search by name instead of id.
  19. $_GET is an array not a function. there is nothing inherently unsafe about it.
  20. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=342882.0
  21. Without code and a description of your specific problem your post is useless.
  22. Besides that code being horribly out of date, i don't see anything wrong with it.
  23. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=342757.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.