| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<Technobabble> i have a **** load of NICS <Technobabble> i have like... 8 here <Kanzie> does anyone know the tag for printing code, as code.. I have a string that it could as well be html in, and in that case I want to see the html, not have it beeing rendered <Herms> changing < to < should do it <Herms> $string=str_replace ("<", "<", $string) <Herms> and do the same for the > i guess <Kanzie> alright... <Kanzie> thanks <Mr_Eko> guys, do you know a nice ajax framework that functions easily with php? <metallic> ****, some bitch gave me mono. <spox> ha <metallic> next time i see her, i'll **** her in the butt. <RealMenE1tBacon> sajax <spox> Mr_Eko: http://www.modernmethod.com/sajax/ <RealMenE1tBacon> I WIN <spox> http://www.xajaxproject.org/ <spox> also, rails <spox> but that's ruby <groogs__> yeah, xajax is fairly nice <RealMenE1tBacon> zachistan would be a good band name. <metallic> man, we should really find a trollgirl to make trollboy a trollman. <groogs__> i need a regex .. how can I match "unique" if it's in a string seperated by "|" or at the start or end? ie.. "unique|something", "foo|unique|bar" match, "unique1", "foo|notunique" don't match <spox> i think it would be hard to find one he wouldn't crush <groogs__> hrm, or perhaps i should just expode() and array_search() .. <metallic> well, ***uming the string is rather short, the explode/array search approach should be fast enough. <Technobabble> hey spox <Technobabble> what's with these GREEN ORANGE BLUE **** <RealMenE1tBacon> they're m&m's. <Technobabble> red is apparently modem or isdn <spox> they are interfaces <spox> red is outside <spox> orange is dmz <spox> green is inside <spox> blue is wireless <Technobabble> ooooh <Technobabble> so i'll need a green orange red <Technobabble> wait, should my webserver run on the dmz? <Technobabble> or just another green with 80 and 21 and such forwarded <groogs__> 21? <groogs__> hi, this is 2006 <Technobabble> ftp n **** <Technobabble> and maybe some ssh <groogs__> 2001 called. they want their ftpd back <Technobabble> lol <spox> Technobabble: green is where you should be <spox> orange is where your servers should be <Technobabble> i have 3 nics though <Technobabble> okay <spox> red is where the internet should be <Technobabble> green orange red it is <spox> @php $string = 'foo|bar|unique'; echo preg_match('/(^(.+?\|)*unique.*)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <spox> @php $string = 'foo|bar|unique|ga'; echo preg_match('/(^(.+?\|)*unique.*)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <spox> @php $string = 'foo|bar|dunique|ga'; echo preg_match('/(^(.+?\|)*unique.*)/', $string) ? 'good' : 'bad'; <mod_spox> Result: bad <spox> @php $string = 'unique|ga'; echo preg_match('/(^(.+?\|)*unique.*)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <spox> does the word have to be unique only <spox> @php $string = 'foo|bar|uniqued|ga'; echo preg_match('/(^(.+?\|)*unique.*)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <spox> @php $string = 'foo|bar|unique|ga'; echo preg_match('/(^(.+?\|)*unique.*)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <spox> ? <Mr_Eko> i don't understand how that sajax stuff works <Zenethian> PAT SAJAX <groogs__> spox: yeah. thanks tho <groogs__> @php $string = 'foo|bar|unique|ga'; echo preg_match('/(^(.+?\|)*unique(\|.+)*)/', $string) ? 'good' : 'bad'; <groogs> @php $string = 'foo|bar|unique|ga'; echo preg_match('/(^(.+?\|)*unique(\|.+)*)/', $string) ? 'good' : 'bad'; <spox> @php $string = 'foo|bar|unique|ga'; echo preg_match('/(^(.+?\|)*unique(\||$))/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <groogs> @php $string = 'foo|bar|unique1|ga'; echo preg_match('/(^(.+?\|)*unique(\|.+)*)/', $string) ? 'good' : 'bad'; <spox> @php $string = 'foo|bar|uniqued|ga'; echo preg_match('/(^(.+?\|)*unique(\||$))/', $string) ? 'good' : 'bad'; <mod_spox> Result: bad <spox> that one will work <groogs> i didnt know you could do \||$ <groogs> @php $string = 'foo|bar|unique'; echo preg_match('/(^(.+?\|)*unique(\||$))/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <groogs> well, nifty <groogs> @php $string = 'foo|bar|uniqued|ga'; echo preg_match('/(^|\|)unique(\||$))/', $string) ? 'good' : 'bad'; <mod_spox> PHP Warning: preg_match(): Compilation failed: unmatched parentheses at offset 18 <mod_spox> Result: bad <groogs> @php $string = 'foo|bar|uniqued|ga'; echo preg_match('/(^|\|)unique(\||$)/', $string) ? 'good' : 'bad'; <mod_spox> Result: bad <groogs> @php $string = 'foo|bar|unique|ga'; echo preg_match('/(^|\|)unique(\||$)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <groogs> @php $string = 'foo|bar|unique'; echo preg_match('/(^|\|)unique(\||$)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <groogs> @php $string = 'unique|foo|bar'; echo preg_match('/(^|\|)unique(\||$)/', $string) ? 'good' : 'bad'; <mod_spox> Result: good <groogs> thats pretty simple actually. <groogs> thanks spox <spox> sure <Q8istud> please can any one help me?? <Q8istud> i have a note. it`s consist of many words. <spox> only if you ask a question <Q8istud> can i have a function to select some word to showing it to the user?? <spox> sure <Q8istud> what is it?? <spox> @php function show_word(){ echo 'word'; } show_word(); <mod_spox> Result: word <Q8istud> thank you spox <Technobabble> spox, this thing pretty much replaces my linksys router, right? <spox> yeps <groogs> show_that(); show_would(); show_be(); show_a(); show_fun(); show_way(); show_to(); show_program(); <spox> put replace "pretty much" with "does" <spox> lol <Technobabble> lol <Technobabble> good <spox> Technobabble code! <Q8istud> thank for all <Technobabble> because my ****ing linksys doesn't like my UPS's powers waveform <Technobabble> so whem my power goes down <Technobabble> my intarweb goes down too <Robdgreat> whatcha got, Tb <spox> ipcop has lots of nifty plugins <Technobabble> i have a big ****er <Kanzie> good god, you have your own heaven here spox <groogs> one of my friends was in a cl*** where they were learning php. apparently the teacher made them echo every html tag individually, and didn't let them break out of php when printing a big chunk of html <spox> Kanzie: ? <Technobabble> groogs, taht would **** <groogs> Technobabble: that is strange. what kind of ups? <Technobabble> it's an old thing <Technobabble> it's big <Technobabble> you can see it on the bottom <Technobabble> Tripp Lite Smart Pro 3000 something <Technobabble> i thought it was hospital grade, but it puts out that stepped wave form <groogs> most sub-$10k UPSes do.. <Technobabble> so everyone plays nice with the stepped <Kanzie> spox: all your fancy toys for helping us php-wannaknows out <Technobabble> except the old linksys <Technobabble> Kanzie, it's a bot <Kanzie> more nifty than fancy actually <Kanzie> I get that <Technobabble> bots do taht kinda **** <Technobabble> @php echo "kanzie ****s"; <RealMenE1tBacon> http://pastebin.com/723525 <mod_spox> Result: kanzie ****s <groogs> thats very strange, a normal wallwart should have no trouble with that since it as a capactor in it anyways <RealMenE1tBacon> well this has been a fun day of making a mess of javascript <groogs> or it's switched and in that case it should be able to handle just about anything <groogs> (ie, usually a 5v switched power suppy can handle a source voltage of like 70-240VAC <Technobabble> it gets it's red error light on it <groogs> do you have a multimeter? <Technobabble> and it just refuses to route packets <Kanzie> anyways... how do I destroy a variable? <Technobabble> not one that will read a stepped wave form <Technobabble> it reads out at about 94 V output <groogs> maybe your ups is broken .. <spox> @unset <mod_spox> (PHP 3, PHP 4, PHP 5)
Return to
#php or Go to some related
logs:
SONATA2008 anjalina in india gtyuui
#chat-world SCOTTY DOESEN'T KNOW #kl ankarada travesti vcdz.info hi2 world #india
|
|