| |
| |
| |
|
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
Comments:
<0> There seems nothing about the technical side of it in the manual yet someone's comment says dio_write is faster then fwrite. <1> leonid_p_: well, sure, if you do it that way it's going to break. the way you should be doing it is: $str = join("\n", file('myfile.txt')); because file() breaks the lines on \n <2> hey caffinated, where in BC are you? <1> AcidReign: vancouver island <2> caffinated: ah, I'm doing cold calls to burnaby and kelowna <3> zircu , why? <4> Oh man... you two from the same area?! That explains EVERYTHING! <5> o.O <2> Jymmm: I'm about 3 days away from caffinated... <1> leonid_p_: incidently, file() is now binary safe by the way. <4> AcidReign: Toronto area? <2> Jymmm: yep <4> AcidReign Ah, ok. cold calls??? Sales? <2> caffinated: vancouver is at the bottom of my list (which is alpha sorted by city) <3> caffinated , good to know, but i trying to avoid it ..
<1> AcidReign: vancouver != vancouver island <6> hour long ferry ride apart. <2> caffinated: well, I know that but its close right? <7> leonid_p_: well, if an error occurs, you have 3 issues you are just ***uming.. fopen.. did it fopen? filesize... is the file stat'able? fopen... did any of the two previous commands return FALSE or proper result <8> caffinated: what does binary safe mean? <3> zircu , heh ) true <2> tao_zhyn: ferry rides are fun <2> I took the ferry in quebec city once <7> leonid_p_: to properly do it your way, a check on each function is needed <6> AcidReign: I don't like BC Ferries much anymore. That said I haven't been to the island in a couple of years. <9> I'm developing a website, and am thinking of using output buffering for my templating, you know - using output buffering to catch the output, then put it into a template using str_replace. Does t something else <2> I have to get back to work <3> zircu , well i just showed example <9> Sorry, something got messed up. Does it that make sense? or should I do it some other way. <1> tao_zhyn: i usually just take a seaplane <1> tao_zhyn: harbor lynx was pretty good too, but they went out of business :/ <4> Watching "FAMILY Fear Factor" (parent and ~11yo kid), I tell ya, some of the parents are VICIOUS! Surprised the kid does slap some sense into the parent <6> caffinated - Never took a seaplane, always just went to Schwartz Bay. <1> tao_zhyn: more expensive, but far faster <6> svnadmin create repos <1> heh <9> Should I go about this differently? Does output buffering slow things down too much? <2> tao_zhyn: did that 6 calls ago :-P <1> AcidReign: that said, what are you going to do with the rest of your day? <6> AcidReign: svn import -m "Initial Import" . ? <2> caffinated: well, once your work day is done, I'm going to either setup and svn server on a friends server, or convince another friend who has an svn server setup to let me copy my repository onto it <2> tao_zhyn: did that 4 phone calls ago :-P <9> Any comments.. ? <10> morrison: some would argue that it speeds thing up <6> AcidReign: Then where are you now? <6> r56? <1> AcidReign: heh, it's funny that you'd scale it on my work day :P <9> ||cw: would it be worth it to go about it differently? <1> AcidReign: which btw ends in 2 hours <11> Strange problem - http://rafb.net/paste/results/FbjBlW62.html - php 5.0.4. Does anyone have an idea what's going on? /proc/3841 certainly exists! <1> at which point i will go home, order pizza and beat the ever-loving crap out of the alliance in WoW <10> morrison: might be worth a mockup and benchmark the 2 ways <4> caffinated: It's not real!!! lol <1> Jymmm: *sob* <9> ||cw: Alright, thanks, I'll do it both ways and decide from there. Thanks <1> Jymmm: but it sure is fun :D <4> caffinated Oh yeah... <1> more fun than building ajax file managers anyway <10> Jeevan: just cause it exsists doens't mean you have permissions to it or that it can be stat'd <4> lig get your cute *** back to work! <12> how do you include a page that is on a server using a different port than port 80? <2> caffinated: most people are gone by 4pm on friday <2> caffinated: infact, most people are gone already <12> heres what ive got: <?php include("http://24.72.198.209:8002/links/index.php"); ?> <12> for some reason that isnt displaying any content and its halting on the loading of the page <12> like its trying to load forever <1> AcidReign: the only time i leave here at 4 is when we have the company beer binge. it happens once every 2 or 3 weeks <2> tao_zhyn: the repo is setup, actually <10> tobmoox: why are including a remote page? <10> tobmoox: you probably want readfile() <12> alright i'll try that <2> tao_zhyn: I did it between 6-7 phone calls (type command, make phone call, next command, next phone call) <12> im including a remote page because my server does some of the work and then another webserver does the other work <13> AcidReign: i can multi-task commands and phones pretty well <2> caffinated: I'm calling managers though, they're notoriously lazy :-)
<14> tobmoox: Do not use include with remote URLs. Use file_get_contents instead. <1> AcidReign: you should hury up and learn ruby - there will likely be job openings here again soon. <2> itrebal: but I have to be using two windows while I'm on the phone <12> file_get_contents? k <14> tobmoox: Or readfile. <13> AcidReign: gotchya <2> caffinated: I would.. but I hate ruby <10> tobmoox: right, include still tries to parse that pages output and execute it <12> i just tried readfile and its still halting <14> tobmoox: The point is that including a remote URL actually parses the remote URL as PHP code. Which is bad. <15> Hello, I was wondering if anyone had any recomendations for a linux php IDE that supports xdebug or similar? <13> i've been liking ruby <16> hi <11> alright, trailing newline <17> itrebal: it's a nice thing to like <1> AcidReign: when you see the paycheques, you might hate it a little less ;) <2> caffinated: tell them to make openings for python programmers :-) <10> tobmoox: then there's either firewall in the way or something wrong with the other server <12> readfile("url")? <14> Yep. <1> AcidReign: nothing here runs on python <12> its not a firewall though <10> tobmoox: you could try curl or fsockopen and see if it will fail gracefully <12> and i can get to the content with no problem : http://24.72.198.209:8002/links/index.php <18> Jymmm, am! <12> thats the page i want to include <4> lig say what? <18> Jymmm, you said to get my cute *** back to work - I am <4> lig Hun uh! you're at home <1> AcidReign: I think it's the only job i've had where nobody notices (or cares) if you happen to be a half-hour late for work. <12> oh wait its probably that index.php page <4> nuh <18> The great thing about the internet Jymmm - my office is where a computer is <4> lig oh wait, it's the weekend for you...nm <17> tobmoox: The W3C validator hates your page. <16> I'm trying to write a script where the user enters a code and presses an ok button and based off which code he entered he is taked to a website ***ociated with that code. so for example i enter the code 123 and press enter and it takes me to yahoo, or i enter 246 and i'm taken to msn. the list of ***ociated codes/url's should be in a .txt file or database... any idea how i could set this up? <2> caffinated: and would they really hire someone with, say, 3 weeks ruby exprience? <12> its not a page though ugh <1> AcidReign: depends on how strong your OO programming skills are. <2> caffinated: 'cause I could learn the language in less than a week <17> tobmoox: still has lousy linking :) <1> AcidReign: I didn't know any ruby when the shop moved from PHP <12> what does? <1> AcidReign: now it's about all I do. <12> i just restarted apache on my server <2> caffinated: but you started there with php <16> Any help on my project will be paid $ <4> !+g7 <19> Guideline #7) No spam, bots, scripts, trolls, job postings (no job posting / asking for jobs on ##php. You might want to check out: ##php.jobs http://www.geekfinder.com, http://www.monster.com, http://www.rentacoder.com or http://www.getacoder.com, or php.net/links, "Developers and Job Opportunities"), advertisements or onjoin/away/back messages. <17> haha <1> AcidReign: yep. php/javascript predominantly <17> Casey_: do you know how to set up generic MySQL connections in PHP? <2> caffinated: I've only ever done OO <4> Casey_ no job offers <2> caffinated: even my C is somewhat OO :-P <1> AcidReign: then you could probably build a strong case for yourself <16> Jymmm It's not a job offer, it's just a thankyou <16> Fennec no i don't <12> i find it odd that this isnt working <12> you can all go to this right? http://24.72.198.209:8002/links/index.php <4> Casey_ I dont care what you call it, it's not allowed in here at all. Too many ppl get screwed. <12> i dont think its a firewall problem.. <1> AcidReign: Besides, because of the whole ruby thing I get more conferences ;) we get to go to chicago next month <16> Jymmm ok <20> how do you use mysqli to get data from a query that called a stored procedure and the procedure returns multiple "rows" althogh their not rows in the traditional way <17> Casey_: find yourself an average PHP tutorial, HTTP 302s or 301s or Location:s or the like <20> mysqli_fetch_array($result); only gets the first one <14> \monster\: http://php.net/mysqli-multi-query <12> <?php readfile("http://24.72.198.209:8002/links/index.php"); ?> <12> that operation is timing out for some reason :o <12> ohhhhh <17> tobmoox: you need to print the file's contents after your read it <12> double quotes maybe? <12> oh ok
Return to
#php or Go to some related
logs:
#perl #php #debian ubuntu lilo usplash fglrx igp340m bunnyjump script command ipw2200 hogging #web #python uClibc UnicodeencodeError
|
|