@# 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> the file is being p***ed and read into the cl*** var... but when I go to access it using the dynamnic call ($this->$depth) it gets lost
<1> above the echo $this->settings['test']; line put print_r($this->settings);
<2> Quick Poll: Anyone here genuinly interested in helping with an open source site statistics/traffic analyzer?
<3> quick answer: no
<1> ohh I see you have, nm
<4> I'm going to stick by the horrible reference idea
<0> The only problem I have with that Zule is that I don't really want to p*** the actual object - just a copy of the values in the setting var of the calss
<5> greetings yall
<4> You won't p*** the actual object when you get to the return
<3> hmm
<4> As far as I know php doesn't p*** something as a reference unless told to?
<5> yeah
<4> It's worth a shot maybe
<4> I can't think of any other way to do it :(
<3> Zule: that sort of depends on wich php you have and how you define reference



<6> !+kiss
<7> [KISS] Keep It Simple Stupid. Why overthink things?
<3> lig: no hard coding crap...
<5> !+cl***
<4> a reference, err, a link to something else
<5> mmm ...
<0> thyko: to get a message from the bot - /msg him
<4> so if you set $var = 'blah' it changes whatever $var is actually referenced to
<4> My brain is fuzzy :)
<3> Zule: well, i was refering to the way php5s objects are delt with. but that is another topic
<4> I believe it always p***es things prefixed with $this as a reference, within the cl***
<4> ( another reason I hate it )
<1> lig: don't give up yet
<0> hell no - only 2 days on this - still have another week to go ;)
<0> hehe - the worst part is I keep looking at it going... it should work..
<1> and I think it is
<8> lig: Still having email woes?
<0> naa - not today.. just a simple config cl*** that won't do what I damn well tell i t to :)
<6> sounds like enygma's last date
<0> I admit to being an OO baby
<0> hey - he's married now - so he has to do what his date says now (***uming it is his wife) ;)
<9> what's the default timeout time in sessions 900?
<6> Pollita: Hey, have you seen TML's beaver?
<8> ...
<8> He told you about that?
<8> I thought that was something special
<8> between us...
<1> lig: http://www.mirc.net/paste/?699
<10> Hello,
<10> I have this from cpanel forum, where I posted a thread; If you load up a standard phpinfo(); page, does the Server API say Apache or CGI? If Apache, you do not have phpsuexec, if CGI, you do. Depending on what you have, you should recompile again using that option. I want to know what is the difference between different server api
<1> lig: This is the output... $this->settings['test'] = 1
<0> understood Gerry.. but I need the getSetting to have access to the objects setting var..
<10> What are the advantages, disadvatages of having phpsuexec or CGI
<11> Haris: don't use phpsuexec
<0> Gerry - I know it is loading - it is the accessing that is kicking my butt :D
<8> lig: What do you have right now?
<10> fyrestrtr: Ok ..
<10> Why?
<11> Haris: because it can cause security problems. You should only be running scripts with your webserver permissions, not as any other user.
<9> why not use phpsuexec?
<6> Pollita: Hey, have you seen TML's beaver? If you haven't ask TML about it.
<9> are you nuts
<11> no, are you?
<10> Consider an example.
<9> the whole point is to run as that user so other users can't as well as run mail scripts so they dont send out as nobody
<11> moosey: err, no. Read what phpsuexec is used for.
<0> Pollita: cl***: http://pastebin.com/710882 Test Script: http://pastebin.com/710917 Output: http://pastebin.com/710919
<10> I have a portal comprising 17 websites. I need inter-account access b/w those websites
<10> What's good for this scenario?
<11> Haris: you don't need phpsuexec
<11> Haris: shared user authentication database
<0> Pollita: Ouput has the print_r of the setting var then a var_dump of the object and last the output and the error
<12> hi guys
<11> Haris: and cookies
<12> I am trying to count up like 1, 2, 3 in a while
<12> how would I do that?
<6> for()
<10> Ok, good!. Another example ... about mail.
<10> This is a cpanel box, with exim on it



<12> but it then counts like how many times the loop goes for
<10> I have a customer who runs his own mail server on my server
<12> could I put $i++ at the end of it?
<10> he uses my mail server, but uses his own label
<12> and then just use $i
<10> do I need phpsuexec anywhere?
<11> illusionize: for()
<13> I am using php to write to a file and it is add a \ before all ". Is that something that can be turned off?
<11> Haris: no
<10> Good!
<12> I said, I tried
<12> but it just counted like twenty 1's and then twenty 2's
<11> illusionize: you want it to count up to a certain number, or just start counting?
<12> I want it to count until all the data is collected
<8> That's an.....interresting approach....
<1> lig: well at least I'm understanding you now.
<8> Unfortunately variable variables don't work that way.
<0> HEHE - Yeah - I'm odd...
<4> Quirky, the term is quirky \o/
<0> self taught tend to think "outside the box" ;)
<8> You're constructing a property name that has square brackest as part of the prop name (the brackets aren't being used as dimension dereferencers here
<11> illusionize: $i = 0; while($something) { /* do stuff */ ++$i; } echo 'did stuff '.$i.' times';
<12> smooth
<12> thanks man
<8> lig: the "easy" solution is to change line 96 to: return eval('return $this->' . $depth);
<8> But that's lazy and may be prone to security related problems
<0> and what is the hard way?
<8> The hard way isn't too hard, but involves changing your approach a little....
<0> rather learn correct - then "it works"
<0> understood
<8> gimme a second to refactor this
<14> lk
<0> k- and thanks
<15> Anyone here use PEAR's MDB2?
<8> if(is_array($arg_list)) { $tmp = $this->settings; foreach($arg_list as $arg) { $tmp = $tmp[$arg]; } return $tmp; }
<8> Toss some isset checks in there to avoid notices and you should be good to go
<14> nope
<16> well, we built this great project management tool with lots of flash and ajax and everything and it works fine, but now the customer wants to be able to work offline as well.. Wasn't there some way for desktop apps php-style?
<0> hmmm
<0> Will do
<11> kombi: no, there never was a decent way to do them.
<17> have you considered somehow bundling a lightweight http server and php kombi
<17> distributable on say a usb stick or as a self extracting executable
<17> tho you still have to work out when and how to sync the data
<16> Rhasta: is that not too much overhead or fragile install-wise?
<18> kombi: how much "off-line" do they want?
<11> kombi: why don't you just create a front end in flash? Since you are already using it, then just batch update the database.
<17> it's fragile but it's probably less fragile than trying to make a php desktop app
<19> hi guys - anyone here familiar with programming php?
<17> depends how much effort you throw at it
<19> im after determining som einfo about the page request, e.g. the virtual host, from the mail() function
<16> Petfroog: everytime there is no connection..
<8> Nope, we only do Ruby here
<4> PHP? Never heard of it.
<19> err, soryr i mean
<19> programming php on the C side of things ;)
<19> worded badly :)
<17> is php some kind of *nix?
<4> Lathiat: Ah right :D
<8> Yeah, I know a thing or two.
<16> firestarter: good Idea, but can flash store data locally?
<19> basically, i want to add a header to outgoing mail, with the domain in it
<18> kombi: you mean that if they go offline? or do you mean outside the office temporarly?
<19> to make tracking source of mail (e.g. spam) easier
<11> kombi: it can write xml, can't it? ;)
<11> Lathiat: I think this should be handled by your mail server, not PHP.
<19> i tried looking in the environment, nothing ther,e so wonder if theres some kind of php internal i can call tog et request information
<16> Petfrogg: the latter I guess it is
<16> tyrestarter: true
<19> fyrestrtr: it cant be, as php scripts all run as the same user
<4> exim has some kind of magic.
<16> Zule: being?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

GENTOO install why chroot
#asm
mysql transact sql error 1064
djplay jacklab
json.php Undefined property:
k700i FC5
Unknown system variable 'innodb_buffer_pool_size'
dhttp install debian
#awk
mysql shoq



Home  |  disclaimer  |  contact  |  submit quotes