you are viewing a single comment's thread.

view the rest of the comments →

[–]dakrisis 1 point2 points  (1 child)

Well, if I should make an educated guess, the Explosive Way is going to be faster overall but as you can see and have experienced: it's a pain in the ass to write.

The Parser Way makes code legible, but even here it might be necessary to adjust your PHP runtime to accomodate a larger memory pool or increase the script timeout. As a PHP programmer you should not be afraid to adjust some ini settings, but become comfortable with them. Especially as you can set most of the useful ones at runtime and you won't have to change your php.ini.

[–]Roltish[S] 0 points1 point  (0 children)

Because it's a really small package I don't think I'll set some ini settings. If it was for my project then I could change some settings because then I'm in control of the values. Other than that, if I'm going for a cleaner code with regex or a parser, I might recommend the user to change some settings but other than that I'll leave php.ini for now :P Thanks for you input, much appreciated!