Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
On Thu, Sep 5, 2013 at 12:15 PM, Robert Cummings wrote: > Probably sufficient (and easier for typing) to just call it Utility since it > follows the pattern but isn't the pattern itself :) Good call! Updated the example code. Thanks again! I really appreciate the help. :) Ch

Re: [PHP] Static utility class?

2013-09-05 Thread Micky Hulse
On Wed, Sep 4, 2013 at 11:07 PM, Robert Cummings wrote: > I'll second Rodrigo's opinion, but would like to comment that the name of > the class is misleading since it's called "Singleton". The singleton pattern > is used when you only ever want one instantiation of a class. In your case > you are

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
ur utility methods by by meaning. Don't put a > method that make dating stuff and a method that write a random string in the > same class. By doing so, you are breaking the object orientation purpose. Excellent tip! Thank you Rodrigo! I really appreciate the tips/advice and inspiration. :)

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
own a different path. Thanks again for the kick in the right direction! Much appreciated! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Static utility class?

2013-09-04 Thread Micky Hulse
Thank you so much for the quick and very informative/educational replies Stephen and David, I really appreciate it! :) On Wed, Sep 4, 2013 at 12:36 PM, Stephen wrote: > This sounds simply like a library of functions that are implemented using > objects. > Instantiate your static variables in the

[PHP] Static utility class?

2013-09-04 Thread Micky Hulse
Hi all! Example code: Goal: I want to have a "utility" class that contain utility methods which should have the option of being called multiple times on a page. I think my main goal is to avoid having to "new" things ... I don't really need to create an

Re: [PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
Thanks for tips David! I'll play with your suggestion. I've never used abstract methods, but if I'm understanding the code you posted, they look pretty useful. I may be back with questions. Appreciate the help. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP] Re: PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
On Fri, Jun 21, 2013 at 12:54 PM, Micky Hulse wrote: > 2. Is there a way for me to pass $foo to the parent class, from the > child, without having to ferry that variable through the abstract > class? I should mention, I'm working on some code where I don't have the ability to

[PHP] PHP5 OOP: Abstract classes, multiple inheritance and constructors

2013-06-21 Thread Micky Hulse
s from the child. Any tips would be appreciated. Sorry if silly questions. Thanks! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LightBox click detection

2013-06-16 Thread Micky Hulse
On Fri, Jun 14, 2013 at 8:52 AM, Tedd Sperling wrote: > Here's the problem -- I need to count the number of times a user activates a > LightBox -- how do you do that? If you're using Google Analytics, you can use click tracking:

Re: [PHP]

2013-04-18 Thread Micky Hulse
On Thu, Apr 18, 2013 at 8:36 AM, Larry Martell wrote: > That was it. Thanks!! Np. Glad it helped. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2013-04-17 Thread Micky Hulse
Ah, I see now. Sorry, I must have read the original question wrong. There's a good thread on stack about short tags: "Are PHP short tags acceptable to use?" Which kinda links to the docs: "PHP tags"

Re: [PHP]

2013-04-17 Thread Micky Hulse
On Wed, Apr 17, 2013 at 3:59 PM, Micky Hulse wrote: > You might need to turn on the short tag option > in your conf file. Sorry, ini file, not conf. Been a long day. :D I guess I should have asked if short tags are turned on for your 5.3.3? -- PHP General Mailing List (http://www.php.ne

Re: [PHP]

2013-04-17 Thread Micky Hulse
It should still work. You might need to turn on the short tag option in your conf file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] load rtf file

2012-09-03 Thread Micky Hulse
On Mon, Sep 3, 2012 at 3:52 PM, Tedd Sperling wrote: > Maybe if I was on a Windoze machine, but I'm on a Mac. What about TextEdit.app? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl equivalent in PHP

2012-03-02 Thread Micky Hulse
k I was using). Simply, you could resort to: http://www.google.com'); ?> Ofc, the links would need to be absolute in order for the assets to load. Good luck! Cheers, Micky [1] php.net/ob-start [2] php.net/readfile -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-28 Thread Micky Hulse
Hi Adam! On Tue, Feb 28, 2012 at 2:05 PM, Adam Richardson wrote: >> What would be the best way to insert $o_insert array into $o array >> after specified key? Great question. :D Quick answer: It's a Wordpress thang! Long answer: I am working with WordPress and the theme that I am using stores

[PHP] Re: Insert new array after specific key in multidimensional array

2012-02-28 Thread Micky Hulse
On Tue, Feb 28, 2012 at 8:36 AM, Shawn McKenzie wrote: > Might be an easier way but this should work.  You can sort the $before = > true out for yourself :-) Hi Shawn, I've updated your function to do the $before bit: I also set it up to m

Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread Micky Hulse
if I "break out" the key, pass it directly, then add the key back to the original array. I have updated my gist and also put the code here: <http://codepad.org/IY0y9Oy6> Could things be optimized, or is this an acceptable solution? Thanks! Cheers, Micky -- PHP General

Re: [PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread Micky Hulse
Thank you Eray! That's a cool approach. Testing code now. I will be back with my results. :) Thank you!!! Cheers, M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Insert new array after specific key in multidimensional array

2012-02-27 Thread Micky Hulse
Howdy! Example code: <https://gist.github.com/1928452> What would be the best way to insert $o_insert array into $o array after specified key? I hate to just ask for example code, but I can't seem to find the perfect solution. :( Many thanks in advance for the help! Cheers, Mic

Re: [PHP] Arrays: Comma at end?

2012-02-08 Thread Micky Hulse
On Wed, Feb 8, 2012 at 10:08 AM, Robert Cummings wrote: > JavaScript in Internet Crapsplorer spanks you on the bottom every time you > have a trailing comma in a JS array. That may be where you picked up the > aversion. On Wed, Feb 8, 2012 at 10:10 AM, Micky Hulse wrote: > I am ju

Re: [PHP] Arrays: Comma at end?

2012-02-08 Thread Micky Hulse
guideline/rule in Python (tuples and other things). I will definitely start doing this in PHP for arrays. I am just surprised that there wasn't an older version of PHP that did not allow this... I must have picked up this habit via my JS coding knowledge. :D Thanks again all! Cheers, Mi

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Micky Hulse
nd of your array. Clearly, apples and oranges though. Thanks! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Micky Hulse
On Tue, Feb 7, 2012 at 12:19 PM, Micky Hulse wrote: > Yah, ditto! :D $s = 'foo,bar,'; print_r(explode(',', $s)); The output is: Array ( [0] => foo [1] => bar [2] => ) That's one instance where I know you have to be cautious about the trailing

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Micky Hulse
On Tue, Feb 7, 2012 at 12:15 PM, Paul M Foster wrote: > I've always avoided trailing array commas, but only because I was under > the impression that leaving one there would append a blank array member > to the array, where it might be problematic. Yes? No? Yah, ditto! :D In my few simple tests,

Re: [PHP] Arrays: Comma at end?

2012-02-07 Thread Micky Hulse
ication. :) Have an awesome day! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Arrays: Comma at end?

2012-02-07 Thread Micky Hulse
ing the trailing comma was a no-no in PHP (maybe I picked that up from my C++ classes in college? I just don't remember where I picked up this (bad) habit). I would prefer to have the trailing comma... I just can't believe I have avoided using it for all these years. Thanks! Micky -- PHP

Re: [PHP] pathinfo function

2011-07-26 Thread Micky Hulse
On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater wrote: > that I will get an error if I try to reference $info["extension"] ?? >From what I can tell via reading the docs: "The following associative array elements are returned: dirname, basename, extension (if any), and filename."

Re: [PHP] Re: PHP frameworks

2011-07-21 Thread Micky Hulse
On Thu, Jul 21, 2011 at 6:44 PM, Shawn McKenzie wrote: > A la CakePHP.  Will automagically build controllers and views for the > admin of your tables/models if you wish. Oooh, interesting! I will check out CakePHP! Thanks for tip! :) -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Re: PHP frameworks

2011-07-21 Thread Micky Hulse
On Thu, Jul 21, 2011 at 5:33 PM, Micky Hulse wrote: > Your app models? More specifically, your app model data. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP frameworks

2011-07-21 Thread Micky Hulse
On Thu, Jul 21, 2011 at 5:21 PM, Jim Lucas wrote: > So, what would said admin interface allow you to administrate? Your app models? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP frameworks

2011-07-21 Thread Micky Hulse
+1 for CI. If you search the group archives, a little while back I asked about micro PHP frameworks and got a ton of good replies. So folks, how'z about a PHP framework with a built-in admin interface? That would be pretty sweet. :) -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: Re: [PHP] Your language sucks because...

2011-07-14 Thread Micky Hulse
On Thu, Jul 14, 2011 at 4:19 PM, George Langley wrote: > He gave you a beautiful hint: :: slaps self on forehead :: I should've known!!! :D Thanks! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Your language sucks because...

2011-07-14 Thread Micky Hulse
On Thu, Jul 14, 2011 at 4:02 AM, Richard Quadling wrote: > My daughter (6 or 7 at the time) came up with T, M and E. I was > abso-bloody-lutely amazed she managed to find a word starting with T, > M and E. What was the word? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Your language sucks because...

2011-07-13 Thread Micky Hulse
Under the CSS section: No way to modularize or programmatically generate lengths. Can't say: { width:50% - 2px; } That's so true!! I wish I could do the above... Oh, and why is the PHP section so damned long?!? Good read, thanks. :) -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] What is a label?

2011-07-13 Thread Micky Hulse
They must mean labels as in "general naming convention rules for programming"... Like not naming a variable/function "label" with a number at the front. Here's a page about variables: http://www.php.net/manual/en/language.variables.basics.php Variable names follow the same rules as other labels

Re: [PHP] best ways to recruit volunteers for a PHP framework

2011-06-28 Thread Micky Hulse
+1 for GitHub or BitBucket. I have not visited SourceForge for years... I just like using Git myself. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] caching problem

2011-06-28 Thread Micky Hulse
OP: Can we see the methods in question? Have you tried running the code on a different server/host? Have you added any scaffolding to your methods in order to test your caching theory? This would be the first thing I would try (i.e. create random number (or whatever), concat with variable vals g

Re: Re: [PHP] iPhone sadness

2011-05-30 Thread Micky Hulse
s I am a member of. For personal e-mails, that's a different story... I have found that most folks, that don't use list-servs, don't get inline replies and bottom posting (with quote above reply). Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
On Fri, May 27, 2011 at 12:48 PM, Micky Hulse wrote: > Looks like the host changed my include path: > I will probably ditch the whole Pear idea and use something else. Well, actually, it looks like having PEAR on the include path did help. Mail.php was found... It was Mail_Mime/mime.ph

Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
im. I will probably ditch the whole Pear idea and use something else. I hate working for free! :D Thanks for listening all.. Sorry to bug the list with my crud. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
I think this is the problem with Pear). Thanks again Philip! Have a great day. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
On Fri, May 27, 2011 at 10:27 AM, Micky Hulse wrote: > Would it be safe for me to conclude that Pair is not setup properly? Haha, "Pear" the package, not the host. :D http://www.pair.com/ Typo. My bad. Also, what the heck does this mean: "It is not safe to rely on the

[PHP] Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
properly? Would it be a simple fix for the host to add Pear to the include path? What else could I do to get Pear to work if I can't use a php.ini file and/or ssh into the server and check/tweak/install packages? Thanks so much! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bold links

2011-05-15 Thread Micky Hulse
I dig it! :) I definitely dig your site btw. I have found several of the pages helpful over the years. Thanks for the good discussion. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bold links

2011-05-10 Thread Micky Hulse
Could you imagine using in all those instances where you used ? Don't you think that would be overkill? Sorry to everyone for taking this so OT for the PHP list. [/OT] Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bold links

2011-05-09 Thread Micky Hulse
wrong with in this case. Span tag, or whatever (with a class, optionally, or however you prefer to mark things up), would work too... but, IMHO, there is absolutely nothing wrong with . To each their own I guess. :) Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] Bold links

2011-05-09 Thread Micky Hulse
On Mon, May 9, 2011 at 2:56 PM, tedd wrote: > Really? > How does the blind via readers, such as JAWS, understand what a is? > First, never use -- or for that matter. > Second, use or instead. Readers can understand and render > STRONG and EMPHASIZED text, but not and text -- those tags mean

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Micky Hulse
Maybe try: echo 'getText("p1")'; I think that should work. Good luck. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Howdy (new in here)

2011-02-15 Thread Micky Hulse
not a fan of putting spaces around the argument: if ( foo == baz ) { I definitely prefer this: if (foo == baz) { More on spaces: I am so glad that most PHP folks I know use tabs for indentation and not spaces! Oops, did I just go there? Oh no I didn't! Good thread! Thanks for that lin

Re: [PHP] switch case madness

2011-01-19 Thread Micky Hulse
On Wed, Jan 19, 2011 at 6:45 AM, Joshua Kehn wrote: > On Jan 19, 2011, at 9:43 AM, Jay Blanchard wrote: >> [snip] >> ... >> [/snip] >> Imagine when there'll be the day when you do not have to code at >> all...just copy 'n paste snippets together in the order that you wish >> them to work in and Vo

Re: [PHP] Re: Re: Need code like

2010-12-27 Thread Micky Hulse
On Mon, Dec 27, 2010 at 5:29 PM, Michelle Konzack wrote: > I have gotten some ideas and now I start coding my own stuff, which is > more flexibel in design and such. Hrmm, just found this info: http://blog.dixo.net/2009/09/15/pastebin-org-considered-harmful/ So, I assume you are looking for s

Re: [PHP] EE1 plugin code/htmlentities() question

2010-11-30 Thread Micky Hulse
s been removed from the template parser, and forward slashes are no longer converted to entities. ]] - <http://expressionengine.com/user_guide//development/conversion/syntax.html#general> Thanks again Richard! Much appreciated! Cheers, Micky -- PHP General Mailing List (http://www.php.ne

[PHP] EE1 plugin code/htmlentities() question

2010-11-29 Thread Micky Hulse
h utilizes htmlentities()... I guess I am just wondering if I should apply the same code as above to my entity-converted string? Thoughts? Thanks! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Convert hex string to hex value?

2010-10-22 Thread Micky Hulse
On Thu, Oct 21, 2010 at 11:45 PM, Micky Hulse wrote: > Hmmm, I wonder if I am going about this all wrong. OMG, too easy: my_method(hexdec('0x' . $base)) How did I miss that!?! I could swear I tried that earlier. Sorry to bug ya'll! Cheers, Micky -- PHP General

Re: [PHP] Convert hex string to hex value?

2010-10-21 Thread Micky Hulse
> Hope you get some rest :) Thanks Adam! I really appreciate your help! Have a nice night. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Convert hex string to hex value?

2010-10-21 Thread Micky Hulse
e does not work with my_method(). my_method(0x96989b) The above works without any problems. Any tips? Many thanks in advance! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] break out of

2010-10-11 Thread Micky Hulse
If I understand the question correctly, I think the answer is yes. Maybe something like this: Normal HTML, or MT tags, here. Normal HTML, or MT tags, here. Normal HTML, or MT tags, here. "Alternative syntax for control structures"

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Micky Hulse
On Mon, Sep 13, 2010 at 5:05 PM, Daniel Brown wrote: >    It would be cheaper to employ the same method used on some > lawnmowers and required on Jet Skis and Skidoos: a cable with a clip > worn by the rider.  The rider falls off, the cable releases from the > vehicle, disengaging the throttle and

Re: [PHP] 1984 (Big Brother)

2010-09-13 Thread Micky Hulse
On Mon, Sep 13, 2010 at 2:43 PM, chris h wrote: > "How would you like the system to be aware of rather or not you're in the > office? On his way in to the office: Motion sensing camera connected to a mechanical pointer stick aimed to trigger the server power button. On his way out of the office

Re: [PHP] Do you have some standard for defined the variable in program language?

2010-07-27 Thread Micky Hulse
st practices <http://tinyurl.com/3xphtd> CodeIgniter (EE 2.0 core framework): User Guide Version 1.7.2 General Style and Syntax <http://snipurl.com/t32db> Python: Style Guide for Python Code <http://snipurl.com/zwfvo> Hths. Micky -- PHP General Mailing List (http://www.php.net

Re: [PHP] finding the web root

2010-06-08 Thread Micky Hulse
> $_SERVER['DOCUMENT_ROOT'] > although a post on the manual mentions some variability between > environments. $root = (array_key_exists('DOCUMENT_ROOT', $_ENV)) ? $_ENV['DOCUMENT_ROOT'] : $_SERVER['DOCUMENT_ROOT']; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] php photo galery

2010-05-18 Thread Micky Hulse
> If anyone has anything similar to this please let me know. SlidesShowPro Director: You could use the Director API and create a PHP gallery with your own code, or you could use the SlideShowPro flash player. The Director interface is ve

Re: [PHP] PHP include security

2010-04-19 Thread Micky Hulse
l, esp. for a function callback. Learn something new every day! :) [/ot] Thanks again for you help Michiel! I really appreciate it. :) Have a great day! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP include security

2010-04-18 Thread Micky Hulse
ent types of inclusion functions/language constructs, this page has some good info: <http://www.raditha.com/wiki/Readfile_vs_include> The results are interesting. Thanks again! Have an excellent day. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Re: PHP include security

2010-04-17 Thread Micky Hulse
> What do ya'll think? Any suggestions? Sorry for the duplicate posting... I had some problems signing-up for the list. :( Also, I moved my test code to sniplr: TIA! Cheers M -- PHP General Mailing List (http://www.php.net/

Re: [PHP] PHP include security

2010-04-17 Thread Micky Hulse
ted in learning new stuff! I actually don't think anyone will use this code other than myself. :D But I definitely agree with all your points. Thanks so much for you help! Have a great day! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP include security

2010-04-16 Thread Micky Hulse
replace($invalidChars,"",$include_file); What about checking to make sure the include path is root relative, vs. http://...? What do ya'll think? Any suggestions? Many thanks in advance! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Include security?

2010-04-16 Thread Micky Hulse
7;..' > should be disallowed Hi Ryan! Many thanks for your help, I really appreciate it. :) How does this look: <http://sandbox.hulse.me/secure_inc_str.txt> How could my code be improved? Thanks again for the help, I really appreciate it. :) Cheers, Micky -- PHP General Maili

[PHP] Include security?

2010-04-16 Thread Micky Hulse
$invalidChars,"",$include_file); What about checking to make sure the include path is root relative, vs. http://...? What do ya'll think? Any suggestions? Many thanks in advance! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Micky Hulse
ng the processTags() function so that it looks for class methods when parsing template tags, vs. looking for regular functions. Thanks again Casey! I really appreciate your help. :) Cheers, Micky -- Wishlist: <http://tinyurl.com/22xonb> Switch: <http://browsehappy.com/> BCC?: <ht

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Micky Hulse
Casey wrote: Hmmm. I've searched around, and it seems that only a global would work :/ Thanks for the help Casey! I really appreciate it. :) Yah, I think I will use a global for now... Until I can think of an alternative coding approach. Have a good one! Cheers, Micky -- Wishlist:

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Micky Hulse
you know if I get it working. I may just have to think of a different approach here. Cheers, Micky -- Wishlist: <http://tinyurl.com/22xonb> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8> My: <http://del.icio.us/mhulse> -- PHP General Mailing List (http

Re: [PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread micky
example code... I am at work now, but will try that as soon as I get home later tonight. Your code examp looks very promising -- I will let you know how it goes. A billion thanks! Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] preg_replace_callback(), how to pass function argument/param?

2008-03-30 Thread Micky Hulse
ace_callback($f, 'mah_processTags($arg1)', $text); function mah_processTags($matches, $arg1) { ... } Is this even possible? I just want to pass-in $arg1 along with the matches. :) Possible? Many thanks in advance!!! Cheers, Micky -- Wishlist: <http://tinyurl.com/22xonb> Switch: <ht

Re: [PHP] www. not working

2008-02-15 Thread Micky Hulse
://www.mysite.com/$1 [R=301,L]\ I like to always redirect to www or non-www... not both. I have read that this is good for SEO and/or SE's. Cheers, Micky -- Wishlist: <http://tinyurl.com/22xonb> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8> My: <http://d

Re: [PHP] variables

2007-08-19 Thread Micky Hulse
Augusto Morais wrote: I want create a variable based in another variable. Example: Maybe this will give you some ideas?: <http://us3.php.net/manual/en/language.variables.variable.php> Good luck! Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Micky Hulse
I use and love 8.88$, plus whois guard. The control panel is great. Fast customer service. Also, I personally would avoid mixing host and registrar. Cheers, M -- Wishlists: Switch: BCC?:

Re: [PHP] Re: Rules of Engagement

2007-07-29 Thread Micky Hulse
Tom Ray [Lists] wrote: Well I think my only issue with it is that this is a group discussion .. to the list by default. I agree with Tom. I ussually hit reply, and take a few seconds to delete all the emails except the list email -- not very hard. :) -- Wishlists:

Re: [PHP] The Official OT "Name Tedd's Grandson" Thread

2007-07-26 Thread Micky Hulse
Congrats Tedd! :) Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8> My: <http://del.icio.us/mhulse> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP short tags: Questions

2007-07-12 Thread Micky Hulse
cated" and have been on the "verge of removal from the PHP language a few times in the past." Interesting stuff. :) Thanks again Richard and all. Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC?: <http:/

Re: [PHP] PHP short tags: Questions

2007-07-12 Thread Micky Hulse
Hi Chris, thanks for the quick reply. I appreciate your help. Chris wrote: Sure. Thanks. :) 1 & 3 definitely. No idea how it's a security risk. Ah, great. Thanks for clarification. I probably mis-read the info about it being a security risk. Have a great day, Cheers, Micky --

[PHP] PHP short tags: Questions

2007-07-12 Thread Micky Hulse
Hi, I am trying to describe why php short tags failed to work on a server... here is my simplified explanation: "it had to do with the server settings... The short_open_tag directive in php.ini was set to 0." Do you think that is an ok way to describe the problem to a technically literate

Re: [PHP] help with multi dimensional arrays

2007-05-24 Thread Micky Hulse
Micky Hulse wrote: Looks like you are missing a comma on line 3. Doi, meant "semi-colon", not comma... Lol. Also, when I get PHP errors, if not obvious, I check the previous line also... If says something like "error on line 7" I will look at both line six and seven. O

Re: [PHP] help with multi dimensional arrays

2007-05-23 Thread Micky Hulse
Looks like you are missing a comma on line 3. James Lockie wrote: I get a syntax error on strlen. $newTypes = array(); $newTypes[0] = array(); $newTypes[0][0] = "Starting with" $newTypes[0][1] = strlen( $newTypes[0][0] ); -- Wishlists: Switch:

Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
:D Thanks Robin! I appreciate the help. Have a great day/night. Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8> My: <http://del.icio.us/mhulse> -- PHP General Mailing List (http

Re: [PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
Micky Hulse wrote: /* ** Output: ** /web1/httpd/htdocs/blogs/images/uploads */ Ooops, typed that wrong, example output should be: /web1/httpd/htdocs/folder/foo -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8>

[PHP] Remove domain: What do think of this approach?

2007-05-16 Thread Micky Hulse
//www.site.com/folder/foo); echo $_SERVER['DOCUMENT_ROOT'].$from_root; /* ** Output: ** /web1/httpd/htdocs/blogs/images/uploads */ So, do you think I can rely upon the above script? I have a feeling the answer will be no Or, anyone have any tips/improvements? Thanks! Cheers, Mic

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-15 Thread Micky Hulse
saver. :) Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8> My: <http://del.icio.us/mhulse> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
s room for clarifications. :D Thanks Daniel, Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8> My: <http://del.icio.us/mhulse> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
eally research the best option for my code... Hmm, a part of me does not mind the things you say above, but another part of me wonders if it would be best to restrict the commercial usage of it. Heheh, well, either way, thanks for the help. I appreciate it. Have a great day. Cheers,

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
it is listed of course. Ah, well, that does sound good too. I a mainly looking to keep my name/website somewhere in the comments. :D Whichever route I end-up taking, it is definitely nice to hear what the pros prefer. ;) Thanks again Tijnema! Have a great day. Cheers, Micky -- W

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
ds like a great project... and it is cool to hear what you/your team decided to use for licensing. :) Many thanks Daniel! I really appreciate the help and advice. Have a great day, Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC

Re: [PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
Micky Hulse wrote: Or, should I just not worry about this? Well shux! I love it when I answer my own questions: <http://www.phpfreaks.com/tutorials/19/0.php> I blame it on lack of sleep! The GNU GPL License sounds like what I need. :D Cheers, M -- Wishlists: <http://snipurl.

[PHP] Making code public -- What steps to take? GPL?

2007-05-13 Thread Micky Hulse
ECTION WITH THE SOFTWARE OR THE USE OR ** OTHER DEALINGS IN THE SOFTWARE. */ Different verbiage, of course... Or, should I just not worry about this? Lol! I hope I am phrasing my question right... I have been up all night coding, so my brain is kinda mushy right about now. :D Many TIA&#

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-11 Thread Micky Hulse
all! I greatly appreciate your help. Have a good one! Cheers, Micky -- Wishlists: <http://snipurl.com/1gqpj> Switch: <http://browsehappy.com/> BCC?: <http://snipurl.com/w6f8> My: <http://del.icio.us/mhulse> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-10 Thread Micky Hulse
Micky Hulse wrote: Ah, well Chapter 6, page 144-145 have helped clear-up a little bit of my confusion: Sorry, forgot to mention what book I was refering to: O'Reilly Programming PHP By Rasmus Lerdorf & Kevin Tatroe <http://snipurl.com/1k4ug> -- Wishlists: <http:/

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-10 Thread Micky Hulse
Micky Hulse wrote: Seems like I have always read/heard that it is best to explicitly pass variables as function parameters... vs throwing around "globals." Ah, well Chapter 6, page 144-145 have helped clear-up a little bit of my confusion: " .. Here's a simple cla

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-10 Thread Micky Hulse
Richard Davey wrote: Within the constructor for Randimg you could set a local protected variable: class Randimg { var $docroot = false; function Randimg () { $this->docroot = $_SERVER['DOCUMENT_ROOT']; } Hi Rich and all, just one other quick question... Which approach below would

  1   2   3   >