| |
| |
| |
|
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
Comments:
<0> i need a hint on where to look for ways of using "functions written in C" in PHP <1> nihil_: pecl.php.net <2> nihil_, http://www.php.net/manual/en/internals.php <3> how can i get mysql last_insert_id() into a $var <3> do i have to do a mysql query <0> thank you zaemis; Stormchaser <2> you'rewelcome :) <2> good luck <4> thanks Stormchaser <5> quick simple question. How do i combine a variable.. ie i have something as $phoneheader right now, and i want to do like $sect = "phone"; then do $sectheader where its value of variable + header if i just do a . in between that doesnt seem to work. <0> hm.. is there a function that receives "\n\r" terminated TCP messages.. <0> yet? :D <6> nihil_, if it is terminated then I expect it will be with \0 <0> well, yeah.. "\n\r" is some other "pseudo standard"
<0> but in the end it all depends on the protocol <1> um... Ther isd no "\n\r" <1> *is <1> !+nl <7> Newlines are hidden (not normally visible) control characters that distinguish the end-of-a-line of text and are different for each platform as follows: [Windows=\r\n] [*nix=\n] [Mac=\r] And can be seen as: [LF (linefeed) = \n, 10d, 0x0A, 0001010b] [CR (carriage return) = \r, 13d, 0x0D, 0001101b] <8> Im using a bumper redirect script <8> $url = "http://$url"; <8> the code cant handle the :// <8> So what can I do to replace it? <9> CHIEF : maybe $url already contains http:// ? <10> Right, I am making a script that will fetch a file from one server and then save it on the server taht the script is operating on. I have noticed that when I use file_get_contents() it takes a long time.. i am guessing this is because it is sending the data to the browser.. that was my only guess.. is there a way to miss the browser our.. and make it faster.. I mean I should get 100mbps download speeds. <8> it doesnt <10> $url = "http://".$url; <11> need advice. gentoo tells me i need to compile with dba support if i want berkdb. should I use both or none? <9> or $url="http://{$url}"; <9> punkstar how fast is it and how fast do you expect it to be? <10> liek 30 seconds for a flash file. <9> whhaaa <10> which is way too long. <10> I am right in thinking that it shouldnt be sent to the browser right? <10> its all on the server. <9> punkstar upgrade your php <10> im on 5.something <9> punkstar browser shouldnt get anything from the files, should it? <10> I shouldnt think so. <10> Nothing is outputted. <10> Bah, let me make the script again. <1> punkstar: Um... You have 100M line? <10> On my dedi yah. <9> hmm punkstar maybe your script takes long time becuase you are in a loop or somehting <10> I'll check it out. <10> I looovovee making turnkeys =D <1> That's about what... max 12M/s which is optimum... But usually it's much less... <1> punkstar: How big is the file? <10> yeah, but still. ~30s for an average flash game <10> 2-3mb <10> Just to get this clear, client u/d speed doesnt affect it.. right? <9> that should take around .25 secs <9> punkstar even if it would, the speed would be below 1sec. <9> punkstar is the line in use a lot? <9> :) <1> punkstar: Um... Wrong? <10> Lol, no it isnt. <10> Stormchaser: ? <12> whoever designed xsl was an idealistic dumb*** <1> punkstar: if that dedicated 100M isn't affected, then you have 100M PLUS thespeed with which the client downloads... <10> OOhh sweet.. just remember.. another driving lesson tomorrow. w00! Get off the damn roads. <1> HolyGoat: Heh... I was never fond of XML-related stuff :) <12> Stormchaser: Well XML in itself is fine I guess. And the concept of XSL is fine as well, its spec ****s very bad though. <1> lol <12> I have a book that states that "programmers are too busy to write XSL", meaning, "it's so simple, other people could do it". Big mistake. <12> It's harder than 3gl programming. <10> My line can only support 512k, so I am stuck with ~50kpbs <10> kbps <13> KB <1> HolyGoat: 3gl? you mean OpenGL? <12> no, a 3rd generation language
<1> which is? <10> php, ruby, vb <10> come on man, i do this in school. <4> higher langs <1> ah <10> 1st = Machine Code (Binary), 2nd = ASM, 3rd = Everything Else <1> I never went to programming school, so I wouldn't know that :) <12> http://en.wikipedia.org/wiki/3rd_Generation_Language <10> 3rd could mean C++.. but we're not onto 4th are we? <10> Isnt the PHP compiler written in C? <14> Don't forget 4gl languages <15> Hi all... how do I check if the first char of a string is a # withouse using regular expression? <1> punkstar: Um... php doesn't have 'compiler'... Just 'interpreter... <14> Judge: if ($str{0} == '#') <1> Delphi is a language?!?!? Since when??? <10> Thats what I meant.. dude. thats what I said in my head :-S <14> Stormchaser: Only among those who embrace blasphemy <1> lol <15> Pollita in this case the string is $split_it[1].. so it'd be $split_it[1]{0} ? <14> Sure <15> thanks very much <1> Judge: Keep in mind {} will be kicked out in PHP6... So use [] instead... <10> hmm.. 4th and 5th. Never heard of them before. Though we did discuss objective based programming.. which seems pretty sweet. <1> http://en.wikipedia.org/wiki/4th_Generation_Language <14> Stormchaser: Another blasphemy <15> Stormchaser in php6 it'll be $split_it[1][0] ? but what happens if split_it was a vetor <1> Pollita: You can't win them all :) <14> Judge: Then it'll access the first element of the vector <15> Stormchaser I mean.. with a single value on position [1][0] <15> umm <14> Judge: BTW, $split_it[1][0] will work now too <15> and the usefull {} will be lost <15> ah ok <15> thanks guys.. good noght all <14> It's always worked, right along-side {} <14> Doesn't make it "right" though <15> =] <14> great adaptation of that quote <1> Pollita: At least it's PCRE :) <16> thats a pretty versitile hammer though ;) <1> lol <16> omg i'm about to pop a frickin forehead vane... some how apache is tapping into ether world to pull out a non-existant httpd.conf file to setup apache-ssl!!! <16> I've renamed every httpd.conf file on my system to avoid confusion, but its still showing up... If ever... in my time being an adult i've wanted to throw a temper tantrum its right now... I need a beer <17> lig I am not a bad habit <4> men are the worst kind Jymmm <17> lig Same goes for the female of the species <4> Amen to that <9> i am stuck with 800kbps :D <9> on an 8Mbit line <18> thats almost what i have! <15> how do I remove the first char of an string? <15> I'm trying to create my irc bot.. but irc server always send data prefixed with an : <1> Judge: $str[0] = ''; <15> i need to remove the collon <15> Humm <15> tks <4> Judge, php.net/substr <15> =] <15> tks <15> =] <18> ltrim($str,':'); :P <1> o.O <16> hehe storms got fans ;) <18> multitude of ways to remove a colon <18> surgery is sometimes needed <16> jiggy: lol you stole my joke ! <18> lol <16> usually though, you just need a good ol' cleaning <18> sorry
Return to
#php or Go to some related
logs:
ubuntu make-iso dd #osdev gentoo trackpoint hold middle
gentoo xdm restart hang #gentoo #ldap #osdev #perl cannot connect to X server reconfigure kdm plain authentication failed dovecot tls
|
|