Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. 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
  2. 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.
  3. This topic has been moved to mod_rewrite. http://forums.phpfreaks.com/index.php?topic=363862.0
  4. 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
  5. The path to your extensions directory will be listed iwthin your php.ini. And yeah, that looks about right.
  6. 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?
  7. This topic has been moved to Ajax Help. http://forums.phpfreaks.com/index.php?topic=363772.0
  8. 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.
  9. This topic has been moved to Miscellaneous. http://forums.phpfreaks.com/index.php?topic=363762.0
  10. This topic has been moved to PHP Coding Help. http://forums.phpfreaks.com/index.php?topic=363650.0
  11. Knowing HTML, CSS, PHP & Javascript well enough you shouldn't really need to be asking this kind of question.
  12. Firstly, you have't shown us enough code. Secondly, there are a few easily noticeable errors. require_once does not return a string, so unless you are using return to return a value within your left.php file, that is why you are receiving 1. The other part that is confusing. You say "values is an array", you then show us some seemingly unrelated code.
  13. How could we possibly know without knowing the environment the code is being run in, or seeing any relevant code? How exactly are you forking these processes?
  14. You'll need to post the relevant code.
  15. jQuery is just a JavaScript framework. You need Ajax. Why? Because JavaScript executes on the client side while PHP, executes server side.
  16. Read some of the tutorials resulting from the linked to Google search.
  17. This topic has been moved to JavaScript Help. http://forums.phpfreaks.com/index.php?topic=363383.0
  18. trq

    Questions

    It depends on what answers your looking for.
  19. This topic has been moved to MySQL Help. http://forums.phpfreaks.com/index.php?topic=363335.0
  20. Then where exactly are you stuck?
  21. Um, it's not GPL. Not that I would prefer that, GPL is one of the worst OSS licenses around.
  22. What do firebug or developer tools have to say?
×
×
  • 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.