Re: [PHP] Script feedback: insert string into another string

2007-04-28 Thread Micky Hulse
Micky Hulse wrote: Shux. I have a feeling that, with the help of Tijnema, I just re-invented wheel. Wait! wordwrap() default behaviour is to count characters, not words. "wordwrap — Wraps a string to a given number of characters using a string break character" I think tha

Re: [PHP] Script feedback: insert string into another string

2007-04-28 Thread Micky Hulse
Brad Sumrall wrote: But! I am now noticing that the main page provides cookies called _utma _utmb _utmc _utmz Hmmm Wha? Never thought of that. It looks like wordwrap() may not be what I am looking for (though, still researching)... Either way, I am curious to hear what you would

Re: [PHP] Script feedback: insert string into another string

2007-04-28 Thread Micky Hulse
Micky Hulse wrote: Allowing cookies sounds like a security hole... Any suggestions for beefing-up my security would be spectacular! :) Ahhh, would that have anything to do with XSS? <http://www.php.net/manual/en/function.htmlentities.php> I thought striptags() would take care o

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Hi Daniel, Daniel Brown wrote: BTW: PHP .net search breaks if you search for <<< Try this: www.php.net/<<< And then scroll down to heredoc section. Heredoc comes in handy from time-to-time. Cheers, M -- Wishlists: Switch: BCC?:

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wishlists: Switch: BCC?:

Re: [PHP] What does "<<<" mean?

2007-04-30 Thread Micky Hulse
Greg Donald wrote: Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) -- Wishlists: Switch: BCC?: My: -- PHP General Mailing Li

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Micky Hulse
Hey Richard! Thanks for the reply. I was hoping someone would re-visit my questions. Richard Lynch wrote: I can GUARANTEE that PHP's wordwrap did NOT issue those cookies. Oh, for sure. I understand that. I guess what I was trying to say/ask was this: 1. wordwrap() is a little different than

Re: [PHP] Script feedback: insert string into another string

2007-05-02 Thread Micky Hulse
Hi Richard! Thanks again for your help on this one. ;) Richard Lynch wrote: These are from some non-PHP session/cookie management setup, I believe. Ahhh, very interesting! Thanks for the clarification. :) Call me paranoid. Better that than spammed! :D PS Still haven't figured out why you

Re: [PHP] Script feedback: insert string into another string

2007-05-03 Thread Micky Hulse
Hi Richard, thanks again for the detailed reply, I really appreciate you help. Richard Lynch wrote: Counting words is almost always a Bad Idea, since you may have users who use big fat words (University professors and Market-speak) and you have have texters who, like, don't even use words... u

Re: [PHP] Articles system

2007-05-08 Thread Micky Hulse
Robert Cummings wrote: I'll take one big scroll any day over 10 pages of ad infestation. At my part-time job (web content editor at newspaper) we give folks the option of viewing the multi-page ad infested article as a "print preview" which is the same article, but on one page and print ready

Re: [PHP] Articles system

2007-05-08 Thread Micky Hulse
Richard Lynch wrote: I don't really understand how breaking it up is "good" unless we're talking about a "series" broken up by an author or editor for good valid semantic reasons... Some good info from book Google Advertising Tools: " Page Size: How much content should go on each site page?

Re: [PHP] Articles system

2007-05-08 Thread Micky Hulse
Richard Lynch wrote: "It should be as long as a woman's skirt; Long enough to cover everything important, and short enough to be interesting." Hehehe! Great quote! :D -- Wishlists: Switch: BCC?: My:

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

2007-05-10 Thread Micky Hulse
Hi, This might be a real obvious question/answer... but I have been up all night geeking on code, so my mind is kinda mushy -- please be kind. :) I have a class called Randimg. Within that class, I have several methods. Within a few of those methods, I use the below code snippet: $_SERVER['

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

2007-05-10 Thread Micky Hulse
Hi Rich! Thanks for the quick reply. I really appreciate your help. :) Richard Davey wrote: In PHP 5 could you create $docroot as a protected class constant, but in PHP 4 the above will have to do. Ahhh! Very interesting. Many thanks for the code example and explanation -- that approach works

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

2007-05-10 Thread Micky Hulse
Hi Eric! Thanks for the fast reply. I really appreciate the help on this one. :D Eric Butera wrote: As Rich pointed out you cannot have constants within a class in PHP4. To answer the second part of your mail, one technique that I have seen is something like the code below. Ahhh, that is inte

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

2007-05-10 Thread Micky Hulse
Richard Davey wrote: I don't know if that's the *best* way, personally I'd not really do it like that, but no-one can tell you it is 'right' or 'wrong' because it .. Perfect answer! Thanks! I do not have too many error messages to store, but I do like the constant approach... Looks like

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

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
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-11 Thread Micky Hulse
Hi Eric! Thanks for your reply. :) Eric Butera wrote: If at all possible you're going to want to use PHP5 if you're doing ...snip... of those "problems" have been alleviated. Gosh! I wish I could use PHP5... Unfortunately the hosting company I am using has not upgraded. I can not wait to star

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

2007-05-13 Thread Micky Hulse
Hi, I am in the process of writing a simple but useful plugin for a blogging application Long story short, I want to give-back to the community (i.e. free plugin), but would like to make an attempt at retaining some credit if folks port/use to/in other scripts/blogs/cms apps. Any tips

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.

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

2007-05-13 Thread Micky Hulse
Daniel Brown wrote: If you want to retain some credit but don't care about distribution/modification/redistribution, check out the MIT license (more commonly referred to as the X or X11 license). We're using it in a project Ah, great tip! :D I will definitely read-up on the MIT license aft

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

2007-05-13 Thread Micky Hulse
Hey! Tijnema! Thanks for the quick reply. :) Tijnema ! wrote: I'd say, don't worry too much about the license, just put your name on top of the code, and some other nonsense, like: You're allowed to use this code, as long as you leave above lines intact., where above your credit is listed of cou

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

2007-05-13 Thread Micky Hulse
Crayon Shin Chan wrote: Don't forget the MIT license allows people to incorporate your code into commercial products and sell for profit without having to give anything back (money/improved code/etc). Hi Cayon, thanks for clarification. I just woke up, so I have not had a chance to really res

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

2007-05-13 Thread Micky Hulse
Daniel Brown wrote: Right, I alluded to that, but perhaps I should've said that exactly, as it may bother some people. In my case, it doesn't bother me in the least, just as I use LAMP (all open source) to make a living. Oh, I think I understood that. But there is always room for clarifica

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

2007-05-15 Thread Micky Hulse
Howdy, I just wanted to say, to all who responded, many many thanks for the help. I greatly appreciate it. I have not made my decision just yet, but it has been great hearing the advice and reading about all the different options available... Well, anyay, thanks! This list has been a life sav

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

2007-05-16 Thread Micky Hulse
Hi folks, I hope everyone is having a good week. :) Let me cut to the chase... Basically, I need to get this: http://www.site.com/folder/foo To work like this: $_SERVER['DOCUMENT_ROOT'].'folder/foo/file.ext'; For use with getimagesize() and a few other functions (trying to avoid possible ope

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>

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

2007-05-16 Thread Micky Hulse
Robin Vickery wrote: use parse_url() http://www.php.net/parse_url then append the 'path' part to document root ? OMG, that looks like it will do the trick! Jeez, how did I miss that. I feel like a dufus. Are list members allowed at least one "RTFM" question per month? :D Thanks Robin! I appr

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] 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

[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] 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 -- Wishlists:

Re: [PHP] PHP short tags: Questions

2007-07-12 Thread Micky Hulse
Hey Richard, thanks for the reply. I appreciate it. :) Richard Lynch wrote: http://php.net/ Yikes! I guess it was one of those RTFM question/answers! Lol. :D #2 sounds awfully bogus to me... Yeah... Hmm, now I am starting to wonder where I heard/read that. Maybe it was a co-worker. I am g

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

2007-07-26 Thread Micky Hulse
Congrats Tedd! :) Cheers, Micky -- Wishlists: Switch: BCC?: My: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] 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] cool your jets [WAS: Re: [PHP] working on a template system...]

2006-06-28 Thread Micky Hulse
Lol! Omg, you guys make reading my email so much more fun! Cheers! Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Sad PHP Poem

2006-07-01 Thread Micky Hulse
Ryan A wrote: Its a mis-spelling of two words taken out of context, its actually "sock her" and meant for Hillary Clinton Hehehe, n1! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shopping Carts

2006-07-08 Thread Micky Hulse
Michael B Allen wrote: Any ideas? I plan on using this one for my next shopping-cart project: "CubeCart is an eCommerce script written with PHP & MySQL. With CubeCart you can setup a powerful online store as long as you have hosting supporting PHP and on

[PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-09 Thread Micky Hulse
Hi, I have not done much Googling yet... thought I would ask here before I spend a bunch of time searching for some guidance... What would be the best function set for on-the-fly image manipulation (specifically image rotation?) Is it easily done? Possible? Worth the trouble? Any links and/

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Chris wrote: It is. http://www.php.net/image There's even a function to do the rotations for you http://www.php.net/manual/en/function.imagerotate.php OMFG... I am such a schmuck! :: Bangs head on keyboard :: JK:Luhey; fdksahuioreufkjL: KHgfuidksja; fkdlsaah; lkhfkldjhsaljk fdsaU^TYGHBJFhjfd

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Hi, Hehe, looks like I did not hit the hay just yet... too much geeking to do! Chris wrote: It's always interesting to see so many interpretations of the one thing :) Yeah, no doubt! I found this on AlistApart: Took me a few mins to figure ou

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
tedd wrote: Not as I see it. The first definition in the dictionary is seldom the only "correct" definition. Good point... Not to be contrary, but: What about when you are speaking in terms of computers, and specifically images? Seems like if the subject is "images on the computer", "rotat

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Jay Blanchard wrote: While we are splitting hairs, slideshow would only be applicable if the images continued to change without page reloading. LOL, good point! Hehee. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Jay Blanchard wrote: The other day I saw a temporary road construction sign that said "Slow Men Working" and it gave me pause Reminds me of: "Do you come from a land down under? Where women glow and men plunder? Can't you hear, can't you hear the thunder? You better run, you better take co

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
tedd wrote: You make a great points. As the old lady said, as she kissed the cow "To each their own." :-) Sounds good to me. Like you said, things like this are very interesting. Nice site btw. I really like the simplicity of the logo, and very cool idea to make the tree change with the se

[PHP] #comment, (* comment *), -- Any good alternatives to

2006-08-05 Thread Micky Hulse
Hi, Hopefully this is not a completely stupid question, but... Any alternatives to using HTML comments in an XHTML 1.0 Strict docutment? For example, I could do this: XHTML XHTML XHTML XHTML XHTML XHTML That might work for some situations... Any other alternatives? I would like to find a w

Re: [PHP] #comment, (* comment *), -- Any good alternatives to

2006-08-05 Thread Micky Hulse
Micky Hulse wrote: Any other alternatives? I would like to find a way of adding comments to an XHTML PHP page that is quick and easy. Ah, nevermind... I should have never posted this question. This solved my problem (IE duplicate char bug): I was trying to think of ways to include comments

[PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Hi, Recently, a client of mine was getting a ton of spam email from a site called hotbox.com. I updated her form to one with more spam security, but she is still receiving junk email. Anyone feel like sharing code snippets that will help beef-up spam protection for a contact script? Do you

Re: [PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Quick note to Kevin Waterson: Hehe, I think all this talk about spam sent my response to your reply into your spam filter... I got a bounce back. Thanks for help though... let me know if there is any way I can re-send the email without a bounce-back. Richard Lynch wrote: If you are not alre

Re: [PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Micky Hulse wrote: Recently, a client of mine was getting a ton of spam email from a site called hotbox.com. I updated her form to one with more spam security, but she is still receiving junk email. Hi all, thanks for the great responses (on/off list). I just realized that the spammer is not

Re: [PHP] Comment form spammer

2006-08-09 Thread Micky Hulse
Micky Hulse wrote: I just commented-out all of the PHP in the old script and added one line: die("#%$#@ off!"); Actually... is there anything more I can do at this point to fight back? Can I use something better than die()? Or, is it best just to let them figure it out and go away

Re: [PHP] [ATTN: Kevin W] Comment form spammer

2006-08-10 Thread Micky Hulse
Ack, your email provider thinks my email is spam... not sure why. I got a bounce-back with this link: Permanent Failure: 553_5.3.0_<[EMAIL PROTECTED]'s domain].net>..._REJECT:550_Spam_filter_activated_see_http://[kevin's domain].net/spam/ Sorry to hit the PHP list, but I really wanted to tha

Re: [PHP] Comment form spammer

2006-08-10 Thread Micky Hulse
Richard Lynch wrote: You can tie up their connection, wasting your connection... If it were my own site, I might think about doing something like wasting my connection... I suppose you could do: header("Location: 127.0.0.1"); and then they'd be trying to surf to their own computer, if they

Re: [PHP] Comment form spammer

2006-08-10 Thread Micky Hulse
Richard Lynch wrote: I rolled my own, because I thought it would be a useful learning experience. Sounds like what I am thinking. :) And, I kinda sorta documented it. Well, I put the source up on-line anyway. :-) So here's one crude hack way to do it, if you just want the basics of how it's

[PHP] b4nl() - What, Why, Where...

2006-08-10 Thread Micky Hulse
b4nl($foo); Could not find info on php.net maybe I did not look hard enough. Tia, Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] b4nl() - What, Why, Where...

2006-08-10 Thread Micky Hulse
Hi Chris. Chris wrote: It's not a php function. Assuming you're on *nix or *bsd, you can grep your source code for it: grep -ilr 'function b4nl' * Your text editor may also have a search function that will do something similar. Ahhh... strange. I think I have seen a few PHP scripts that use i

[PHP] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Hi, It is getting late, and I do not think I am thinking clearly... What would be the best way to wrap tag around the first letter of a string? I know it has to be a combination of str_replace() and substr(), but due to my level of sleepiness I am having a lot of trouble working this one o

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Yeah, I do need sleep... Thanks guys for the posts... exactly what I was looking for. Oh, and I did come-up with something similar right after posting: if($configs['access_key'] === true) { $pages[$i][0] = substr_replace($pages[$i][0], ''.$pages[$i][0]{0}.'', 0, 1); } Thanks again to both of

Re: [PHP] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Stut wrote: I could be mistaken, but I seem to remember reading somewhere that using that syntax to access characters in a string has been removed from PHP6. I suggest you use $string[0] instead. (Yes, I am sleep-typing!) Hi Stut, Ah, thanks for bringing that up... Changing this: $pages[$i

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
Thanks to you folks, this works even better: if($configs['access_key'] === true) { foreach($pages as $key => $string) { $pages[$key][0] = ''.$string[0][0].''.substr($string[0], 1); } } Many thanks, :) ... Now I can sleep. :D Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] [solved] Emphasizing first letter of string?

2006-08-22 Thread Micky Hulse
tedd wrote: Not meaning to wake you, but you might consider removing markup from presentation via css. If so, checkout: http://www.w3schools.com/css/css_pseudo_elements.asp Ah, good point! Lol. Looking into that now... all I want is basic access-key support/styling. Thanks for the tip. :)

[PHP] Comparing strings... need advice. :)

2006-08-27 Thread Micky Hulse
Hi, I am looking for the most secure/efficient way to compare these two strings: /folder1/folder2/folder3/folder4/ /folder1/folder2/folder3/folder4/file.php Basically I am trying to setup as many security features as possible for a simplistic (home-grown/hand-coded) CMS... This appears to wo

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Stut wrote: First of all make sure you are sending both strings through realpath (http://php.net/realpath) to remove any symbolic links and relative references. Then you can compare the two strings. The way you're doing it will work but it's probably not very efficient. This is what I use... $va

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Wow, thanks for all the great information folks (Stut, Ivo, Rob, and David.) I really appreciate all of the top-notch advice and expert information. :D Looks like I have a lot to think about... Currently, I hard-code the paths to the folders that house the files I want my CMS to edit (via a co

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Hi Robert, Robert Cummings wrote: How are these saved files then imported into the content? Are they included or do you retrieve the contents using something like file(), file_get_contents(), or fread() and then echo it? If you are using Currently I am using readfile() (plus some other securit

Re: [PHP] Comparing strings... need advice. :)

2006-08-28 Thread Micky Hulse
Robert Cummings wrote: Readfile works great, it's the same as file_get_contents() and then Ah, good to hear. :D issuing an echo. You may want to also stored content generated by web users outside of the web tree. There may not be any issue with how you [...] with PHP tags and accesses it dir

Re: [PHP] Comparing strings... need advice. :)

2006-08-29 Thread Micky Hulse
Ivo F.A.C. Fokkema wrote: Ah, thanks. Misunderstood the question, then. Thought just checking if it's a file in that directory was what's needed. You were right. :) I did not plan on looking-in anything other than one or two hard-coded folder locations. But, it is good to know the details. ;)

Re: [PHP] Texture and wrap

2006-08-31 Thread Micky Hulse
tedd wrote: http://xn--ovg.com/pframes Whoa, nice work Tedd! :) Very cool. Gives me some fun ideas... thanks for sharing. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Micky Hulse
Hi, I am slowly learning how to use classes properly... quick question: # Create the object: $doSplash = new RandomSplash(); // Create the object. Shouldn't I be able to call that object like below, throughout my page: ...HTML... randomize('css'); ?> ...HTML... randomize('xhtml top'); ?> ...HT

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Micky Hulse
Micky Hulse wrote: Any help, even a RTFM link, would be really appreciated. :) Hi all, A fellow list member gave answered my question off-list and pointed me here: http://www.php.net/oop Going to (re)read... It has been a while since I last worked with classes. :) I asked because I was

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Micky Hulse
Christopher Weldon wrote: What's the error, and how do you have the class and functions defined? Hi Christopher, thanks for asking. :) Actually, it was one of those silly, right in front of my face, logic errors... class RandomSplash { var $alphabet = array('a', 'b', 'c', 'd', 'e', 'f', 'g

[PHP] Ajax and PHP: XMLHTTP

2006-09-10 Thread Micky Hulse
Can I replace the above with some sort of XMLHTTP request? Googling now... thought I would ask here first. Any good links to tuts that might cover that sort of thing? Kinda thinking about plugging some Ajax into a random image php script. TIA. :) Cheers, Micky -- Wishlist:

Re: [PHP] RE: Ajax and PHP: XMLHTTP

2006-09-11 Thread Micky Hulse
Hi all, thanks for responses, I appreciate it. :) Miguel Guirao wrote: What do you exactly want to do? Oh, I wanted to call a php function on my page that changes some CSS. I was hoping I could change my CSS on the fly without having to reload page... but after doing more research, I think t

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-11 Thread Micky Hulse
Hi Curt, thanks for the feedback/input and your time. :) Curt Zirzow wrote: It would have been more relevant to supply the problem along with the solution. Definitely. Sorry about that. Sometimes I post questions to forums/lists without thinking things through more thoroughly... Hehe, I half

Re: [PHP] Yahoo! HackDay

2006-09-22 Thread Micky Hulse
Rasmus Lerdorf wrote: More info on it at the following links: http://yuiblog.com/blog/2006/09/22/yahoo-devday-schedule/ http://nate.koechley.com/blog/2006/09/22/hookytime-yahoo-developer-day-hack-day-on-sept-29th-and-30th/ http://del.icio.us/chadd/yhackday This too:

Re: [PHP] [OFF] A note on replying to this list

2006-10-22 Thread Micky Hulse
Chris wrote: While it's annoying I think it's going to be one of those things you have to live with. Or switch email apps. Thunderbird is pretty good about threading list emails. Can you configure your email app to read something other than the Subject for threading? -- Wishlist:

Re: [PHP] 3d modeling-php

2006-11-21 Thread Micky Hulse
Not sure of your project requirements, but you might want to think about Director/Havok/Shockwave... -- Wishlist: Switch: BCC?: My:

Re: [PHP] heredoc

2006-12-19 Thread Micky Hulse
I think I have come across situations where heredoc is the most useful/best solution... although, I can not remember any specific examples... I would hate to see it deprecated... I find it very useful from time to time. :) -- Wishlist: Switch:

[PHP] mod_rewrite q's: syntax?

2006-04-09 Thread Micky Hulse
Hi all... sorry if this is OT for PHP list... Maybe a reply off-list? I just wanted to share my .htaccess file in the hopes that I can hone/fool-proof-a-tize it as much as possible via your feedback and suggestions. Here is what I got so far... I start by turning-on error reporting, then I am co

RE: [PHP] mod_rewrite q's: syntax?

2006-04-09 Thread Micky Hulse
> -Original Message- > From: Chris [mailto:[EMAIL PROTECTED] > Do you need to do it with a mod_rewrite? > > if not, you can do it easily in php: > > header('location: folder/file.php'); > exit(); > > in index.php. Unfortunately, yes... I am using a CMS, and my current setup is forcin

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
Well, I added this to the end of my .htaccess: # Set the index page: RedirectMatch ^/$ http://mydomain.com/folder/folder/index.php Seems to work well, but I am still concerned about pitfalls/optimization/consolidation... er, perfection? ;) TIA, Cheers, Micky -- PHP General Mailing List (http:/

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
> -Original Message- > From: Joe Wollard [mailto:[EMAIL PROTECTED] > I'm not an expert on the topic by any stretch of the > imagination, but I seem to recall reading that it's best to > move everything into httpd.conf for performance reasons. You > may want to investigate that, but oth

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
Hi Richard, > Doing it on only the URLs *you* think of typing doesn't count. Those > pesky real users can come up with some really interesting URLs to > type... :-) Lol, I was thinking that might be a problem. Thanks for all the great tips, I really appreicate your help. Great info... I am loo

RE: [PHP] mod_rewrite q's: syntax?

2006-04-10 Thread Micky Hulse
> -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Abandon Outlook and use Eudora, or Pegasus, or webmail, or ANYTHING > other than Outlook? :-) LOL! Yeah, I do not know what I was thinking in the first place... Eudora sounds good to me. :D Cheers, Micky -- PHP Gen

Re: [PHP] Good Answers

2006-05-10 Thread Micky Hulse
Good thread. Great points. I always thought this Sitepoint thread was very helpful: Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good Answers

2006-05-11 Thread Micky Hulse
Ligaya Turmelle wrote: here is the link for the improved newbie doc - http://zirzow.dyndns.org/php-general/NEWBIE Might be nice to see a link to the NEWBIE information in the footer of the PHP list emails... know what I mean? -- PHP General Mailing List (http://www.php.net/) To unsubscrib

[PHP] preg_replace learning resources? Regex tuts? Tips? (and yes, I have been rtfm)

2006-05-24 Thread Micky Hulse
Hi all, I have been rtfm on preg_replace, and I am a bit turned-off by how complex reg-exing appears to be anyway, I would like to spend some time learning how I would convert a file full of links that look like: Fake Link 1 Fake Link 2 Fake Link 3 Fake Link 4 And make them look like

Re: [PHP] preg_replace learning resources? Regex tuts? Tips? (and yes, I have been rtfm)

2006-05-24 Thread Micky Hulse
Micky Hulse wrote: Any good links to tutorials and/or resources that teach one how to scrub urls with PHP and regex? Ah, missed this in the comment section of the manual: <http://www.tote-taste.de/X-Project/regex/index.php> Looks like a good place to start. :) -- PHP General Mailin

Re: [PHP] preg_replace learning resources? Regex tuts? Tips? (and yes, I have been rtfm)

2006-05-24 Thread Micky Hulse
Ryan A wrote: http://weblogtoolscollection.com/regex/regex.php HTHs...Cheers, Yeah, looks like a great resource, thanks! :) Cheers, m -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace learning resources? Regex tuts? Tips? (and yes, I have been rtfm)

2006-05-25 Thread Micky Hulse
Koen Martens wrote: You might be better off then by parsing the html file with DOM: http://nl2.php.net/manual/en/ref.dom.php Whoa, that is cool, I had no idea this was something PHP could do! Thanks for the links. :D Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] preg_replace learning resources? Regex tuts? Tips? (and yes, I have been rtfm)

2006-05-25 Thread Micky Hulse
Kevin Waterson wrote: Try this quicky http://phpro.org/tutorials/Introduction-to-PHP-Regular-Expressions.html Sweet, good links all. Thanks for sharing! :) Have a great day. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Simple blog software... Simple but clean code... suggestions?

2006-06-15 Thread Micky Hulse
Hi, I am looking for a very simple blog software... I would prefer something that functions well with CSS and is standards compliant. I am getting tired of setting-up the bigger full-featured blogging packages for small/quick/simple sites. It would be nice to know what others people prefer.

Re: [PHP] Simple blog software... Simple but clean code... suggestions?

2006-06-15 Thread Micky Hulse
Dave Goodchild wrote: Use WordPress - clean, css-based, standards-compliant. You can set up a basic site very quickly. If you want me to walk you through an example contact me off list ( [EMAIL PROTECTED] ). I set up two installations, www.abuddhistpodcast.com

Re: [PHP] Re: Simple blog software... Simple but clean code... suggestions?

2006-06-15 Thread Micky Hulse
Barry wrote: Well if you have that often this case, i would prefer you code one for yourself. Oh, for sure. I completely agree... For the longest time (i.e. the college years) I was against using other peoples blog software or scripts... I would have never learned anything about PHP if it was

Re: [PHP] Simple blog software... Simple but clean code... suggestions?

2006-06-15 Thread Micky Hulse
Dave Goodchild wrote: www.abuddhistpodcast.com and www.mediamasters.co.uk/dg/insp Cool sites btw! Good work. :) Cheers, M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

Re: [PHP] templating

2006-06-22 Thread Micky Hulse
Miles Thompson wrote: Don't forget, PHP itself is a templating language. Just do a standard page, with includes for headers and footers, menus, and content. If he wants to change colour, then load a different stylesheet for a given page or content section. This way he can use the tool that's rig

<    1   2