Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. This would however to you classes explicitly to those global variables. Relying on global data is generally a poor design decision, which inevitability makes your code less flexible / reusable. Functions / Methods should always ask for the data they need instead of it somehow magically appearing within them.
  2. You wouldn't use php for this. Simply execute the commands directly from your crontab. Export: mysqldump -uYOURUSERNAME -pYOURPASS DBNAME > dump.sql Import: mysql -uYOURUSERNAME -pYOURPASSWORD DBNAME < dump.sql
  3. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=312186.0
  4. This topic has been moved to Other Programming Languages. http://www.phpfreaks.com/forums/index.php?topic=312191.0
  5. Obviously, $value is not a string.
  6. This topic has been moved to Other Programming Languages. http://www.phpfreaks.com/forums/index.php?topic=312147.0
  7. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=312058.0
  8. This topic has been moved to Installation in Windows. http://www.phpfreaks.com/forums/index.php?topic=312024.0
  9. unless you need to match patterns you should be using strpos.
  10. ../../includes/include.inc
  11. Depending on your MySql version you may also be able to use the built in scheduled events. See http://dev.mysql.com/doc/refman/5.1/en/events-overview.html
  12. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=311981.0
  13. After eliminating the framework and writing my own, simpler MVC the bottleneck was removed. Even though I pulled and we still use the exact models from the application (Doctrine). I haven't really had time since to investigate further and have since moved on. But it seems logical to me that Zend was indeed the bottleneck. Of course, I could definitely have configured it / used it incorrectly at the time.
  14. trq

    power outage

    I would go a step further than that and buy a ups. You shouldn't really be running any production servers without one. I run a few dev servers from home and even have my own ups there. It'll only hold up for about 45 minutes, but still, its something. As for displaying a 'maintenance' page. Some DNS services offer this, check yours.
  15. If they're not in the manual, they are not in php.
  16. Remove the..... $ArrayData = mysql_fetch_array($QueryData); line.
  17. You forgot to show us the piece of code that executes the query. Do you call mysql_fetch_array() anywhere else before the code you have posted?
  18. This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=311943.0
  19. You can use anchors within your links, then have certain Ajax functionality execute when the anchors are found in the url.
  20. Looks fine for me in FF 3.6.10. There hasn't been any upgrade, maybe its the adds. I'll have to take a look this afternoon.
  21. The general process is to validate and process within the same script. Do you need to pass this data to a third party or something? Why are you doing it in two steps?
  22. Whats exactly do you mean by 'breaks'?
×
×
  • 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.