@# 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 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34



Comments:

<0> UnixD4d: you learn PHP. then you do what i said.
<1> I'll give you my fist in yo face in a microsecond fool!
<0> afaik: shush.
<0> davanger_: if you want to obtain a time of execution, you want to use microtime(true)
<2> my timming function http://pastebin.com/736446
<2> which works. its placed at the begining of the page and then subtracked at the end of the page where its posted to the html
<1> Gimp_, well, of course he should learn php. But pear is a poweful collection of reusable components that he should not ignore
<1> a\\\he'll get thing things done faster with pear
<0> afaik: blarg!
<3> less noobish security issues with pear
<3> especially auth
<1> indeed
<4> pear looks nice :D
<2> if you want to try it http://www.fabtechsolutions.com/ the time is poseted in the bottom
<2> posted*
<3> he'll have to learn php to implement it and create everythign else anyway



<1> pear has lots of handly objects to use
<5> i personally ahve issues with pear, but i wont get into those
<1> itrebal, well, I do too with some of the packages
<3> i do too itrebal, but it's better than reinventing the wheel
<1> some are poorly designed
<1> others are very welll written
<3> I think zends plans to do somethign similar, requires php5 with E_STRICT, so it will be alot better, but thats out quite a ways in the future
<5> just picking out the decent ones can be tough, though
<5> g'night
<3> nn
<0> davanger_: those aren't ms. thats SECONDS.
<1> I already gave up on php for most of my professional work
<6> if im inserting html code into a mysql 'text' field using php, what special provision do i need?
<1> I either use ruby or java
<6> mysql_real_escap_string?
<7> mysql_real_escape_string will put it into a safe form for the database.
<6> cool
<8> if i have a varible thats long for example 0.0033423443589432 how would i shorten it to say 0.003
<2> Gimp: I dont know what type of response your getting but there is no way those are sec. Im pulling up the page and it comes up instantely there is no way thats taking .8 secods to load
<1> http://www.srmason-sj.org/web/temple.htm hmmmmmmmmmmmm...........
<3> DrStroker, with sprintf, printf
<2> .8 to generate i mean
<8> awesome thanks
<0> davanger_: look at the second example for microtime on the php manual.
<2> gimp: its freaking commun sence
<0> davanger_: no, a script does take .8 seconds. .8 seconds is almost instantly.
<9> my friend made the funniest typo ever just a second ago when we were talking about databases "god i hate it when i go myspace_connect();"
<2> im telling you is not almost instat it is instant
<0> davanger_: watch this. im going to make a timer thing, and put a sleep in it. ill prove its seconds.
<3> epichero, lol
<2> you do that
<9> we were actually discussing how mysql is bland compared to postgre
<0> davanger_: http://nilok.ca:8000/micro.php
<0> that has sleep(10) between the start and end.
<8> cythrawll, isn't there another function that you can take the varible with data of 0.0032342343424 and one of the functions params are the length which i would put 4 and it would return 0.003
<2> thats nice because again my page loads instant...
<2> i doubt the server can predict when im going to load a page and preload it
<0> davanger_: .... dude... that time is how long it takes php to load it. its not how fast the page appears on the internet
<2> thats what I care
<0> davanger_: that time has NOTHING to do with how fast it shows up
<2> i dont care what time it takes for ppl to download
<3> DrStroker if that long number was in $num: $num = sprintf("%01.3f",$num); will do what you want
<0> davanger_: ... look at my freaking script. it has a sleep(10) and the timer returns 10.blabalbla
<2> my interest was to find how fast php was no how fast ppl download **** from my site
<0> davanger_: THOSE ARE FREAKING SECONDS. get it straight.
<3> davanger_, you know browsers cache pages
<4> i made my login.php http://pastebin.com/736456 can someone please tellme if its ok?
<3> guys need to cool down a lil bit
<0> cythrawll: gah, hes driving me nuts.
<3> UnixD4d, you need to protect against sql injections with mysql_real_escape_string() but you got the basics right it looks like
<10> DrStroker, www.php.net/round
<11> HIHIHIHIHIHIHIHIHI IM NOT HIGH IM REALLY HYPER :p
<4> yeah, i know how to protect abt it, i use an function for it
<11> oops :P
<0> UnixD4d: hey, instead of your isset($username) stuff, you should really do !empty($username)
<0> UnixD4d: because the way you've got it, $username could be '' and it would go through.
<3> UnixD4d, i don't see where you connected to a database
<11> gimp hey gimp im using you!
<0> surfdue: My name has nothing to do with The GIMP. please do not ask me about The GIMP as i do not use it.
<12> Hmm.... I'm having a problem with php 5.1.4. i have compied it with --with-config-file-path=/etc/php.ini , but phpinfo.php is not whoring the values in php.ini
<8> this is valid and correct right? <?= $seconds ?>



<11> Gimp stop joking with me :P im using you right now dont try to hide you.
<12> Gimp_: what, you into full body leather suits and ball gags? :)
<13> hey guys, I've been using PHP for some time... and used all sorts of stuff for database access... adodb,peardb,mysql client...
<13> now that php5 is here and pdo...I'm even more confused
<0> DrStroker: you don't need the spacers in there, and thats short form for <?php echo $seconds; ?>
<4> ok, will fix all these things
<14> i'm having difficulty googling for information on placeholders in mysql queriess, as most results are "web page placeholders". any suggestions?
<13> what should I be using in my scripts? for the most part I only use mysql... but I like the idea of something more database independent
<3> i hate hate hate hate pdo
<13> ya, but I like the idea of fast c based database independent access
<3> JohnJacob if you want abstraction layer, i'd use either ADODB or peardb, which ever you perfer
<13> What do you guys think of the pear database table and dataobject stuff?
<9> its big pimpin G
<14> does php support placeholders in sql queries like perl does?: http://lists.mysql.com/mysql/654
<15> litage: depends
<14> zircu: on what?
<15> litage: mysqli and pdo use placeholders just fine
<15> mysql.. i doubt it
<15> pear.. mabey.. never have used it.. .adodb.. perhaps.. never have used that either
<15> pdo also supports named placeholders.. insert into foo values(:bar);
<16> anybody here have use phpAGI?
<3> hey whats that command to tell people about hte guidlines?
<0> cythrawll: which guildline? for guideline 7, you'd do !tell <user> about g7
<3> ah ok
<17> !hex test
<17> Hmm
<17> bot is flicky
<18> !tell Shadow_mil about g4
<17> http://jymm.YouAreMighty.com/
<19> how about a php cl*** to parse all of asterisk
<17> http://jymmm.YouAreMighty.com/
<17> sorry
<11> omg shadow!
<11> your alive?!
<17> yeah
<16> anybody here have use phpAGI?
<9> technically i dont know what agi is
<9> is it hott
<3> it better not be yet another FRAMEWORK
<16> ?
<16> epichero?
<16> i wanna have php site that can make calls, just like web call support
<16> batphone?
<3> ok good its a module
<3> if it was another framework i was gonna go splode
<16> what framework?
<3> any framework
<16> here i have an asterisk box
<16> and i have a php on it, i wanna if someone visits the site and hits the call button it will ring my sipphone
<16> any ideas?
<3> read phpAGI docs?
<16> i dont to find working in my case
<19> kernel20: no
<19> kernel20: http://www.voip-info.org/tiki-index.php?page=AstManProxy
<19> im looking here right now
<16> what no?
<15> dr. whois better
<16> the download site isnt working heheeh
<20> um, if I set $vars[] = "$_SESSION['var']", can I somehow check with a line similar to "foreach($vars as $var) { isset(*$var) }", wether the variables named in $vars have been set?
<20> I mean, is there a magic character to add/similar to use the contents of $var, instead of $var in isset()
<15> litage: you mean something like php.net/in_array ?
<15> lietu: ^^
<20> um
<20> not really
<21> lietu: everything in that foreach will be set.
<16> i wanna have php site that can make calls, just like web call support
<15> kernel20: that would be pretty cool
<21> if you want to check whether particular values that might be set are set, you'd probably want to have a separate array listing the keys to check
<21> so $options = array("field1","field2","field3); foreach($options as $key) { isset($vars[$key] ... }
<15> or if keys dont matter, set $vars['value'] = 'value'; and a simple isset($vars['value']); works
<15> of course this removes the option to have duplicates
<16> yeah pretty cool i have asterisk working the problem is how can i make php to call for some extensions


Name:

Comments:

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






Return to #php
or
Go to some related logs:

vmware ctrl-alt-f7 tty
ubuntu netserver lh3
#perl
gentoo mod2
#linux
#oe
#lisp
uninstall java fedora
#php
godling yaakov



Home  |  disclaimer  |  contact  |  submit quotes