Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. Hmmm. let me get my crystal ball out....
  2. I don't really see it as being difficult. Must things get more difficult as you make them more flexible. if you wan't simplicity, you need to be willing to give up functionality.
  3. Why? PHPMyAdmin is a web application and will timeout trying to process that much data. No one wants to look at millions of rows of data in one hit anyway. At least try and be realistic about what your application should display.
  4. I'm not sure it's simplexml's fault that soap sux balls.
  5. Where are you executing this query from?
  6. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=350672.0
  7. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=350592.0
  8. So why not post yours if you want help?
  9. In some ways it is a very simplified MVC though you are mixing the Model into the Controller layer.
  10. Flash is not available on the iPhone at all and never will be. If you want to be compatible with more devices you should look into the technologies around HTML5 and canvas.
  11. If you have Flash just make a player. I think CS5 even has options to automatically export movies within there own player. Otherwise, you could look at tools like Flowplayer (Google it).
  12. I am currently prototyping some code that will enable named arguments to functions via an array. I have ended up with two different solutions: public function trigger(array $options) { $ops = $this->setOptions([ 'name' => ['required' => true, 'unless' => ['event']], 'params' => ['required' => true, 'unless' => ['event'], 'type' => 'array'], 'callback' => ['type' => 'callable'], 'context' => ['type' => 'object'], 'event' => ['class' => 'Event'] ], $options); } public function trigger(array $options) { $ops = $this->setOptions([ 'name' => (new Option())->required()->unless('event'), 'params' => (new Option())->required()->unless('event')->type('array'), 'callback' => (new Option())->type('callable'), 'context' => (new Option())->type('object'), 'event' => (new Option())->class('Event') ], $options); } Now, I am in the predicament of deciding which syntax I prefer. The first uses native arrays but the underlying code is pretty messy and has the potential of being harder to extend. The second is allot cleaner to implement but does introduce an extra dependency in the Option object. This does however have the benefit of making it easier to extend. Has anyone got an opinion on which syntax they would prefer from a users perspective? In both cases the setOptions() method is provided via a trait.
  13. Is the "From" header a valid email address on the server you are sending the email from? If not, receiving mail servers will always be suspect of it and will generally mark it as spam and send it to the trash.
  14. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=350630.0
  15. You might want to post the relevant code.
  16. You should really supply a test account for people to use then.
  17. Why not read the documentation and find out? Wordpress has themes. A theme is generally made up of a directory containing css, javascript and other resources such as images as well as templates and a functions.php file.
  18. Wordpress has plenty of documentation, I would start there.
  19. The file might exist, but not where your telling php it is.
  20. That error means php cannot find the file to include.
×
×
  • 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.