17.07.2009
Channel php ausgewählt, Log vom 17.07.2009
Seite: < 1 2 3 4 5 > Letzte Seite
Chatlog
glt: does anybody know where to find description of double $ usage? for example: foreach ($array as $key => $val) { $$key = $val; }
Seph^^: glt: don't
Seph^^: php.net/extract
Seph^^: but if you need it for something else: http://dk2.php.net/manual/en/language.variables.variable.php
glt: tnx :>
Seph^^: that said, I'd recommend asking in here before using it as usually variable variables are not the first or even second solution to consider
glt: i use it inside some cms which sents static-named array values, so its safe enough i think
thorn: http://pastebin.com/d31216af6
thorn: is this so messy i think
Nicd`: SELECT * is evil
Tizard: it depends
Tizard: if you really need everything
Tizard: without renaming
Nicd`: and then when somebody else reads the code he has to have access to the database or he won't have any idea what's coming out of it
Nicd`: http://parseerror.com/sql/select*isevil.html
Tizard: yep, that's true, so it depends if somebody else will read the code or only you :D
Nicd`: well, you should always write your code so that it can be read and understood by another person later
Tizard: ok wont continue the debate lol, because 99.99% you're right, but I like to defend the other part xD
Nicd`: this also makes sure that you yourself can still read and understand the code a month later :P
samsen: weh...gonna be a hard 6 months php takes some time to melt :/
samsen: most of u guys selftought here?
Cheez: i'd imagine almost all php coders are self tought
Tizard: sry i'm french... understand almost all but self tought... independant ?
Tizard: freelancer ?
Nicd`: self taught
webspell|k3rmit: learning by themselves
Zeddy: i have a calendar, which loads events from the database
Zeddy: when making changes to the calendar in FF or chrome, IE doesn't see the new events, just the old ones :)
webspell|k3rmit: reload with ctrl+F5 in IE
Seph^^: self taught isn't necessarily bad taught, though :)
Seph^^: one just need to re-asses what he's learned constantly, otherwise bad habits creep in. Like variable variables :P
samsen: .. :)
samsen: need to improve ma english skillz
Zeddy: ok, IE has another problem lo
thorn: any way to force charset with PHP?
Tizard: header("text/html;charset=iso-8859-1"); ?
thorn: thanks
xert: Tizard: that's incorrect
xert: thorn: use header('Content-type: text/html;charset=iso-8859-1');
Tizard: yes sorry I took it from the net
Tizard: didn't check
Tizard: i use it often but forgot the exact syntax
StM: Know somebody a good ubb/smiley parse framework? Prefered on a token base so a smiley in for example a url isnt parsed.
boxc: is it just me, or is the whole concept of xhtml a bit weird?
boxc: well
cnu: just you!
boxc: it's weird that html was so stupidly made to start with
boxc: but it's like "convert your page to xhtml! you will have to change a bunch of things, but it won't do anything"
cnu: you can have a nice "valid xhtml1.1" button on it!
iostream: XHTML is part of the "wow, lets use XML with everything, just because we can"-era
+SlashLife: XHTML is a good step.
+SlashLife: HTML is a pain to parse.
+SlashLife: </> or completely missing closing tags ftl.
xyzz: quick q: whats the function to print all strings in an array
+SlashLife: echo?
+SlashLife: It's not a function, though. It's a language construct.
xyzz: all variables set
+SlashLife: $GLOBALS
+SlashLife: WTF are you on to?
xyzz: ty.
bubsy: HTML 4.01 \o \o> o/
@et-: X(HT)ML isn't nice to parse either, and both of the things you mentioned are things that make something hard to parse
@et-: (and for what it's worth, xhtml has "missing" tags also, just with the requirement that both start and end tags have to be "missing")
+SlashLife: Both things I mentioned are SGML features not included in XML.
+SlashLife: At least it IS possible to parse XML.
+SlashLife: With HTML you might *have* to guess on the authors intentions.
@et-: where do you have to guess?
@et-: (and i don't get your "<+SlashLife> Both things I mentioned are SGML features not included in XML." point - noone said that they were in xml)
+SlashLife: Your answer kind of implied it.
@et-: SlashLife: my answer was referring to the fact that you can leave out the tbody tags in xhtml, but when parsing it, you have to insert the tbody element into the tree (as an example)
Seite: < 1 2 3 4 5 > Letzte Seite
Zurück zur ÜbersichtWebseiten Tipps
Hier gehts zum jquery Tutorial.
Meine schwarze Webseite: iPhone4Spiel
