logs archiveIRC Archive / Freenode / #php / 2006 / April / 8 / 1
computersolution
was trying to take it from a dropdown menu
Stormchaser
*blink*
Kaitlyn
is there any way to "go back to the start" for an array after forteach?
mattmcc
It's not necessary, foreach doesn't move the array pointer.
Kaitlyn
hmm
Questutis
with what can i save an image to .wbmp ?
Stormchaser
if you have the disire to, then yes.
zircu
MS Paint?
why .wbmp?
^Migs^
because it has a w, unlike regular bmp
         

Haron_
zircu: seen my question?
Stormchaser
*blinks*
Questutis
zircu: found it, paint shop pro can
zircu
Haron_: yeah, and well, what you are trying, even if it works, isnt' a good method
Haron_: just do a ->add() method and have it push the value on the objects array
Vlet
Questutis: IIRC, there is a (free I think) plugin for photoshop too
Stormchaser
(and there is GIMP as well..)
Vlet
ahh yes
computersolution
storm, i updated it, but still not working
http://pastebin.com/646846
Questutis
Stormchaser: Gimp isn't able to save as wbmp
computersolution
can you take another look?
Stormchaser
!+doesn't work
php-bot
Look buddy, doesn't work is a strong statement. Does it sit on the couch all day? Does it want more money? Is it on IRC all the time? Please be specific! Examples of what doesn't work tend to help too. Finally, showing us the code is helpful (after you've explained your problem). /msg php-bot pastebin for more information
zircu
or Graphicsmagick
computersolution
lol
Stormchaser
Questutis: I can't imagine how your question belongs to ##php...
computersolution
Fatal error: Call to undefined function: membership_type() in /home/corps/designerwiz.com/html/members/register.php on line 136
is the error
Stormchaser
THANK YOU!
:P
computersolution
sorry
Stormchaser
is the file that calls the functyion included?
Questutis
i am writing php to parse wml, so.. but yeah anyway, did not know where to ask
         

computersolution
yes
it worked as a drop down menu
Stormchaser
Questutis: Try ##linux. Smarter people.
zircu
if you install the pecl module imagick you can save it in php with that
computersolution
so it has to be in the function
Questutis
Stormchaser: thanks
zircu
Stormchaser: smarter people in #freebsd ;D
Stormchaser
zircu: IIRC, GD can handle wbmp as well... Bu that wasn't the question.
zircu
gd sucks
nater
i like gd
zircu
still waits for php's graphic library
Stormchaser
zircu: yet you can't do the things with IM module... Try to draw with IM (or something)
zircu: GIMP.
zircu
yeah, i know, i have issues with IM
computersolution
storm any clue?
kambei
Is it considered bad by PHP standards to include "display" functionality in class objects? (i.e. html)
Stormchaser
computersolution: Yes. The file containing the function is not included
Haron_
zircu: that's what i do, in the add method, i call an array_push()
cusco
hi...
Stormchaser
kambei: Depends on *how* you do it.
Haron_
but i'm wondering if i'm operating on the real object or a copy when calling to getArray()
kambei
Stormchaser: Care to elaborate on that?
cusco
Im reading http://www.php.net/manual/en/configuration.changes.php
Stormchaser
kambei: no.
cusco
but its hard for me to understand
kambei
Stormchaser: Thanks.
cusco
I have php4 as an apache mod
Stormchaser
cuerty: um...
cusco
I am not allowed to use php_flag on a .htaccess file (says my error log)
how can allow it?
computersolution
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/corps/designerwiz.com/html/members/functions.php on line 54
actually there was that error up at the top
Stormchaser
kambei: PHP has more than one way to output HTML. It all depends on where and when do you use it and for how much HTML code. So I cannot answer your question, if you don't elaborate yours.
computersolution: You just introduced another parse error, that has nothing with the one you posted before.
computersolution
both are on the same form though
Stormchaser
computersolution: *blink*
computersolution
what does that mean?
Stormchaser
computersolution: Do you have *any* idea, what are you telking about, or how the error management works in programming language?
Jymmm
!+start over
php-bot
Please go to php.net/manual, read the first 5 sections, EVERY PAGE, and then see if you can solve your own problems.
computersolution
im trying to learn
Stormchaser
Jymmm: *nod* ;)
winmutt
its so frieday
live and DIRECT!
Stormchaser
from the wasteland
computersolution
but its hard when no-one will help
winmutt
?
computersolution
and all you have is examples that doesnt quite fit what your trying to do
Jymmm
computersolution Did you read the first 5 sections of the manual?
robert_
blah, http://rafb.net/paste/results/hR5Sxw51.html - for some reason, my if-block inside fetch_depend() isn't being triggered (the "Hey, no rows returned!" if-block).
(lines 50-56, btw)
computersolution
jymmm no i havent
does it go over making radio buttons in an array from a mysql database?
winmutt
do you know mysql
Jymmm
computersolution you tell us, does it?
winmutt
id suggest learning realtional database theory, then learning sql, then learning php
computersolution
im not the type to waste my time if it isnt going to help
winmutt, i got the first 2 down
Jymmm
computersolution: And we are not the type to waste our time on those that aren't willing to help themselves.
winmutt
if you dont know the first two youll never pick up the third to make radio buttons from a mysql db
computersolution: oh then #3 should be easy
computersolution
as i stated, i do know the 1st 2
yeah, seems so easy
lol
daqqal
i just compiled 5.1.2, command line give me the 5.1.2 but phpinfo gives me the old version still? i changed the php,ini to point to the corrent lib and extension folders, what did i miss?
computersolution
o-well, thanks anyways for all of the help
zircu
i think a third thing is missing.. basic html
robert_
zircu: indeed
Stormchaser
Jymmm: This might interest you: http://www.gumstix.com/store/catalog/index.php?cPath=27
robert_
Stormchaser: hey
Stormchaser
'lo, robert_
robert_
how's it goin?
Stormchaser
okay, I guess... you?
strikinado
Hi, why when I add "disable_funcions" in php.ini It don´t work? PHP 4.4.1
robert_
meh- could be better; I'm trying to fix a block of php code, and it's pissing me off
Stormchaser
robert_: try PYthon instead XD :)
robert_
lmao
I know python less than I do php
:P
Stormchaser
robert_: It's easier than PHP
Haron_
how can i check if an array already exists?
Stormchaser
is_array()
robert_
now, I need to bug my host to install mod_python
heh
Stormchaser
robert_: Use CGI :)
strikinado
help
Bouncy
im getting a prase error unexpected T_WHILE when im using str_replace(array("'"), "", $handle
robert_
I'll pick up python when I have some spare time
Stormchaser
Bouncy: o.O
mattmcc
Bouncy: So you have a syntax error.
Haron_
Stormchaser: thx
Bouncy
mattmcc: most likely
mattmcc
Well, it's telling you that you do.
So look at the syntax above & below the line it mentioned.
Bouncy
mattmcc: this is the line below while ($data = fgetcsv ($handle, 4000, "|")) {
robert_
Bouncy: you forgot a ; or a ) or a closing quote- check the lines above
unexpected T_WHILE usually happens when you forgot to close-off something, and php still thinks you're somwhere you don't think you are
Bouncy
robert_: its a ) fromthe looks of it. in the str_replace(array("'"), "", $handle but should the ) go before or after $handle.?
cusco
hello
mattmcc
Bouncy: Look at your array.
Oh, no, nevermind.
cusco
can someone help me understanding http://www.php.net/manual/en/configuration.changes.php ? Im using php4 as a apache mod
and i get a "php_flag not allowed here" error
robert_
Bouncy: it's not what's in the while() statement, it's the while() statement itself- php is saying you're still in another block of code, or some other expression, in which it isn't allowed.
Bouncy
robert_: yea i forgot a ); on the end of the str_replace line.
robert_
I've done that before
I've forgotten to put something somewhere
and it's effed-up my code before
so, yeah
heh
Bouncy
robert_: though the str_replace like is supposed to remove the ' speech marks in the csv file before it enters it into the database else i get errors from php thinking its finished reading the csv file when it hasnt.
like = line.
robert_
heh
yeah
Stormchaser
cusco: and WHERE do you put the php_flag and WHAT kind of php_flag?
strikinado
Hi, why when I add "disable_funcions" in php.ini It don´t work? PHP 4.4.1
robert_
strikinado: learn english first.
« prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 next »