@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9



Comments:

<0> Hi
<1> lol irc works in Raleigh too
<2> is there some faster way to write files then fwrite ? and fopen ? in php ?
<3> faster than fwrite? o_O
<4> file_put_contents
<5> file_put_contents()
<5> Most definately not faster, but uses less lines of code.
<4> i can write any script on one line, who needs lf's
<2> yes i make some speed tests fwrite php vs asp
<4> he mentioned the A word! ban him! :-)
<2> could i post the partial code in here ?
<4> no
<4> pastebin.com
<6> ok, stupid noob question time... how can i echo newline?
<6> echo "$pos->system \n";
<6> echo "$pos->planet \n";



<6> puts everything on 1 line
<7> view source
<2> asp Took 0.203125 To write 80000Lines and php Took 0.794342041016 To write 80000Lines its AVg of 5 measurements
<3> you're probably outputting html then Kaell - a html newline is <br>
<5> Kaell: don't confuse \n and <br />
<7> than consider learning html
<6> ah, k, ty
<5> What you have is tentatively correct.
<5> But I would recommend: echo $pos->system, "<br />\n";
<6> yes, i checked the source, and it puts it on new line
<6> but that dont mean new html line (new to html too(
<6> ty
<6> is it customary to use <br /> and not <br/>?
<3> is <br /> actually correct in html? *looks*
<5> I think <br/> is ugly
<2> http://pastebin.com/760797 and actual test is until die()
<7> elec29a: I would contorize the whole process for a comparation like that
<4> the space is for backwards compatability
<7> as in, including the parsing time
<5> elec29a: you're doing this on PHP4?
<2> no latest 5 but on windows
<5> Then you should take a look at microtime()'s manual page again
<2> give me a hint.. it is like on the manpage or ? did i miss ?
<5> http://php.net/microtime
<5> The first line in the description should tell you something. If not, read the first example.
<5> Once you've read that, read the second.
<2> yes i paste the second into my page just a sec
<3> now that's funny... <br /> and <img ... /> are valid html 4.01 strict, <meta ... /> is not o_O
<2> did change nothing...
<5> elec29a: says you
<5> Probably shaved 0.0001 second off
<2> or maybe slower
<5> I should hope that it's not slower, as it's running at C speed, not PHP speed
<5> Given, it doesn't do much
<5> But it's still going to be about 16 times faster
<2> in asp i get 0.23 and php 0.84
<5> PHP's quite slow
<5> Then again, it often beats ASP
<2> yes objects are crap if you see asp and the speed is 4x slower from now.. if i did not introduce errors
<2> i mean even the timer cl*** in asp is such nicer and bigger but faster
<5> But ASP is the *devil*
<4> the stick to asp, bye.
<2> jup
<5> Dogs can't eat chocolate. It kills them.
<8> elec29a, well one of the reasons its so slow, by looking at your code, is you are doing the regexp each iteration of the loop
<5> Heh, I didn't actually look through his code
<8> you would a greatly faster parse time by getting the contents of the file, then doing your preg_match, and looking through the results to dispaly them
<8> looping, not looking
<8> doing a preg match on each individual line is stupid
<2> yes it is plannd so even in the asp version
<2> stupid slow.. on both the same regexp
<2> and look at line 33 the regex aint in the test since now.. only the write.. but same there
<9> would I be off topic to ask a perl question in here?
<8> perl/php...close enough, as long as its not a question about someone elses software
<9> it's not
<9> anyway, I need to replace all of the carrage line feeds in a string with nothing
<9> but I cant figure out how to code it
<2> tr
<9> s/[/n]/ or somehting



<8> like a string replace, or going for something else/
<8> ?
<9> string replace should do it
<2> and if someone wanna see the asp code .. http://www.nomorepasting.com/paste.php?pasteID=63293
<9> i just can't figure out how to tell it I am looking for a carrage return
<8> ~s/[/n]/
<8> i think
<8> ~s/\/n]/
<8> ~s/\/n/
<8> gah i cant type
<8> be back later
<9> thanks PapaBear I didn't think to try the other slash
<8> have to escape it
<10> hi
<10> does anyone here wish to do a joint-project with me?
<7> braddoro: s/\n// shouldn't work?
<4> only if the joint is free, i never say no to free drugs
<7> braddoro: s/\n// isn't working?
<7> s/\n//g
<11> I GOT THE BIGGEST.
<4> biggest ego
<12> hello
<13> http://pastebin.com/760949
<13> i can't figure out why i can't upload files ...
<12> why we put the {} in this sql query-> WHERE username = '{$_POST['username']}'
<13> the $_FILES variable is Array ()
<14> try: print_r($_POST);
<13> landan: Array
<13> (
<13> [myinputname] => todo.txt
<13> )
<14> ok
<14> so.. $_POST['myinputname'] == the name of your file
<13> YES
<14> www.php.net/register_globals
<13> sorry for the caps :)
<14> np
<14> read up on that page
<13> sure thing, brb
<13> banxt: look up on quoting strings and variables... your sql query is probably enclosed between " quotes so the {$...} will tell php to treat whtever's in it as a variable... but things are a bit more complicated. read the help on basics of variables and string quoting
<12> ok thanks
<13> landan.... i'm sorry, i still don't understand what the problem is :/
<0> 99% of time for problem solving is about understanding the problem ....
<13> well i need to know what's wrong because i'm going to host this script on another machine and i still don't know what software will be installed on it
<13> how is $_FILES affected by register_globals .. it's a superglobal
<0> yes
<13> so how is my problem related to register_globals then ?
<13> landan: i don't see where i'm going wrong
<1> 'sup, dudes?
<15> yo
<1> Sean|!
<1> I'm in the pimpest hotel
<1> i'm in raleigh, NC for 4 days so they got me one of these extended stay places that's more like an apartment than a hotel
<1> free breakfast and dinner
<1> 1.5Mb wifi internet :D
<16> Holy ****, that was teh most rediculous thing I've ever seen.
<1> whazat?
<16> I'm like, why teh **** didn't that bitch offer to send the manager over in the first ****ing place when I said I didn't have my ID.
<16> God damn NY is a stupid ****ing state.
<1> eh, i musta missed something
<16> Its basically this whole "you have to card everyone in the party when they're buying alchol" which I guess is fine for beer, but it was ****ing cooking wine.
<16> Ie if you have 5 frineds in line with you and your buying a 24 pack, everyone has to show ID, which by the way is the stupidest ****ing law ever.
<16> All they do is wait in teh ****ing car.
<1> ahh yeah
<1> so you got carded?
<1> lol
<16> Anyway I snapped at this bitch, she probally didn't deserve it, but jesus christ that was the stupidest thing I've ever seen.
<16> Like what the ****, we're OBVIOUSLY cooking with it!
<1> yah
<1> i got free wine with dinner at this pimped out hotel :D
<16> Does NC have that dumb*** rule?
<16> I know CT doesn't.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#linux
#php
WHAT CAN YOU BE A MAXIMUM OF 75 MILES FROM IN ENGLAND ?
#skype
#linuxhelp
#linux
#linux
#mirc
#AllNiteCafe
#windows



Home  |  disclaimer  |  contact  |  submit quotes