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



Comments:

<0> Bizzeh: anything in your logs?
<0> !guidelines
<1> eml: did ou check to see if your connect() worked properly, and did you select your table?
<0> !tell _polto_ about g10
<2> b1n0ry: nothing i can see
<3> notgod, yeah, I get output, but it seems like I get every field from all rows at the time, one field at a time
<4> eml, do a if(mysql_error()) echo mysql_error(); // if there's an error
<3> no, there's no error in this
<5> [Q]:: Is it possible to find from what object or function a function is called? IE func1() called func2(), is there a way in code within func2() to test if func1() is the function that called it?
<1> eml: try adding a "echo '<br />'" in your foreach :P
<0> Bizzeh: i haven't done a php install on IIS in a -long- time. i don't think i'm going to be much help to you.
<3> notgod, there already is one
<4> eml, you're supposed to get all fields of one row
<4> i'm not sure what the problem is, eml
<0> Bizzeh: you could try to disable all of the modules in php.ini and load them back one by one to see if one of them is causing the problem.
<3> echo "<p><font color=\"#333\">".$row[1]." by ".$row[3]."</font><br /><font color=\"#000\>".$row[2]."</font></p>"; <- [1] is date, [3] is writer and [2] is the headline. <- now the output looks like this: http://eml.nu/wsw/?loc=news



<6> how can i delete files from a directory
<2> b1n0ry: all modules off
<2> doesnt work
<5> AfroTurf: unlink()
<0> eml: missing a " in your last color= statement
<6> pingwin: thanks i'll look it up
<5> no prob
<1> eml: try adding a "echo '<br />'" in your foreach :P?
<0> eml: you have: <font color=\"#000\>" and it should be <font color=\"#000\">"
<1> what the?
<7> font? how quaint
<1> sorry, I don't know how I re-sent that.
<6> pingwin: what function will check to see if it exists first?
<0> eml: missing the quote :)
<0> brb
<3> ah yeah b1n0ry, thanks
<3> now it works
<3> =)
<0> cool
<5> AfroTurf: is is_readable()
<6> oh ok
<3> I should stop escaping with \" and just use '
<5> or not escape and use inline
<8> pingwin: inline?:>
<5> zamba: yeah inline. instead of echo "<p>Escaped ".$row[0]."</p>"; use echo "<p>Not Escaped $row[0]</p>";
<5> its much easier to work with
<8> I see.
<8> so for example..
<5> [Q]:: Is it possible to find from what object or function a function is called? IE func1() called func2(), is there a way in code within func2() to test if func1() is the function that called it? If its not possible thats fine I don't mind, I just need to know if it *IS* possible
<3> pingwin, well, since I want different colors on the same row this way felt better
<1> Does anyone knof of a site /LIKE/ sf.net that supports subversion? :)
<1> oh, and PHP 5. :)
<8> echo "<input type=\"text\" name=\"blah\" value\"".$variable."\" />"; it would be
<8> echo "<p> <input type="text" name="blah" value="$variable" /></p>";?
<5> "<p><font color=\"#333\">$row[1] by $row[3]</font><br /><font color=\"#000\>$row[2]</font></p>" is much easier to read eml
<5> zamba: no that wouldn't parse, your double quotes aren't escaped
<1> I always liked using echo "<input type=\"text\" name=\"blah\" value=\"{$variable}\" />"; instead of ".$var."
<9> can GD2 be used to create a 1x1 png image that hais 50% opacity?
<3> {$variable} is nice yes, reminds me a little of ruby too
<3> well, everyone has their own style
<10> AaronCampbell: probably
<5> notgod: that works fine, but for anything under the 1st dimension of an array I don't bother {} encapseling
<8> ah, nevermind, ill just stick to the onl way myself :>
<5> true that.
<8> Ill check about inline another dayi :>
<8> day*
<9> ||cw: hmmm...I didn't see how to do opacity (in any examples that I've seen). So I thought I'd ask where people would know
<1> pingwin: why not?
<5> notgod: i just don't see a point to it really
<5> notgod: i'm sure its great, it adds consitancy and all that which I am for, but thats just not the way i roll dawg
<1> pingwin: works with multi-dimensional arrays, with variables as the indexes. Also extremely useful for echo <<<EOT syntax.
<10> AaronCampbell: opacity i think is not the right word
<1> pingwin: I don't recall if it works with $cl***->var stuff, tho.
<5> notgod: eww I never use the old <<<EOF trick. stay away from that like the plauge
<1> pingwin: Cool, man, keep it unreadable, bro. :)
<5> notgod: well its all good, I'm really just here to see if its possible to know what object is calling a user function. trying to enact some code process controls.
<1> pingwin: probably a good way to keep your job. ;)
<5> notgod: haha well I do keep my job, but a lot of people work on top of my code and I don't get any complaints :P
<11> I'm trying to dynamically access an object value ... ie $db->q$num ro evaluate to something like $db->q20 ... that particular code doesn't work though, anyone know of a way I could do that?
<1> pingwin: by user function, do you mean just a regular function, or some other user cl***?



<7> BoBB: $someVar = "q$num"; $db->$someVar;
<5> BoBB: the easiest way is to make the method you want to call into a variable and then $db->$var where $var = 'q'.$num;
<5> insin: yeah thats it!
<11> insin, that simply huh?
<5> notgod: as in a user defined function. one that I've written
<11> I didn't think that would work since the other one didn't work ... oh well, thanks :-)
<1> pingwin: what about __get with PHP5?
<1> pingwin: I guess that would have the same problem. hmm.
<5> notgod: yup
<5> notgod: and so you know it is written in PHP5
<5> brb
<1> maybe implement a get($var) method, to reduce code duplication. :)
<2> hmmn
<2> seems im gonna be better just installing 2 httpd's
<0> Bizzeh it's not nice to poke dead things
<0> aside from security, this is one of the big reasons that iis is not a relatively popular web server
<12> ?
<2> im gonna try with my 2k3 server, if i cant get it to work on iis6 then skrew it
<13> When creating a sql insert, using mysql, what is the best way to escape global data before inserting, is mysql_escape_string acceptable for string containing quotes " '
<0> jdog- you have a question?
<1> Blizzeh: have you tried apache2 on win32?
<12> well, you said IIS it isn't relatively popular
<0> and?
<12> thought it was funny
<2> im using IIS for a reason
<0> oh, true though :
<0> :)
<1> Bizzeh: heh, sorry
<12> it might be losing ground n all.. but its still pretty ****ing popular :P
<2> notgod: well, mod_aspdotnet blows for apache
<1> Bizzeh: I bet. :)
<2> notgod: theres more money in asp.net than there is in php :P
<1> Bizzeh: but you can run iis on an alternate port and mod_proxy for the directories where you need aspdotnet or the .asp pages. :)
<2> if i want a job, i have to learn asp.net
<0> jdog- that's why i said "relatively" popular...
<1> Bizzeh: hm. If you want a windows job.
<2> notgod: i refuse to touch linux anymore
<8> Bizzeh: woah?
<8> why?
<2> since its a horrible, slow, fat kernel
<8> not at all.
<2> linux as a kernel, is slow
<2> its a known fact
<1> Bizzeh: You're going to make the baby jesus cry.
<0> relative to apache, specifically. most recent netcraft survey puts Apache at a 68% market share and IIS at just over 20%.
<1> Bizzeh: I am a BSD guy myself. :)
<2> compair it to bsd ot NTOS, its slow
<2> BSD is what is known as a FAST and POWERFULL kernel
<12> b1n0ry: right.. that 20% equates to 15 million servers... its popular :)
<2> linux is like its homo***ual baby cousin
<0> jdog- again why i included the word "relatively"
<1> Bizzeh: Yeah, but if you can calculate the amount of CPU time available due to the kernel, and subtract your time rebooting the machine every day, linux comes out on top vs. windows. :P
<0> notgod not to mention all of the bloat that comes 'with' the kernel :)
<14> hello
<0> or the security vulnerabilities that it includes as features
<2> notgod: b1n0ry: better than being built into the kernel
<2> ok
<2> we ask someone who knows
<14> do you support phpbb?
<0> !tell djunknown about g10
<1> Bizzeh: actually, Linux has been shown to be faster than BSD in recent years, especially on multi-proc systems. Hopefully FreeBSD 7.0 will fix that.
<1> 6.0 is a good step in the right direction.
<14> !tell b1n0ry about g10
<2> notgod: its shown to be faster in like 2 out of 20 tests
<2> the thread and smp tests
<2> that is it
<2> everything else, bsd whups linux
<1> Bizzeh: which is really important for things like SQL databases. :)
<14> is there any channels that support php portals?
<2> djunknown: the channels of the people who wrote them
<1> djunknown: depends upon the portal. they may have their own channels.
<0> djunknown: you would have to find that out from them


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#php
vmware server file-rc
emerge ignore ebuild filesize
how to use orphaner in debian
cannot open device /dev/input/mice no core pointer debian udev
nvidia 9625 beryl linux config.h ubuntu
ubunt microphone
r300_check_render
etch repositorys amd64
procmail DSN service unavailable



Home  |  disclaimer  |  contact  |  submit quotes