Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. There is a time limit on when you can edit posts to stop confusion. There is also a pretty clear warning about content not being removed just prior to posting. if you don't want something to appear on the boards, don't post it.
  2. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=346243.0
  3. The location header expects a complete url.
  4. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=346198.0
  5. Obviously you missed this? http://www.phpfreaks.com/forums/index.php?topic=244703.0
  6. You can also download repos as a zip directly from Github if your not planning on working on the project itself.
  7. This topic has been moved to Installation in Windows. http://www.phpfreaks.com/forums/index.php?topic=346151.0
  8. <?php class something { private $somevar; public function __construct($somevar) { $this->somevar = $somevar; } public function test() { return $this->somevar; } } $layout = 'foo'; $obj = new something($layout); echo $obj->test();
  9. Is php_pdo_sqlsrv_53_nts.dll in your ext directory?
  10. 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().
  11. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=346179.0
  12. You need to use <?php ?> tags around php.
  13. this is exactly the same issue as your last thread. Images do NOT contain HTML.
  14. 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" />.
  15. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=346111.0
  16. 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.
  17. 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.
  18. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=346108.0
  19. Then obviously you have come to the wrong place.
  20. This topic has been moved to Other Web Server Software. http://www.phpfreaks.com/forums/index.php?topic=345973.0
  21. Have you tried any debugging?
  22. 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.
×
×
  • 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.