@# 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 35



Comments:

<0> theboywhogotlost: qut alredy did, tkx anyway
<0> s/alredy/already/
<1> gah! headache...
<2> [itrebal_work]: and the only reason you used netcat instead of a root owned php daemon listening directly was for performance?
<1> qut: cut it out
<1> aldug: PHP is *very* memory leaky, it was never designed to do anything but a .5 second (at most) runtime
<3> nah
<3> i've had php scripts run for 8 hours
<3> perfectly
<3> gotta be smart about it
<1> of course they run perfectly, but they eat ram, and are very memory leaky, yes, unless you spend way too much work keeping it tight
<3> nah
<3> gotta be smart



<3> and not memory leak
<3> you can leak in any language
<1> but PHP wasnt designed to run for long periods of time
<1> which is the difference
<3> and it still works well in that regard
<3> local variables are recycled at the end of functions
<3> dont be a n00b and it'll all be efficient
<1> aldug: use a different language
<4> iis there a good cms other than xoops and mambo
<1> pardus: were not here to support them, and i havnt heard anything good about mambo
<5> pardus, I've heard of dragonflycms or something, someone said it was good
<5> but I don't recommend pre-packaged CMS'
<5> the fun is making your own ;)
<1> pardus: my favorite is called RYO (Roll Your Own)
<4> ok thanks Seadog
<5> np
<4> i'm making a portal
<0> one more question
<1> Teolupus: you've reached your question limit
<0> db_select("SELECT x from y where z=$_SESSION['z']"); --- is that valid?
<5> Teolupus, should be
<6> php doesn't need a mail server to be running for mail() to work, right?
<5> you can always {} around the var ju8st incase
<5> *just
<0> [itrebal_work]: you should set up your limits higher :P --> ulimt -a
<6> ????????????
<1> uh... what is db_select?
<1> SkramX: ?
<0> [itrebal_work]: sorry... you've reached your question limit!! LOL
<1> yes, it does require one
<1> hehe
<0> [itrebal_work]: db_select is a function which I created to deal with pg_query
<1> yay! another pg user! hehe, ok, sounds good
<0> [itrebal_work]: just to handle all connection and error stuff
<0> [itrebal_work]: user & developer
<1> id do db_select('SELECT x from y where z=$_SESSION['z']);
<1> err..
<3> cant do that
<3> use ""
<1> i know, im getting there
<3> or z=".$_SESSION['z']."
<1> id do db_select('SELECT x from y where z='.pg_escape_string($_SESSION['z']));
<7> Jymm, I'll help
<3> what the hell is db_select
<8> malco1m STFU!
<1> qut: pay attention: (05:15:41 PM) Teolupus: [itrebal_work]: db_select is a function which I created to deal with pg_query
<7> Jymmm, all it should do is redirect to php.net
<8> malco1m STFU!
<0> string is ok, no need to escape it...
<1> i'd make sure anyway
<0> let me test it
<0> back in 1 min
<8> malco1m =)
<7> see? it works!



<3> i created an xhtml parser called GTFO
<0> problem is here:
<0> db_select("SELECT funcionario_id FROM funcionarios WHERE funcionario_usuario_rede=
<0> '$username' AND funcionario_status=TRUE;");
<9> italian?
<0> I'm trying to replace the $username by $_SESSION['username']
<0> ' is ****ing it
<7> scandalous
<10> that is why you should ensure you escape the data being p***ed to the db properly
<0> pl
<0> ok
<0> got it
<7> or concatenate your strings properly...
<9> s/or/and/
<11> hey guys, i'm getting a "Notice: Undefined variable: instance_no in /home/am/webdev/public_html/battle_scape/timber/utils/validator.php on line 15"
<11> with this singleton
<11> http://pastebin.com/572369
<11> would someone mind having a look if they have spare time
<11> i'm not sure what i'm doing wrong
<11> it doesn't like me using $this-> to reference object vars
<9> _StarScream: you have to do $this->variablename
<12> hi
<13> Isn't it $this->instance_no++; ?
<9> so... $var->insance_no
<10> _StarScream: use self to increment the static var
<11> itrebal: i tried that, but then it complains when i'm first getting then instance
<9> php version?
<10> _StarScream: self::$instance_no++
<11> php 5.1.2
<11> zircu: ah
<11> thanks
<14> Teolupus: how did qut tell you to do somthing like $_POST['$array['index']'] ??
<9> $_POST[$array['index']]
<0> ??
<0> i did it like itrebal said....
<0> now its fine, tkx
<9> aahh crap
<9> my rooms a mess
<15> dont mind me testing new irc client
<15> test
<0> ?
<0> why everybody got disconnected?
<16> split ?
<17> I've just started recently (today) using cl***es and teh OOP stuff in PHP5. I'm using PEAR::DB for my database layer, and curious if its possible to use it within' the functions inside the cl***?
<11> zircu: all that and the singleton isn't really needed it seems. It's destructed before the second call is made on it, so it instanciates its self again
<10> _StarScream: you fix the reference to self::$my_instance as well?
<18> what is the php structure thats like a case statement in C++
<17> switch?
<11> zircu: ah...nope.. :)
<10> starwindsurfer: switch() { case __EXPRESSION__: break; default: break;
<0> is there a way to p*** pg_query result across session variables?
<19> hi
<11> zircu: yep thats working now, thanks
<0> like $_SESSION['result'] = $pg_query("blah");
<20> Anyone have any experience with the fileinfo extension?
<10> Teolupus: no
<0> ok
<0> zircu: ok! could you explain why:
<20> I'm wondering of what format the output the mimetypes are. I.e. I can get text/plain; charset=us-ascii, application/pdf, ...
<10> _StarScream: be sure to check out php.net/language.oop5.patterns
<20> s/the mimetypes/mimetypes/
<0> zircu: i think that pg_query result is a "pointer" to a malloc memory area....
<0> zircu: so when you p*** the reference, the variable gots out of scope and is deallocated by php
<0> zircu: is that right?
<10> Teolupus: sort of
<21> what is the name of the php function for pausing script execution?
<0> what if I'd like to store 2 values for a "row" in an array... like: area[area_id] = $area_name, $area_permissions;
<16> l008com , sleep()
<9> would it be a Bad Idea (tm) to put in a new harddrive (larger), mount it read/write, and do cp -r /* /mnt/newharddrive
<21> aaah
<10> Teolupus: the concept of that the allocated result is lost between page request is the correct
<16> lol
<9> and then remove the old drive, and use the new drive as the main


Name:

Comments:

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






Return to #php
or
Go to some related logs:

cmi8738 xorg.conf 5.1
php array_push unexpected T_DOUBLE_ARROW
rename VolGroup00
compat-expat1
+illegal offset +ipod
qemu reactos
#ubuntu
#gentoo
sqlalchemy show tables
#math



Home  |  disclaimer  |  contact  |  submit quotes