| |
| |
| |
|
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
Comments:
<0> I am just trying to emulate the isset functionality mroe or less.... <1> is a constant's scope only in the page it was defined in <2> constants are global <2> unless they are cl*** constants in which case they are local to the cl*** <1> so to call a constant, i would do GLOBAL $constant <2> no you would just use the constant name anywhere in your code <2> look up php.net/constant as well <3> Any anyone happen to install apache/php via rpm? Just curious on what options I have for future addons via rpm nowadays, I just install by source as of now. <2> be sure not to do equality checks on an undefined constant though as that can do the exact opposite of what you expect <0> Narada: Did you happen to catch my question above.... <4> mikefoo: just about any library shown on php.net should be available through a yum repository <2> yes i did <2> just use try { ... code ... } catch ... normally <2> no need to conditionally run the try <4> mikefoo: realistically, your options are probably better with an RPM based distro than most. <0> Narada: Okay.... I will go back to the drawing board then... :)
<3> caffinated: yah? sounds good then. I will go the rpm route for apache/php then. <2> you could have: try { ... entire application ... } catch ... and it would still only bork if you had an error <4> mikefoo: I suggest you get fedora and mess around with it before you make a decision. distros really boil down to preference. <3> I use fedora.. <2> gah <0> Narada: What I am not understanding is that the first visit to the page, when the cookie does not exist, it is treating it as if it did, thus trying to retrieve the username variables and so on <4> Narada: why? tell me what is so bad about them. <2> caffinated: i've developed a strong aversion to them since my early days with redhat and other rpm based distros; firstly dependency nighmares and secondly there was no integration between rpm sources, their manner of creation and the distro so there were a million places you could get them from and each one created differently <4> Narada: then you don't know that those problems have been solved, right? <0> AMEN to that.... <2> Milligan: i can't comment on the specifics you have going on there but do read up on exceptions; i feel you could benefit from that <2> caffinated: that's exactly right :) (haven't dared to touch them) <4> anyone who uses the 'dependancy hell' argument really hasn't used redhat in the last 6 years. <2> caffinated: yeah i just turned to binaries, source compilations and ports after that <0> Narada: Thank you for that advise.... I am still abit green. I appreciate your patience <4> Narada: my point is, you're talking out of your *** :) you should update your knowledge base and then comment. much has changed. <2> caffinated: i didn't comment on other's use of rpms or rpms themselves; i was simply indicating my reaction to them <2> it's a bit different from saying "No don't use rpms because rpms ****!". <4> it's a common reaction. however, when asked to explain why, people all use the same argument. except, the argument is wrong. <2> Milligan: :) <0> HEHE :) <5> caffinated : How is dependancy hell in rpm's solved ? Definately not with up2date ... <2> caffinated: i knew it might invoke this reaction from others so i kept it subtle and indirect :) <0> Man compiling it from source creates a tight and extremely fast and efficent machine.... <4> DepretioN: yum handles fetching of dependancies. all binary and source based distros these days have some method of dealing with it. <0> I can not stand running a machine any other way <5> *strokes his Gentoo* .. havent taken the time to look at Yum yet ... so wont comment further <2> heh yeah ports is nice <6> Is this ok format: $cat_to_insert = (($dao['where_category_id'] == '') ? '1098' : $dao['where_category_id']); <4> I run gentoo at work. it causes me more problems than I'd like. wastes a lot of time compiling binaries as well, for a very minimal boost in speed. <6> caffinated: dont joke yourself.. you dont run gentoo for a speed boost <4> myconid: right, I run it because the ebuilds are generally more up to date than debian's apt repositories. <7> hey -- I know I'm not supposed to post about jobs here.. but may I ask where I can post to hire *3* php programmers? for south florida. <2> a binary distro with nice package management and up to date packages would be ideal i think <4> !tell absentia about jobs <7> rentacoder isn' cutting it.. and there seems to be nothing really available... anyone have any suggestions? <4> absentia: please don't mention it again <7> bah, that channel is empty :-< strange that this place is so rabid 'bout that. <4> absentia: it breeds problems we don't want here. <7> I can understand that. <8> absentia: monster.com? a local headhunter? <4> absentia: what I could suggest though, is to get to know some of the people here, and talk to them privately about it. it's a little more roundabout, but it's not against channel policy. <6> absentia: a well managed project should be easily segmentable to consultants <4> 'consultant' is another word for 'ridiculously expensive' <6> caffinated: or cheap, easily dispensable labor <6> you dont need to pay taxes. you dont need to pay unemployment.. <6> if you dont like them.. you just dont give them anymore work. <4> those are not consultants, those are contractors. <6> Consultants usually contract :P <4> consultants come in to let you know what you're doing wrong. <4> and they usually charge a small fortune for the service. <8> consultant you pay for advice, contractors you pay to do your work <4> ||cw: right. <8> some people are both, however <6> k :) <9> caffinated: I wonder if I could make a living by charging people as a consultant... and walk in and simply say "You're wasting your money on consultants" then walk out and collect my cheque ?
<4> GwaiLo: haha, somehow, I think your business model is flawed. <9> caffinated: psshaw... damn you nay sayers ! <4> GwaiLo: I want to say something about how it's all that Vim in your diet, but I'm trying to swear off the Vim bashing ;) <9> caffinated: bah, I was about to lead into it :) <2> it'd be better to recommend hire of contractors who in turn recommend the hire of you as the contractor <7> gwailo: I know of an insurance company that got that report from their auditing firm... <4> haha <2> s/contractor$/consultant/ <7> the auditing firm said that the company was wasting money hiring outside firms to do things such as auditing. <9> absentia: lol, that's beautiful <4> Narada: some do that. <2> i would say i'm not surprised but i am <4> you shouldn't be, it's all about incentives. <10> caffinated, ?? <11> okay, new to this. what am i doing wrong here <12> hey <11> http://the-z-machine.com/php_dev/ <12> I just compiled 5.1.2 and I'm getting this error: undefined symbol: _zend_list_delete <4> Davey|Work, ?? <11> so, if anybody wants to give me a hand with that, i'd be much obliged <13> matty <9> caffinated / Davey|Work : ?? <9> (sorry, peer pressure :/) <4> leku: that probably means you have a broken build. try doing 'make clean' first before the build. <12> k <11> when i submit to my first little php i've ever made here, i get a blank page <12> thanks, i'll try it <11> and i'm not sure what i'm doing wrong <11> not even a php error! <14> Hm. What's a safe way to allow PHP scripts to do setuid root tasks? <12> suid wrappers? <12> suexec? <14> leku: Both seem quite tricky with Apache mod_php <12> ah <15> nailbiter: don't like the idea of running php scripts as root <10> GwaiLo, ?? <14> Falcon|: They just need to invoke a handful of commands as root <12> use a C wrapper <8> nailbiter: maybe sudo? <16> nailbiter: There's not a safe way to run anything as root from inside apache. We usually recommend that you segregate the tasks. <8> nailbiter: though I usualy make a seperate daemon to do the root work and only allow trusted connections <16> nailbiter: Apache/php to write to a database the work that needs to be done, an external process that runs out-of-band via cron to perform the setuid tasks. <14> Ok. So have it invoke a setuid'ed program with system() to do the dirty work? <12> well <14> But how would I prevent others from misusing the setuid'ed program? <12> just have a C wrapper that calls your programs <12> so your C wrapper is suid root, and then it execs your stuff <16> nailbiter: That's why we recommend they run out-of-band with each other. <12> so ya <14> TML: That's a sensible idea, though it means piling on a lot of complexity <13> hmm <16> nailbiter: Generally, I find it's actually LESS complex than trying to find a safe way to perform both operations in-band <17> seriously, mother of christ, f*ck windows.... when running windows, 1 avoid illegal sites, malware may be present, 2. don't click links in popups, 3. dont' click links in spam as they maybe malware, 4. don't download free software unless you know you can trust them, 5 keep anti spyware software up to date, 6. let it scan your system regularly 7. keep your anti virus up to date 8. run your antivirus regularly also, 9. run online virus checkers like housecall <17> only 13 simple steps you should do EVERY DAY, that you would never have to do on linux or os-x to keep your windows running <14> ||cw, TML, leku: Thanks for your suggestions, guys. Wouldn't have occurred to me at all <18> what good is a resource returned from a mysql query? all it tells me is the table name of the table i am trying to SHOW TABLE STATUS or ANALYZE TABLE. there is only one row too <17> ARRRRRRGHGHGHGH, bill must die!!1 <19> eheheh I agree "Bill must die" <19> ;) <20> hi.. quick question if anyone is around <17> anyone up for following through on an anti spyware/virus service like ***invader? http://lowroad75.comicgenesis.com/d/20051015.html <11> i know everyone's got logs, but i'm going to ask one more time and then leave everyone alone, does someone want to take a look at my php <11> http://www.the-z-machine.com/php_dev <11> and tell me what i'm doing wrong <20> how do you access dynamic object arrays... ie you have an object $this with var $field which is an array how do you access it&ie: $this->$field[$key] does not work as it takes the value of $ field[$key] as the object variable name what we really want is to set that fields array value <20> work around is $tmp = & $this->$field ... $tmp[$val]=value <20> but is there a direct way to do it? <20> khmer: your php is not visible <11> bigmammoth: look at closing.txt <20> oh never mind found it :) <20> first of all turn on errors <20> how are you going to debug anything/ <11> bigmammoth: i know, i just got the hosting account and i haven't futzed with webmin yet <11> apparently the error is on line 36
Return to
#php or Go to some related
logs:
#web /usr/include/GL/gl.h:71:22: GL/glext.h: No such file or directory #suse gentoo problem sandbox binary xen Attempt to read block from filesystem resulted in short read ubuntu server grub interrupt boot where are the icons ubuntu No absolute path found for shell: inkscape python stdin example #physics
|
|