| |
| |
| |
|
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> kuja, well includes mattered on mine..since the layout is HTML and there are <? include 'suchandsuchapage.php'; ?> <1> when cmopiling php, is there an option to only compile one specific module (oci8 in my case) ? <2> spyro_boy: don't use short_tags <3> jlulian38, you don't provide the prefix <0> wisp, no? <2> no <0> wisp, what makes the difference? <4> Konky: Explicitely tell PHP to compile "without" certain modules. <3> jlulian38, well, yes you can.. grml <2> spyro_boy: they're getting deprecated <3> so it should work <0> wisp, what does that mean? <5> kuja: kinky. <2> spyro_boy: they're gonna be 'obsolete' <1> hmm i remember tehre was some parameter to only create one specific module
<6> still nothing :( <6> no errors <4> spyro_boy: It means there's a high chance they will be removed in the near future. <6> but the Data isn't showing up <3> jlulian38, well, does your query select some rows ? <0> http://www.answers.com/deprecated <- cool. <6> yes <0> kuja, OH! I see. <6> I selects All of them as i want it to <3> jlulian38, checks with mysql_num_rows() <2> spyro_boy: because it causes problems with other scripts, they've decided to deprecate it afaik <0> kuja, so '<?' and '?>' are getting obsolete? <2> spyro_boy: yes.. use <?php ?> <0> wisp, okay. <7> <?php by itself. <0> Any linux users in? <2> spyro_boy: just use the find/replace tool in your favourite editor.. ;) <0> wisp, that'll take forever.. O_o <8> linux users.. as in s/<?/<?php or something. <6> i give me 3 rows <0> mtocker, yeah that's Vi <2> spyro_boy: i'm sure there's a fair share of linux users in here <0> I'm sure if I asked one of them, they could tell me some bash command to search and replace recursively. <8> spyro_boy: i just saw the request for linux users... i ***umed if was for that question. most distros have vi. <3> jlulian38, and what does mysql_result return ? false ? <0> mtocker, yeah I know. :) <6> for some reason nothing :( <2> jlulian38: var_dump() it.. :) <6> but the result itself is true <3> jlulian38, I mean using var_dump(mysql_result(...)) <0> Okay..what do you guys think about single quoting and double quoting? <0> Should I do single or double? <2> spyro_boy: i use single quotes mostly <8> depends. single is faster i believe. <0> wisp, me too. <2> spyro_boy: and concatenation <6> resource(4) of type (mysql result) <2> spyro_boy: but it's a matter of taste really.. <6> oh <8> erm.. concating strings is actually longer. <6> oops <0> wisp, er? What's that? <2> spyro_boy: like this: echo 'hello '.$friend.' i\'m here to tell you about '.$subject; <8> as I believe concatenating creates multiple memory buffers then joins, which is greater overhead than just p***ing through and substituting variables. <0> And when you do something such as: array('value', 'value2'); <2> mtocker: like i said.. it's a matter of taste <0> Do you put a space before the , or none? <0> I mean, after the , <8> wisp: more like a matter of application. i use both. <2> mtocker: and concatenation is marginally faster too <8> wisp: i think concatenating is slower. <3> wisp, mtocker, http://pear.reversefold.com/strings/ <0> array('value', 'value2'); or array('value','value2'); ? Which one is better. <2> echo "hello $foo"; is slower than echo 'hello '.$foo; <8> colder: thanks. <9> and echo 'hello '.$foo; is slower than echo 'hello ',$foo; <6> Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /usr/export/www/vhosts/funnetwork/hosting/jlulian38/talk/view.php on line 19 <6> crappy error <6> oh man <2> "As you can see, in tests where variables are interpolated into the string single quotes with concatenation ('some '.$v1.' string '.$v2) is always faster than double quotes with interpolation " <6> so Tired
<9> jlulian38 check the quotes <9> wisp I've not said double quotes, I've said, 'hello',$foo <9> look the comma, inetad of a dot <2> spyro_boy: doesn't matter <9> it's minimal btw <2> xshad: i wasn't talking to you, really.. :9 <9> ah :) <8> colder: do you know what version that is based on? I'm sure it would differ between 4/5/5.1 <4> xshad: comma vs periods in echo being faster, yes, it's true, but do you really care for the nanosecond? <9> kuja I don't, i use dots :) <6> ARGH! <4> For that matter, do you really have to care about the uber microsecond difference from using "" and ''? <6> still nothing <6> major sleepiness setting in now :( <6> i don't get this <6> even if there i something wrong with my data collection method it should still be doing like <6> the HTMl <9> kuja no, I think <6> but it doesn't <3> spyro_boy, read that: http://pear.php.net/manual/en/standards.php <2> kuja: no.. it's a matter of personal preference.. <6> is this conditoion incorrect? <6> while (i > mysql_num_rows($result)) <9> i ? <9> $i! <10> it's just silly, jlulian38 <2> kuja: moreso than effiency <10> while ($res = mysql_fetch_***oc($result)) { <11> TML: http://pastebin.com/576452 <-- its all in there - my question <6> i cannot beleivev me <2> s/effiency/effiency <2> blah <6> you know what <2> whatever.. <6> after i check this sleep time <6> or a gallon o <6> coffe <6> crao <6> still nothing <3> !tell jlulian38 about enter <0> Wifi networks ****. <0> omfg. Windows does too. <6> Wifi is awesome for Laptops <6> kinda pointless for desktops though <12> aneurysm: So put them in an array instead of echoing them <13> And PDA's <6> on prob is that Wifi uses a lot of power <6> so your battery'll go really quick <6> I'm gonna attempt a new approach to my problem <14> aneurysm, you realize mysql can return rows randomly right? <11> elsyf: i didn't <4> Heh. <11> elsyf: ahh that would be a much better approach <4> Try to do as much from MySQL as you can, then leave the inserting and displaying to PHP. <15> $server = mysql_connect ('clun.scit.wlv.ac.uk', 'user', 'p***'); <11> kuja: will do. ill look into it. select rand(x) from y where m=w limit 3 or something? <15> does that look right? <4> aneurysm: SELECT column FROM table ORDER BY RAND() -- for more info ask #mysql <11> kuja: will do:) thanks. <15> mysql_select_db("databasename", "$server"); <15> then that to connect <16> i'm going mad <16> inserting special chars into mysql <16> like 'beta' and <16> and other high ascii things <16> tables have the correct locale, utf-8 is installed on the system <6> yay <6> i finnaly got something to work <3> arr, "$server" <3> roundyz, $server is a resource link, not a string. using "$server" you get him a string, which is wrong <3> him, as mysql_select_db, my old firend ;) <17> hello all
Return to
#php or Go to some related
logs:
xorg.conf winkey bingos svn gumbybrain ubuntu timed login mysql get the time from
clint shrooms and antifreeze ubuntu fix root access kde automatic login freebsd #sdl #ldap
|
|