Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Just call fclose once at the end of your script. As it stands, your closing the file then again trying to write to it, then trying to close it again.
  2. You would need to setup your OS's schedular to do so. Linux uses Cron.
  3. If your wanting to use your isp's smtp server, uninstall postfix and install ssmtp. Postfix is overkill.
  4. trq

    SSH2 help

    As I said, use expect, that is exactly what I meant by user interaction.
  5. trq

    SSH2 help

    If your commands require user interaction you can use expect. ps: passwd does not require any user interaction.
  6. My best advice in regards to frameworks is simply to pick one (any) and stick with it for a little while. it will likely to a few projects before you start to know your way around anyway. CI is probably about the easiest to get started with, but I wouldn't say it particularly well designed though. Symfony2 is an awesome framework that still has a reasonable learning curve. Either way, you'll probably fumble around for a little while anyway. Having aid that, it's well worth the effort.
  7. Some people don't brush there teeth, it doesn't mean it a good idea. Using static methods in a pattern like that of the factory is a perfectly valid design decision in my point of view. The problem with singletons is it's far too tempting to simply use them from within other objects, thus tightly coupling them together. Dependencies should always be injected.
  8. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=347871.0
  9. trq

    Transactions

    Your choice of hosting should be representative of your requirements. If you need transactions, you need a hosting provider that will provide that functionality. It's really quite simple.
  10. It's using an old version of php?
  11. What is what called? You haven't exactly described your issue.
  12. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=347820.0
  13. Get the contents of both, hash them using md5, if the hash's are different, the data is different.
  14. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=347835.0
  15. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=347783.0
  16. I don't see what this has to do with php. Care to explain?
  17. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=347578.0
  18. You will need to execute a SELECT query first that checks to see that the record doesn't already exist. Alternatively, take a look at http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html
  19. I would be more inclined to remove from the source. I meen, it didn't get there by itself, your code must be putting it in there somewhere along the line.
  20. I'm not sure what else I can suggest. Maybe you need to find a developer?
  21. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=347558.0
  22. Why don't you echo out $page so you can actually see what it contains.
×
×
  • 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.