Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. No need to do that. ssmtp is a drop in replacement for sendmail. Leave your php.ini as is. As for your configuration. As I said in your other thread. ssmtp is used to connect to a remote smtp server like gmail. You don't have a local server which it looks like your attempting to use. You can setup gmail to host your domains web server, then use a config like: root=postmaster mailhub=smtp.gmail.com:587 rewriteDomain=yourdomain.com hostname=yourdomain.com UseSTARTTLS=YES AuthUser=youruser@yourdomain.com AuthPass=yourpassword FromLineOverride=YES If you really wan't to run your own mail server (which I really would not recommend unless you know what you are doing) postfix is the most popular choice.
  2. The config file should be pretty well documented depending on your distro. It'll be in /etc/ssmtp/ssmtp.conf or similar.
  3. 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.
  4. 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.
  5. This topic has been moved to Other Programming Languages. http://www.phpfreaks.com/forums/index.php?topic=345760.0
  6. This is just simple math. $cost_per_block = 5; $block_size = 20000; $weight = 22000; echo ceil($weight / $block_size) * $cost_per_block;
  7. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=345744.0
  8. We don't supply code for people. What exactly is the issue?
  9. 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];
  10. You haven't set $_SESSION['test'], you have set $_SESSION['name'].
  11. Geshi is about the best Iv'e seen. http://qbnz.com/highlighter/
  12. You need a call to session_start() in all pages that use $_SESSION.
  13. 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.
  14. postfix is probably the most popular mta around.
  15. $file = 'controllers/' . $url[0] . '.php'; if (file_exists($file)) { require $file; $controller = new $url[0]; $controller->loadModel($url[0]); } else { $this->error(); }
  16. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=345741.0
  17. 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?
  18. http://www.phpfreaks.com/tutorial/basic-pagination
  19. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=345742.0
  20. sqlite databases are not text files. You need to edit the database using sqlite itself.
  21. This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=345733.0
  22. Have you looked at the actual phpMyAdmin site? http://www.phpmyadmin.net
×
×
  • 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.