Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Yes you can. You would write a cli script, pipe your emails to that, and receive them in the script within $argv[1]. (STDIN).
  2. The first thing I notice is that you have misspelt your success callback.
  3. The topic of this board clearly reads "Drupal, Joomla, Zen Cart, osCommerce, MediaWiki, etc." Your post, seems way off topic.
  4. Using a name like form_handler locks that class down to be used with the form handler. The point if css classes is that they are (or should be) re-usable. To make them re-usable while having names that still make sense, they should be named as generically as possible. They should be named by what they *do* not what elements they should attach to. ie; I would be inclined to name said class bold-centered
  5. Agreed. You should also take a look at semantic naming conventions. Naming a class "form_handler" makes it difficult to use.
  6. Is there a reason your doing this in php and not mod_rewrite? It's pretty difficult to see how this is actually being used.
  7. This topic has been moved to Other Libraries and Frameworks. http://forums.phpfreaks.com/index.php?topic=364016.0
  8. This topic has been moved to Ajax Help. http://forums.phpfreaks.com/index.php?topic=364023.0
  9. This topic has been moved to MySQL Help. http://forums.phpfreaks.com/index.php?topic=364030.0
  10. I'm really not sure where your getting your syntax from. mysql_query("SELECT SUM(wish_total) FROM wish_list WHERE wish_date = '" . $mymessage . "' AND wish_product = " . $totalnum);
  11. They are function names that have been obfuscated by Zend Guard. ( I would assume)
  12. This topic has been moved to JavaScript Help. http://forums.phpfreaks.com/index.php?topic=363939.0
  13. For a very simply cms you really only need to know how forms work, how to write to a database and how to read from a database. This wiki http://www.tuxradar.com/practicalphp, has chapters on all of these topics. Of course to do it well enough to be able to *sell* your skills to a client, you will need to know a hell of allot more and be experienced with it.
  14. Have you tried checking your query succeeds?
  15. There are all sorts of tools around for benchmarking and locating bottlenecks in your applications. xhprof is probably a good place to start. I have some code in a github repo that might also help you out. https://github.com/trq/phpBenches, it's not yet complete so might take a little bit of work to get up and running (theres no docs) but it works, and works pretty well. There is also this project, https://github.com/eryx/php-framework-benchmark. The is what phpBenches was based off and what I am currently using to benchmark my framework. See http://thorpesystems.com/2012/08/benchmarking-proem-framework
  16. This is a common error, and it tells you exactly what is wrong. Your passing a boolean to mysql_fetch_array(), it expects a resource. Check your query has actually succeeded before simply using it's result. And please, we have tags for a reason.
  17. This topic has been moved to mod_rewrite. http://forums.phpfreaks.com/index.php?topic=363862.0
  18. You'll need a valid date format in the first place, but yeah, take a look at the datetime functions. http://php.net/manual/en/ref.datetime.php
  19. The path to your extensions directory will be listed iwthin your php.ini. And yeah, that looks about right.
  20. One major benefit to using Ajax is that you don't need to reload the page to change the data it contains. Why are you using Ajax in the first place if you intend to reload the page?
  21. This topic has been moved to Ajax Help. http://forums.phpfreaks.com/index.php?topic=363772.0
  22. You used to be able to load extensions at runtime using the dl function, this functionality has since been removed from some sapi's You will need to load this extension when the server starts like all other extensions.
  23. This topic has been moved to Miscellaneous. http://forums.phpfreaks.com/index.php?topic=363762.0
  24. What does this have to do with installing PHP on Windows?
  25. This topic has been moved to PHP Coding Help. http://forums.phpfreaks.com/index.php?topic=363650.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.