Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Is php_pdo_sqlsrv_53_nts.dll in your ext directory?
  2. Your asking to make $layout some sort of global variable which completely breaks the entire idea of using a class. If your class really depends on the $layout variable, it should be passed into the objects __construct().
  3. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=346179.0
  4. Code would be helpful.
  5. Pardon?
  6. You need to use <?php ?> tags around php.
  7. this is exactly the same issue as your last thread. Images do NOT contain HTML.
  8. You have html mixed in with code that creates an image. Images are not made of html. Remove the html, then create another html page in put your script in an image tag. eg; <img src="yourphpscript.php" />.
  9. Post your code.
  10. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=346111.0
  11. Generally functions or methods should return either true or false depending on wether or not they fail or succeed. This makes them easy to handle using logic like: if ($contents = $s3->getBucket("mybucket")) { foreach ($contents as $file) { // rst of code } } Clearly, whatever $s3 is pretty poorly written as it appears to be triggering a warning. I would investigate the getBucket() method itself and have it either return true or false, or if really necessary an exception. At least they are easy to handle.
  12. I usually only use 2 (spaces) for HTML. You shouldn't really use tabs in PHP either as it's not consistent enough across editors.
  13. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=346108.0
  14. Then obviously you have come to the wrong place.
  15. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=345973.0
  16. Have you tried any debugging?
  17. I will. I just made my first OOP class and I would really like to learn more about it, because I feel that it is the next step for me as a coder. Just because your using classes does not mean your coding in OOP. It's a first step, but it's not the entire picture.
  18. This topic has been moved to Other RDBMS and SQL dialects. http://www.phpfreaks.com/forums/index.php?topic=346039.0
  19. Of course it's possible. Describe your actual problem.
  20. This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=346036.0
  21. Hmmm, I smell spam.
  22. There is no definitive answer, just opinion. Often the one that is well suited to your style of development and specific project requirements will be the best one to use.
  23. I used to use dynamically loading js, but it ended up being allot more efficient to put all js into one file and the minify it. Its the actual http requests to multiple files that hurts more than size. Of course it would also depend on what sizes where talking about. Loading a 50k-80k file just to use one function etc etc.
  24. Have you checked out some of the editors mentioned in this thread?
  25. This board is here for questions directly relating to already existing Third Party code. It is NOT a code repository or the place to post requests looking for specific scripts. If you can't find the script you are looking for on Google, you either don't know how to use Google or the specific script does not exist. DO NOT request help with searching.
×
×
  • 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.