| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Comments:
<0> sorry <1> theGZA: for loops increment $i explicitly IE: for ($i = 0; $i < 6; $i++) <1> (note the last part - $i++) <0> that doesnt make any sense <0> shouldn't it be correct? <0> WHILE $i is LESS THAN SIX <1> lightbringer: you may need to build cURL, but if you have sockets built... <0> echo out $i ? <1> theGZA: but you aren't incrementing $i, so it's always 0 <2> Kog, if this server POSTs this information to me, should I use cURL for that too (I'm doing fsockopen now, that probably won't work)? <0> oh <0> i see, ok <3> theGZA: you should be using a for loop for that anyway <1> lightbringer: cURL can get the response... it'll print it by default, but you can set a curl_opt to capture to a var <1> Spoom: most likely... but he's doing pedagogical research <3> ah ok
<4> hi <4> why it doesnt print \t on page <1> koye: because you're using ' instead of " <4> when i do print $str; <3> probably because all whitespace is treated the same in html <4> is there a way to print \t and other on page <1> Spoom: damn youze. <3> hehe <5> was wrong with this, i want *.* -> *.png ........... preg_replace("/\..*/",".png",$filename) <3> koye: what are you trying to print? <4> well ... one long line <3> (in the larger sense, i know you're trying to print a tab) <4> but there is some \t in there <4> i want to be able to print those on pabe <4> and use it with copy/paste <3> you could probably do that by wrapping them in <pre> tags <3> or using header("Content-type: text/plain") if you're not using html at all <1> Spoom: or a str_replace for 4x/8x <3> yep, that would work too <5> anyone? <3> i'm not that good at regex aec27, sorry <1> aec26: looks like your regex is wrong <1> you probably want *\.* - unless * is a reserved char <1> aec26: your current one looks for .(any char)* <6> Actually, I'd say make your regex this: /\.[^\.]+$/ <1> one sec... sorry, * is a quantifier <6> That says find a dot, find anything not a not multiple times, and at the end of the string. <1> {0,n} <6> not a dot multiple times* <5> np cool, i think i have a way fwd <5> dot a not? ;) <1> Zule: probably be faster to str_replace <6> Not if you don't know the extension <6> Though there is always strpos. <1> strrpos <1> (you'll want the last position of .) <7> $filename = substr($filename, 0, strrpos($filename, '.')).'.png'; <1> MarkL: bingo <1> glad to see one of us isn't too lazy to write it ;) <3> hehe <7> ;) <5> MarkL to the rescue again! <1> MarkL: you seen matt around? <7> Kog: Not since yesterday <1> MarkL: ok, I sent him a memo, but I haven't heard back from him. It was in regards to something he and I had discussed previous <8> Kog: matt hasn't been on since Saturady <8> Saturday <1> TML: ah, I was at a LAN party then heh <7> TML: Yeah, it's Sunday here .. well it was 14 minutes ago ;) <8> !+seen mattmcc <9> mattmcc <n=matt@069-064-228-130.pdx.net> was last seen on IRC in channel ##php, 3d 37m 9s ago, saying: 'Kog: It does, but so does include.'. <10> im so full had a good dinner.. stuffed artichokes, chicken brochettes, rice <1> piera: ##cooking is your friend <8> piera: What's a brochette? <10> Kog: not really for me =oP <10> TML: shish kebab? <1> piera: you can at least listen to our awesome recipes. One of the cooks is a royal danish chef <8> ah <1> TML: ok, I guess I've seen him as recently as anyone has ;) <11> jeezh <10> Kog: heh but I don't cook.. I burn Kraft Dinner
<11> Kog: didn't know there really was a freenode channel for everything ;) <1> piera: you live anywhere near portland, OR? <12> lol <10> Kog: Nope i'm up in Canada <1> piera: next time I go to Vancouver I'll make sure to bring left-overs. But enough, this is ##php not ##php-meals-on-wheels ;) <8> Meals on wheels. <12> You guys are making me hungry. <10> thank god my other half knows how to cook or we'd be eating canned chef boyardee for the rest of our lives <8> Man, I loved stealing those old people's food. <1> TML: you're the reason I pay so much SS tax :( <8> Kog: I doubt it, since they were all too senile to realize their food hadn't gotten there <8> Just make sure to have the exact same conversation with them every day, and they'll never know what day it is <13> are there any specific books people would recommend for an intermediate php user to help improve my skills <8> !tell Jezek about MRE <1> !tell kog about MRE <10> !+seen newbienetwork <9> i haven't seen 'newbienetwork', piera <1> I thought that was what you were talking about... but why would you tell him about rations? <1> Jezek: you should just start writing projects... that's the best way to get better <8> Kog: Read the rest of it <1> Jezek: choose something challanging <14> !tell Cody about MRE <1> TML: what, mastering regex is the key to being a great PHP scripter? <14> !tell Cody` about MRE <13> yeah but i dont know if im doing something completely the wrong way, or unorthodox way i guess. and if i am i want to learn how to do it the correct way before i get habits that are hard to break <8> Kog: Who said anything about "being a great PHP scripter?" <8> He said "improve my skills" <8> regex is cross-discipline <1> TML: I see, I guess I projected <1> TML: it seems to me someone qualifying themselves as a php user asking to improve skills is asking about PHP implicitly <8> Besides that, MRE is the second best technical book I've ever read, and I think every programmer should read it at least once. <12> TML: That's a definite. <1> TML: what's the first? <8> Kog: K&R <1> figured <8> Kog: 3rd would be Paul Graham's ANSI Common Lisp. While probably the better book than the other two, it has less practical application in my daily work, so gets slated at #3 <1> I always thought Ravhi and Lapalme wrote a good data structures book heh <13> but why dont i just learn more php and i would just learn all that stuff while learning php <1> Jezek: because programming isn't about a particular language <1> Jezek: it's about a way of thinking <13> but i learn the regular expressions through coding php.. why wouldl i need a book <8> Jezek: Because you DON'T learn the regular expressions through coding php. You learn poor approximations. <13> ok <1> Jezek: because some people take information from books better <12> Jezek: You're the one who asked for suggestions. Why would you ask, and then ask for confirmation or justification of the response you receive? <13> i was asking for clarification <15> I'm using PHP to create an image on my page and I want the image background to be transparent, but it shows up white. Here is the source http://pastebin.com/719730 and my URL http://24.220.186.15/scripts/chalkboard.php <1> Jezek: for some reason people always recommend PHP + MySQL - the 1200 page book that does projects and whatnot <12> Kog: Which people would those be? <1> Lateralus: some old professors <1> Lateralus: in all fairness, they were "participatory design" freaks... if that gives you a qualification ;) <13> just because someone says something doesnt mean its what i should do..if someone asks what should i do? and someone responds run into a wall should i not ask for confirmation or justification? im asking for an opinion but i want to make sure they understand what i want to learn and thats all <12> Kog: I never really understood why someone would take the word of a "professor" over someone who actually works in a given field. <12> Kog: That's always bothered me. <16> hi channel. quick question: is php5 completely backwards compatible with php4? if i upgrade to php5, will my old code work as it did in php4? <1> Lateralus: given that I worked in the field at the time... I told him to stuff it <1> Lateralus: he also tried to make me buy his book, I told him to stuff that too <17> the abstraction layer for the DB is a bit different I think <17> so worth a google <12> axolx: heh <1> axolx: a lot of things changed... OO changed, XML stuff changed <8> Lateralus: Why must they be exclusive? <1> mysql is no longer built by default etc <8> OO didn't change. <8> It just had some sugar added. <3> one_red_eye: is bg.png transparent? <1> TML: sure it did... many people were accessing $self out of context <8> itrebal: o.O *PAUL* <1> TML: which is now illegal <18> sorry :/ <16> Kog: yes i understand that, but does code need to be throughly updated? <8> Kog: It was always illegal, it just wasn't enforced <1> TML: illegal as in e_err
Return to
#php or Go to some related
logs:
biopod Ubuntu sis 760gx ubuntu cydork ubuntu install Libgtk gentoo unrecognized hidden cc1 #ubuntu #math suse (EE) FBDEV(0): FBIOBLANK: Invalid argument python americas army query nxaccess disabled!
|
|