logs archiveIRC Archive / Freenode / #php / 2006 / March / 8 / 1
bnoji
Is there an accepted way to display the TM and SM trademark symbols in HTML?
only ® works for the registered mark
caffinated
Remowylliams: #javascript
[Ex0r]
I'm creating a script that reads info from a sql database and puts them in a table, but I don't want the table to be any larger than 2 cell's in width. How can I go about getting it to display all of the information in the table, splitting it up into <tr>'s after it does two results ?
Remowylliams
caffinated: been there no one actually is breathing.
Martyn
Hey all.
caffinated
Remowylliams: I don't care. this is not a javascript channel
Jymmm
©
®
Dragnslcr
Remowylliams- I don't think Javascript has sleep, just setTimeout
caffinated
Dragnslcr: we do not support javascript here, so it doesn't matter
         

Martyn
caffinated : Hey, hey, it's relevant. No need to be sarcastic.
caffinated
persistance will be met with force.
Martyn: i'm not being sarcastic. i'm serious.
Martyn
caffinated : What you're being is unhelpful, narrowminded, and speaking policy for everyone. I -do- help with other questions relating to other languages, as long as it's related to making something PHP related work.
caffinated
I have no time, or patience for people who can't figure out the rules, even after being warned.
coca
anybody can tell me why a variable icluded in a file with smarty doesnt get "resolved ?"
Stormchaser
not to mention he's an op, too ;)
pyxl
heh caffinated is the faster typer....
Jymmm
caffinated: I'm just tired of babysitting and wiping their asses
caffinated
coca: sorry, we do not support smarty here
Jymmm
coca try #smarty iirc
coca
caffinated: why :) ?
lig
(Action) blinks
Jymmm
!+g8
php-bot
Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
Stormchaser
coca: Because it's a 3rd party... Um.. Thingy
Jymmm
!+g10
php-bot
Guideline #10) We don't support xyz script. We help you *write* PHP, not download and install/hack/use pre-written scripts
coca
heh
caffinated
coca: because we only deal with php language related issues in scripts that you wrote. smarty is not a core feature, nor is it something you wrote.
Remowylliams
Makes you wonder about all the Ajax hype I have to say
         

Dragnslcr
Most people think Smarty is part of the language because they got a .php.net subdomain
Stormchaser
Remowylliams: #javascript, once again
Dragnslcr: Same applies to PECL / PEAR
...the hell...?
Remowylliams
Stormchaser: than you gain.
Stormchaser
stoorm: do *NOT* pm me.
Remowylliams
eer again
bnoji
is there an html element that can be used to style just 2 letters of a string? (like the html font tags)
Stormchaser
Remowylliams: Present
Jymmm
bnoji try #web
bnoji
I need to set vertical-align: super; for two characters
Dragnslcr
Yeah, though you can at least argue that PECL is sort of useful
Remowylliams
Stormchaser: you're as helpful as always.
Jymmm
!+pafy
vbk929
can any one help me in PM with my problem
Remowylliams
Stormchaser: let's not forget #Ajax
php-bot
[Passive Agressive Fsck You] We aint buying your crap, so knock it off!
Stormchaser
o.O
caffinated
it's showtime in ##php, horay.
Remowylliams
LOL
Stormchaser
(Action) ponders if stoorm is dumb or something
Dragnslcr
You have to actually ponder?
Stormchaser
There we go
Jymmm
caffinated Sorta kinda like shooting ducks in a pond, but can be entertaining none the less.
lig
(Action) finds it humorous watching the guys flex their collective musckels ;)
Dragnslcr
The private message "hi u hlp plz" tipped me off
caffinated
lig: I'm not flexing anything. we have rules. all people need to do is follow them. nothing difficult about that.
Jymmm
lig: Not really, just the tolernce level for stupidity is low.
lig
caffinated, Jymmm : Understood - I get that way myself at times
mkrufky
wow you guys are off-tha-hook (just read the past few minutes backlog, lol)
caffinated
lig: others get it hard and fast because I don't have time for the people who whine about the rules. it always winds up in a half hour debate that isn't going to change the rules anyway.
subsonic
What's the function to count the occurances of a character in a string?
Stormchaser
stoorm: you do that again, and you -- for some odd reason -- won't be welcomed here anymore. One last time: Do NOT PM random people!
caffinated
subsonic: substr_count
lig
(Action) nods understanding
subsonic
caffinated: thanks
caffinated
no trouble.
myc
why can I use === to compare strings?
Stormchaser
o.O
Jymmm
!+guidelines
php-bot
1) Just ask. 2) Don't repeat. 3) /msg php-bot smart-q 4) msg the bot 5) Be polite and patient. 6) Do not paste here; /msg php-bot pastebin 7) No spam/bots/scripts/trolls/job postings or onjoin/away . 8) If it's not a PHP question, don't ask. 9) Don't PM without permission. 10) We don't support packages here. 11) ##php is a manual supplement. RTFM first! 12) Spelling matters. Use real English.
myc
Jymmm: ?
Jymmm
!+strings
php-bot
[STRINGS] Please read http://php.net/types.string for a basic understanding of how strings work in PHP, as well as http://php.net/strings for functions to manipulate strings. Be sure to read 'user comments' as well.
Stormchaser
myc: can or can't?
Godsey
myc: why not use ==?
mkrufky
well, looks like I failed guideline #2 ... i cant ask anymore :'(
myc
Godsey: because 2 == '2trees'
mkrufky
myc: == is a test for equality ... it doesnt behave as you would expect with strings
myc
mkrufky: Sure it does.. it doesnt behave as I would like when comparing strings and ints.. which returns to my original question..
why === does.
mkrufky
oh! i thought that was a typo
you're asking why that DOES work? most people want to know why something DOESNT work... thats why i misunderstood you
Godsey
myc fine: if (strcmp(2, "2trees", length("2trees")) {
Mosselmaniac
My site displays a warning, that i can't divide by zero, of course. can i delete that warning, without touching php.ini?
Godsey
or cast 2 to string
archivist
Mosselmaniac fix the problem nor the error message
nor=not
Mosselmaniac
it's a huuuuuuuuuge calculation. then i need to do all those equations... isn't there an easier way?
Godsey
myc: use if "2" == "2trees" for that
Jymmm
Mosselmaniac validate your variables in advance
archivist
its wrong if it divides by zero
myc
Godsey: Im aware.. i already said tat.. im asking WHY it works.
Godsey
it doesn't for me.
2 === "2" fails.
Mosselmaniac
jymmm that's so much work, :(
myc
Godsey: as it well should..
Jymmm
Mosselmaniac then give up coding
Mosselmaniac
bah
myc
the int2 isnt the same as the string 2.
Mosselmaniac
i just want to disable a warning for 1 page. that's all.
mkrufky
Mosselmaniac: if you dont do that, then you'll never know if your calculations are delivering the desired results correctly
Mosselmaniac
i don't need them to be correctly all the time lol
mkrufky
???
(Action) wants his calculator to SOMETIMES add numbers correctly
Mosselmaniac
never mind that ;) but is there a way to disbale the warning for that single page?
yoo
Hi !
Mosselmaniac
what if it were not your calculator, and you are fet up with the calculations you have to do over and over again, and nobody looks at the result, well, they scan it. so they won't notice one single mistake in a huuuuge calculation. what then mkrufky?
Godsey
myc: I don't understand your question then.
=== returns true if both are equal and same type
mkrufky
i guess eventually i would have to fire my calculator :-P
Mosselmaniac
or just accept some flawed values, there is no way though?
myc
Godsey: The docs say === is a boolean comparison, where do they say it can also compare strings (or datatypes other than bool)
Godsey
it's an operator
it returns a bool
mkrufky
Mosselmaniac: you can insert <!-- before and after --> your php output
Godsey
true/false
not a boolian operator like & ^
Mosselmaniac
then it's a html comment? :S
mkrufky
yup
Mosselmaniac
then i don't see the output? lol?
hacim
hi, I've got a php cli program I'm trying to debug, its got a bunch of "$debugMsg[]" strings in it, but I dont know how to get debugging enabled so those will be spit out
Mosselmaniac
i echo my values.
mkrufky
Mosselmaniac: FYI, im just average joe user.... im in here asking a question of my own, i try to help others while im here... if you dont like my answer, dont give up... others are here that know more than I
(sorry)
Jymmm
Mosselmaniac
well, to be honest it's very crappy to do it this way, so i'll fix the source of the problem.
mkrufky
good... that is the right thing to do
myc
Jymmm: that page doesnt say why === can be used to compare non bools
ah// it does :P
thx
Godsey
why do you think it should be bool only?
Dragnslcr
It doesn't mean it can only compare booleans
Jymmm
myc: Continue acting stupid
myc
because thats where it is used in 90% of the questiosn.
Dragnslcr
It means the operator returns a boolean value
myc
Jymmm: better than being stupid.
Godsey
http://www.php.net/manual/en/types.comparisons.php
did you read that?
Jymmm
!+g16
php-bot
You can be /kickban from ##php for being stupid
Godsey
and you can also do this if you want:
myc
Godsey: i get it dude.
no more.
Godsey
if ( (int) 2 === (int) "2" ))
myc
im not typecasting in php
Godsey
then why are you using === in the first place?
lig
(Action) swings to some cool old blues
TheBest
what i need to can save my users score points from the Game`s they Play ?
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 next »