| |
| |
| |
|
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
Comments:
<0> If I make a query like this: $q = $db->query(" ... "); then do I need to free up this query after I've done with it, or is it done automatically? <0> And if I need to free it up, then how to do it? <1> csaba, if using mysql, you should call mysql_free_result ($result); after you are finished with the result set <1> ***uming you're using mysql_query and friends <0> yeah but I'm not using the mysql functions, I'm using DB.php <1> i'm not familiar with the pear stuff, sorry <0> hmm, so maybe I should use the mysql functions? Which is supported more? <2> csaba: You only need to explicitly free if you are concerned about how much memory your script is using while it's still running <0> TML: I'm actually concerned over unfreed cursors that can clog the system... I used Java before and there I always had to free up memory, so that's why I'm asking how it's done in php <0> Another question: how can I make variables that live in the application layer? <2> csaba: You only need to worry about it if you're concerned about how much the script uses while it's *still* *running* <2> csaba: In PHP, *everything* is destroyed and freed after the request is finished. <0> oh, so the memory is freed up after the request? How about session variables? <3> how do i decrypt something encrypted by md5()? <4> _zz, you can't <5> is there a simple way to remove an array row by key? i can't find it in the manual...
<4> unset() <6> facial recognition check and see who they look like etc. can you able to do it with php just wondering <2> csaba: Session data is written to disk and the in-memory data destroyed <4> like this: unset($array[0]); <2> csaba: When I said everything, I meant it. <0> thanks <7> i have a multidimensional array (eg: $array[$inc]["key_1"] $array[$inc]["key_2"], etc etc) and i want to sort it by ["key_2"], how would one do so? <0> What if I write something like $_SYSTEM['myvar']. Will this variable be accessible by multiple sessions, i.e. will it live in the application layer, until I unset it or restart the server? <2> xerophyte: In theory, if you had a facial recognition algorithm, one could "port" it to PHP. <2> csaba: There's no "Application layer" in PHP. <2> csaba: *EVERYTHING* is per-request. <0> damn <8> hi, do anyone of you use Symphony framework? <3> is there a nice function that i can use to randomly create p***words for users? <5> Ruud, thanks :p i knew it was as dumb as hell... <9> hello <2> _zz: php.net/uniqid <9> Do you know any good php script for a user group? like yahoo user groups, but I only need one group... <10> symfony is great, I tried it just looking at it <0> Well is there some good way of keeping a list of logged in users? Do I have to write it to a file? <2> fromvega: ##PHP doesn't recommend scripts, we're a resource for people writing their own. <10> but I end up with cake :D <11> Is it possible to pick up a frames URL or block frame killing? <2> csaba: Generally, people use a database for that. <4> csaba, either write to file or database <0> ok thanks <2> netr: Only via javascript. <11> I've tried javascript, certain pages it won't work <8> imweird: what about performance? is it heavy <10> hi, my question is, why is commandline php runs differently from libphp? <12> Heh. I was beginning to wonder why ##php had been so quiet. Then I realised I wasn't in ##php :| <10> I just built a new php to include a pcre library from a different location so it will not take the shared lib <10> but when I run php -I and phpinfo() from web, both saw diff libs? <10> any idea? <10> performance-wise for symfony, I haven't tried it much, but based on docs, they seem to have intuitive approach in managing performance <10> this includes caching and 1 thing which I forgot, sorry :D <2> netr: Well, you can't do it at *all* from PHP, but I'm not sure what you're asking. <8> imweird: thanks for the response, I am reviewing some frameworks <10> HI, I would really appreciate it if somebody would tell me that this is a bug on php or not... since I think commandline php shouldn't differ in from libphp's function in getting libs, right? <8> imweird: I am not sure as I seldom use commandline php <2> imweird: That's wrong. Nothing in PHP says the CLI and the Apache module have to be built the same way. <1> imweird, using the debian package i have separate config files for cli and cgi versions of php...perhaps you have something similar and the config file differ <10> there are 3 well known framework in 2006, sym and cake are on top... cake is quite easy and can run on php4 but I think I prefer sym though I can't right now bec of php4 :( *sigh* <2> You can also configure them with different paths to extensions, you can build them with different static modules, and so on and so on <8> check if you have two php.ini files and that you have just one PHP installed <8> imweird: which OS u are using? <10> I understand that they will be built differently, but at least I hope when I run phpinfo and the result in '.configure' in commandline php and libphp in web shows the same built, they should somehow look at similar library <10> im in linux <10> using centos 3 <10> I have repository of pcre 3.9, and I compiled the latest pcre6.6 to be placed somewhere in usr/local... I tried --with-pcre-rege=/usr/local/pcre6 <13> if fgets returns FALSE, how do I find out exactly what went wrong? <0> If I use include_once() I don't have to worry if the same file is included more than once, right? <10> commandline php sees pcre as 6.6 in phpinfo() but libphp still sees 3.9 :( <14> http://www.imagoogler.com/ <10> both in /etc/php.ini <14> Why isn't that working? <14> If you view the source you can also see the PHP. <14> :P <14> er <14> :( <10> any clue?
<2> http: Your server isn't setup to process that file as though it were PHP <14> TML, It was working before. <14> Wait <14> I know why <14> well <14> maybe <15> hmm.. what's the proper way to check if a script is being run on a web server or in CLI? <1> imweird, i wonder if the web server is caching the php interpreter? it shouldn't hurt to restart the web server and try again <2> niraj: php.net/php_sapi_name <15> TML: ahh.. thanks :) <14> TML, No what I tried didn't work. :( <14> TML, The PHP was just working... <16> when i do this, pastebin/586808 i get resourse id#8, any know why? <17> Because it's a resource. <4> what about copy pasting the pastebin url so we don't have to type it ourselves <16> because i'm in a shell <16> cant you type? <2> http: Your server header doesn't even expose PHP <4> i can, but you are the one who needs a problem solved, not us <4> anyways: you need to loop through the resultset <18> Is it possible to access msaccess db from php (server is running linux + apache <16> please don't be mean, yerh. <16> thankyou <14> TML, How do I fix it? <4> roundyz, i'm a nice guy :) <4> recheck your pastebin <4> it should work now <19> kokoko1: use odbc connections or sth <15> http: what TML is saying is it looks like PHP is not even installed on your server <14> niraj, It was just working... <14> I don't understand how something like that could happen. <15> did you change something in your webserver configuration? <4> roundyz, does my correction work? <14> niraj, nope... :( <14> I'm on a shared host. <14> Maybe someone did somethin and they disabled it? <15> possible.. you should contact your hosting company about it <8> I was just reading about some "Framework" stuff.. here http://discuss.joelonsoftware.com/default.asp?joel.3.219431.12 <8> funny it is.. Surely.. <20> hmm <20> i use array_unique() and then array_merge() to get unique values from an array and then renumber the internal index <20> is that the best way? <20> $ar = array_unique($arr); $ar = array_merge($ar); <20> it works <20> but i'm wondering if it is the best way :) <21> http, if u can afford a $40/month go to www.server4you.de , they got some nice deals <17> php-bot: tell xpowerstudios about u <21> kuja, got it ;) <17> =) <22> Hello ;) <22> Guys, is it possible to replace the curl functions by something else that do not depend of libcurl and curl ? <23> hi all ! <23> anyone use soap? i have some questions <24> I use soap... SOAP I'm clueless with, though. (I know, but couldn't resist. :) <4> lol <21> lol <23> oks.. any one use Simple Object Access Protocol (SOAP) with php ?? <25> int($myvar) doesn't work, what shall I write instead ? <23> (int) $variable <25> necrite, thanks <23> $variable = (int) $variable; <23> there <23> :) <23> np <25> hehe that's my python background <25> which is stronger than my c background <23> :) i use ruby instend python :) <24> int_val($variable) also works... <24> Oh... that was casting.. <4> intval without the _ works <4> makes more sense then (int) $var as well imo <4> the latter somehow doesn't look like a php notation <24> It looks like casting from a language with typed variables.
Return to
#php or Go to some related
logs:
net config_eth0 hw ether google ftp hosting
physicits teacher #gentoo #debian #math #debian str2date perl #debian libxine libcucul
|
|