Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=350586.0
  2. I'm a massive vim fan so don't really have much of an opinion when it comes to IDE's.
  3. The config file should be pretty well documented depending on your distro. It'll be in /etc/ssmtp/ssmtp.conf or similar.
  4. It might be easier to install ssmtp, this is a drop in for sendmail which will allow you to use a remote smtp server such as Gmail. Postfix can get quite complicated to configure and it really has to be done right to avoid it being abused.
  5. It's never a good idea to store data like this for this very reason. Instead you should have another table with a row for every relationship.
  6. This topic has been moved to Other Programming Languages. http://www.phpfreaks.com/forums/index.php?topic=345760.0
  7. This is just simple math. $cost_per_block = 5; $block_size = 20000; $weight = 22000; echo ceil($weight / $block_size) * $cost_per_block;
  8. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=345744.0
  9. We don't supply code for people. What exactly is the issue?
  10. There is nothing in particular that stands out too much, it's just not very flexible. You have paths hardcoded into your class, you have no way of passing further parameters along with your requests and I'm also not sure this syntax will even work. $controller = new $url[0];
  11. You haven't set $_SESSION['test'], you have set $_SESSION['name'].
  12. Geshi is about the best Iv'e seen. http://qbnz.com/highlighter/
  13. You need a call to session_start() in all pages that use $_SESSION.
  14. To be honest, as far as mvc implementations go, there are quite a few floors in your approach. Your current error can likely be fixed by ensuring that your error() method kills any further execution using die. Unfortunately however, I'm not sure this will be your only issue.
  15. postfix is probably the most popular mta around.
  16. $file = 'controllers/' . $url[0] . '.php'; if (file_exists($file)) { require $file; $controller = new $url[0]; $controller->loadModel($url[0]); } else { $this->error(); }
  17. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=345741.0
  18. Obviously this line $controller = new $url[0]; is not resolving to a class that php can find. Do you have a class called services? and is it included within this script?
  19. http://www.phpfreaks.com/tutorial/basic-pagination
  20. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=345742.0
  21. sqlite databases are not text files. You need to edit the database using sqlite itself.
  22. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=345733.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.