
trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Yes you can. You would write a cli script, pipe your emails to that, and receive them in the script within $argv[1]. (STDIN).
-
The first thing I notice is that you have misspelt your success callback.
-
The topic of this board clearly reads "Drupal, Joomla, Zen Cart, osCommerce, MediaWiki, etc." Your post, seems way off topic.
-
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
-
Agreed. You should also take a look at semantic naming conventions. Naming a class "form_handler" makes it difficult to use.
-
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.
-
This topic has been moved to Other Libraries and Frameworks. http://forums.phpfreaks.com/index.php?topic=364016.0
-
This topic has been moved to Ajax Help. http://forums.phpfreaks.com/index.php?topic=364023.0
-
This topic has been moved to MySQL Help. http://forums.phpfreaks.com/index.php?topic=364030.0
-
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);
-
They are function names that have been obfuscated by Zend Guard. ( I would assume)
-
This topic has been moved to JavaScript Help. http://forums.phpfreaks.com/index.php?topic=363939.0
-
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.
-
Have you tried checking your query succeeds?
-
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
-
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean
trq replied to ipsa24's topic in PHP Coding Help
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. -
This topic has been moved to mod_rewrite. http://forums.phpfreaks.com/index.php?topic=363862.0
-
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
-
[Beginner] How to call a PHP extension in another directory structure
trq replied to suprajaj's topic in PHP Coding Help
The path to your extensions directory will be listed iwthin your php.ini. And yeah, that looks about right. -
This topic has been moved to Ajax Help. http://forums.phpfreaks.com/index.php?topic=363772.0
-
[Beginner] How to call a PHP extension in another directory structure
trq replied to suprajaj's topic in PHP Coding Help
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. -
This topic has been moved to Miscellaneous. http://forums.phpfreaks.com/index.php?topic=363762.0
-
Header unable to appear on previously working webserver?!
trq replied to yshua's topic in PHP Installation and Configuration
What does this have to do with installing PHP on Windows? -
This topic has been moved to PHP Coding Help. http://forums.phpfreaks.com/index.php?topic=363650.0