| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> hrm <0> !php function strip_ext($fn) { if ($p = strrpos($fn, '.')) $fn = substr($fn, 0, $p); return $fn; } echo strip_ext(".htaccess"); <1> .htaccess <0> heh <2> hi channel] <2> sorry for ] <3> thanks a lot <4> don't let it happen again. <2> oh i won't =) <3> Two-Bits i am going to paste the code and tell me if it's ok <4> why don't you just tell us if it works <3> i haven't install in this computer apache and php <0> banxt: or you could TRY the code and YOU tell ME if it's ok <3> Two-Bits: i can't test it in this computer <4> this ask jeeves party is gonna rock :P <3> http://www.nomorepasting.com/paste.php?pasteID=57891
<0> banxt: it usually helps to ask php questions when you're currently in a position to test your own code <3> yeah i know <0> i dont walk to car mechanic for advice on a car i left at home <0> your echo probably isn't going to do what you want <0> if $file is "foo.html" and $lala is consequentially "foo"... <0> !php $file = "foo.html"; $lala = "foo"; echo "<A HREF=news/".$file.".html".$lala."<br>"; <1> <A HREF=news/foo.html.htmlfoo<br> <0> yeah.. not what you want at all <0> !php $file = "foo.html"; $lala = "foo"; echo "<a href=\"news/$file\">$lala</a><br>"; <1> <a href="news/foo.html">foo</a><br> <0> or for readability: <0> !php $file = "foo.html"; $lala = "foo"; echo '<a href='"news/' . $file . '">' . $lala . '</a><br>'; <1> Parse error: syntax error, unexpected '"', expecting ',' or ';' in /usr/home/poutine/safe/raw.php(6) : eval()'d code on line 1 <0> !php $file = "foo.html"; $lala = "foo"; echo '<a href="news/' . $file . '">' . $lala . '</a><br>'; <1> <a href="news/foo.html">foo</a><br> <3> \"news/$file\" can you explain me what that does, please ? <0> the slashes escape the double quotes so php doesn't think they mark the end of the string, but rather are meant to be IN the string <5> why the hell do people make a million widgets of clocks, to do lists, and weather checkers??? no one wants a goddamn 300x400 block on their desktop that tells them it's ****ing raining outside! <4> i do <0> beyond that, php allows variable interpolation within strings. whereby if it finds a legal variable name inside a double qutoed string, it will automatically replace it with the variable's value <4> are you talking about osx's dashboard widgets? <5> evulish: considering that's the only way you know what goes on outside your apt.. you're the exception. no, desktopX for windows <5> but osX too <4> what if it's dark out? <4> what if you want to know what it's gonna be like tomorrow? or somewhere you're heading? <0> stick your ****ing hand out the ****ing window <5> lol. good thinking. I should make a widget that shows "light intensity" <4> the windows here have screens on them <6> what if you want to check if it's raining? <6> do you (a) remove your fat *** from that comfortable chair <6> or (b) hire a widget? <0> i should make a widget that tells everyone in the area that it's a ****ing blizzard outside. that way they'll stay the **** inside and off my ****ing roads <6> i mean, c'mon, i always go with B, you should too <3> thanks a lot Two-Bits <3> :) <6> in fact, we need a weather bot in here <0> banxt: cheers <6> weatherbot, is it raining in eugene, or? <6> <weatherbot> Yes. <6> thanks, weatherbot. <5> <weatherbot> i'm here to server <5> serve* <5> damnit <6> so like, eve has been installing for ten minutes <0> weatherbot, what are the conditions of jedzilla's vagina? <0> <weatherbot> sandy <4> hahaha <6> and it seems to be at 1%, but the "master" progress bar has no percentage text <6> this is frightening <3> any suggestion for php book starter? <0> php.net/tutorial <6> banxt: http://php.net/tut <0> bastard <5> holy crap! they want you to pay $4 to download a magic 8 ball widget? <6> Stoned4Life: they coded a magic 8 ball? wow, i hope they wrote a white paper about it <5> lol <6> because getting the great godly wisdom out of an 8 ball must have been extremely hard <5> what was it? 4 lines of code and an animated gif <0> i should run an 8ball script where one of the possible responses is you getting kicked
<0> ok.. lay it on me. i need a ****ton of humerous and vulgar responses <5> lol <5> maybe a russian roulette with a kick ban <0> none that involve correcting my apparent inability to spell humorous <6> whoa, the client is in python too? <6> i'm seeing a zillion __init__.py's going by in this installer <6> unreal, they wrote a game server and client in stackless <6> simply unreal <3> any books titles?? <5> ? <5> Tom Clancy's Rainbow Six.. that's a good book & title <7> and game <7> series <5> nice gmail widget... lol, stores p***word in plain text =P UH oH! <5> i'll take the risk <5> another overused widget; analog clocks.. why the hell would you want a giant wall clock on your desktop when you got a digital one on your taskbar? <0> for technophobes and the visual impaired? <0> dont ask how technophobes installed a widget. blood will shoot out your nose <5> lol <8> or how a analog clock on a computer screen would help the blind <0> i said impaired, not necessarily blind <0> for the ones you have to take their cokebottle gl***es off when using a computer so they dont burn their retinas <8> oh <8> pussies <0> yeah, them too <5> hmm.. nice ram/cpu meters.. except their HUGE! .. who makes these things? do they even use it themselves? whatever happened to a nice little meter/numerical display? <5> they're** <0> **** it, i need a nap <9> sup bisrt <9> bits <0> sup <5> later <10> hello? <9> hello..hello...hello.... <9> is there anybody in there... <10> hey jon whats up <9> just nod if you can hear me... <9> is there anyone home.. <11> holy **** <11> where ya been jon boy? <9> sup ansi <9> hi, spacepod <9> just got inet turned on at the new place <11> nice <10> rite on <11> so hows the new crib? <9> heh it's a place to lay your head i guess <9> ain't nothing spectacular <11> i figured ya got doped up and joined the circus or somethin <9> lmfao <9> hahah <9> not yet ;D <11> good deal <9> oh <9> evulish <9> he works for fcxm no? <9> gerant <9> grant <9> you work for fcxm right? <11> he works for me <11> setting up my tents and shoveling elephant **** out of the road <11> hey jon <11> how bout letting me leech some albums? <11> :D <12> ... <13> hiya all <11> hi <13> i dont know you guys can help me but I got a little problem with regular expressions.. <13> im a c++ programmer and im using the boost regexp library <11> state your problem <13> the problem is that expressions like *foo is an invalid regular expression, atleast in this library im using <11> if someone cna help, they will.
Return to
#php or Go to some related
logs:
#india #kl #india foxy_biarch #chat-world #worldchat #india funny chailds #india #india
|
|