logs archiveIRC Archive / Freenode / #php / 2006 / April / 1 / 1
CrazyTux
magewlf, so learn how.
magewlf
where
CrazyTux
magewlf, http://www.php.net
Ahroun
Well, your chances for getting help from many of us evaporated when you blew up.
magewlf
**puts bot on ignore**
Elazar
And the rest evaporated after you did that.
magewlf
and i want elazer to stop having the bot pm me
itrebal
Elazar: agreed
Elazar
itrebal: Sorry... just trying to educate him. :P
         

itrebal
seems like everyone is a mage or a wolf
Ahroun
I think I saw a feline earlier. I know I've seen a 'yote here before.
lra_
imagettftext($this->map,32,0,100,100,$this->text_colour,realpath('./fonts') . '/unicode.ttf','24%'); <--- still not even happy :(
Elazar
"There is nothing in the universe whose coolness factor can't be improved with the addition of ninjas, monkeys, or pirates." :P
itrebal
lol
(Action) changes his website design to include priates, monkeys, and ninjas... all at the same time!
Stormchaser
24%?!?
Elazar
itrebal: *lol*
lra_
and?
Ahroun
(Action) writes, produces, and directs a movie about ninja monkeys who get kidnapped by pirates and become part of the crew.
lra_
is it the relative path from teh script, or the absolute server poath?
Ahroun
Y'arr.
astevens
ninja please..
not as funny when not on a t-shirt
lra_
Ahroun - even played monkey island?
Elazar
magewlf: A lot of common questions are asked in here and the bot has triggers to tell people the answers to most of them so we don't have to repeatedly type out explanations. Ignoring the bot will only alleviate you of most of the advice you're going to get in this channel.
Stormchaser
lra_: You CANNOT put the fint size in PERCENTAGE!
zeasie1
so if you put an object into the session should it remember the classes static variables?
lra_
Stormchaser - that's the text string
Stormchaser
s/fint/font
Elazar
magewlf: Especially when you're asking the type of questions you're asking.
magewlf
hmmm...
O.o;
**goes to find a new web browser**
         

Ahroun
lra_: Naw, I'm not much of a gamer.
lra_
ahh - your plot is similar to the game
Stormchaser
<magewlf> and i want elazer to stop having the bot pm me <-- what did he message you?
Ahroun
lra_:Oh, darn.
magewlf
friggan Maxthon keeps opening new tabs everytime i open a lin
lra_
yeah
Elazar
Stormchaser: english, aolbonics, g10, and smart-q :P
BigSinep
how do a make an integer division
cosmic_hippo
I'm new to php5 OOP -- and I'm having difficulties concatonating multiple vars together
BigSinep
$nr (integer) / 5 => integer ?
Tac_Work
is the a problem with having a dash in a define? define('FILENAME_ABOUT-US','about-us.php');
Stormchaser
magewlf: It's bad idea to ignore the 'bot here.
magewlf
i unignored it
Stormchaser
ok
cosmic_hippo
public $y = "y test"; public $x = "x test".$this->y;
Stormchaser
BigE: no, it's float
cosmic_hippo
doesn't seem to work out for me
Stormchaser
Er... BigSinep
CryWolf
Tac_Work: You can't use - in a variable on constant name. it's an operator.
s/on/or/
Tac_Work
CryWolf: thats what i was afraid of
magewlf
Stormchaser: whats a good login script to use..
lra_
odg
Ahroun
bigsinep: floor( your division here )
Stormchaser
magewlf: The one you write
Tac_Work
CryWolf: i was checking before I went to go fix this script .....
lra_
magewlf - the one i could make for you
Tac_Work
CryWolf: thanks
Elazar
!tell magewlf about g10
magewlf
i ned to know what files to make what to put in them first o_O
lra_
so Stormchaser - any other ideas?
Ahroun
lra_: Why did that come across with maniacal laughter? ;)
Elazar
magewlf: http://php.net/manual/en ... start reading.
itrebal
lra_: by writing him a script, he wont learn how
Stormchaser
lra_: What's the error?
lra_
Ahroun - shhhh :)
itrebal - no, but it'd make me money :)
Lateralus
oh good god
itrebal
lra_: lol
Elazar
itrebal: Note he said the one he _could_ write for him. Which generally implies compensation is expected. ;)
Lateralus
our website just won an honorable mention at the Web 2.0 awards
Elazar
Lateralus: Congrats. URL?
lra_
Stormchaser - the image... can not be displayed because it contains errors
Stormchaser
rofl
Lateralus
Elazar: ...congrats...?
Stormchaser
lra_: Have you LOOKED at the errors?
Elazar
Lateralus: (3:11:41 PM) Lateralus: our website just won an honorable mention at the Web 2.0 awards
magewlf
eh.. o.O; i'll stick with the one i have @_@
lra_
Stormchaser - uhm, how?
itrebal
O.o
Stormchaser
lra_: REMOVE THE HEADERS!!! </shouting>
Lateralus
Elazar: http://web2.0awards.org/ we're an honorable mention under the Music category.
lra_
hahaha
Elazar
Lateralus: Which site?
Stormchaser
lra_: What is so funny?
lra_
i don't know
Lateralus
Elazar: mp3tunes.com
Elazar
Hm... interesting.
lra_
mhh
could not find font :(
Stormchaser
*tah-dah*
lra_
which i already knew
Stormchaser
ahd HOW the hell did you expected it to WORK?
lra_
i didn't
that's why i was asking about paths to fonts
Stormchaser
<lra_> which i already knew <-- right
lra_: That's distribution-dependant.
lra_
[21:02] <lra_> is it the relative path from teh script, or the absolute server poath?
cosmic_hippo
how can you concatenate 2 vars in a php5 class?
Stormchaser
$var . $var2
lra_
mhh - doesn't seem to be working either way
Stormchaser
lra_: Because the path is wrong. It doesn't matter, weither is full path or not, as long as the file is where you say it is.
cosmic_hippo
Stormchaser: can you do that when declaring private $var = "text".$this->var2; ??
that's what I'm having issues with
Stormchaser
I don't see a problem with that. What's the error?
cosmic_hippo
unexpected '.', expecting ',' or ';'
looks like I might have to declar the var first then concatenate inside of a method
Stormchaser
cosmic_hippo: No, the error is somewhere else, then
Ciantic
"text{$this->var2}" <3
philip
if php says the error is on line 42, what are the odds it's actually on line 42? 30%?
Stormchaser
!+parse error
php-bot
Parse errors show the line where parsing failed, not nessicarily where you made your mistake. Try looking a line or two above the reported error.
philip
40% of the time it's on the line immediatly proceeding
something like that ;)
itrebal
10% its some 30 lines previous
philip
heh
Nasga
hi, i need synthax for open a link in à named target as target="_nasga" in html, i have try with javascrip and header but it doesn't work :s
philip
Nasga: this is #php
itrebal
Nasga: and it makes sense to ask tha tin ##php, why?
cosmic_hippo
actually, I've just been trying to get it to work in a test class that is 8 lines
Nasga
because header is php ..
my code is php
Stormchaser
NO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
(Action) runs away
philip
<?php echo "<html>"; ?> <-- HTML
Nasga
:o
sorry
philip
?><html><?php <-- HTML
try #web
Nasga
thanks
philip
about 40% of the time we answer such questions
itrebal
<?php class test{ private $var1 = 'test'; private $var2 = 'test'.$this->var1; } ?> does generate the errors
philip
45% we yell
5% ignore :)
itrebal
philip: if by 45%, you mean 0%, then sure
cosmic_hippo
8 line class example: http://pastebin.com/633297
itrebal
cosmic_hippo: i just reproduced it ^
Ciantic
i don't recommend to set default values in the class, more like in constructor
itrebal
Ciantic: wtf not?
Ciantic
not sure why
itrebal
do you have any REASON against it, or is personal preference
Ciantic
habit i guess
lra_
damn, imageffttext gives fonts a massive kerning!
itrebal
ugh
back later
philip
what version php cosmic_hippo ?
cosmic_hippo
501
Stormchaser
private $z = $this->x.$this->y; <-- I always hated those. Just don't use them... Just make private $var; and in __construct() {$var = $this->blah . $this->bleh;}
« 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 25 26 27 next »