logs archiveIRC Archive / Freenode / #php / 2006 / February / 7 / 1
Jaywalker
ahem
TML
:P
Jaywalker
I am a deity
Stormchaser
:)
TML
Jaywalker: Your ant farm doesn't count.
Stormchaser
Jaywalker: You are?
lig
(Action) is a goddess
Jaywalker
ant farm... heh
childs play
i have a hamster farm!
lig
Just check my blkog
         

InsaneHamster
Daddy!
Jymmm
(Action) gets on his kneees and "prays" to the goddess
Jaywalker
i used my ant farm case to put the hamsters in
:-)
they don't move much...
i'm not sure why
djib
caffinated: and is there a function that does the opposite of htmlentities() ?
m-00kie
hmm a test seems to indicate it works as I wanted.. $a = array(); $a[0] = array(); $a[0][1] = 'test'; if (!$a[0]) { echo "a[0]=false"; } if (!$a[1]) { echo "a[1]=false"; } results in "a[1]=false"
InsaneHamster
djib: html_entity_decode
djib
ok
thanks InsaneHamster
InsaneHamster
:)
lig
(Action) can't figure out why some people insist upon NOT indenting coding
caffinated
djib: if you're using that, you should probably rethink that you're doing
djib: for example, if you're storing htmlentity encoded data in a database, you're probably going about things the wrong way
djib
no I'm not
it's just for test purposes
don't worry
caffinated
ok, fair enough
lig
(Action) lets Jymmm "pray" - and hopes he doesn't forget the offering tray on his way out ;)
Jaywalker
(Action) steals from ligs offering tray and runs off laughing "Food for my hamsters!!"
m-00kie
lig - who?
ident code, i mean :)
InsaneHamster
M... Yum... Good food!
lig
m-00kie: on a forum I visit
Jaywalker
(Action) stroaks InsaneHamster
good boy... good boy
InsaneHamster
(Action) eats Jaywalker
lig
Jaywalker: hehe
         

m-00kie
ah.. maybe the forum doesnt translate tab spaces?
Jaywalker
AHH!
InsaneHamster
*burp*
Jaywalker
oh dear god!
i've been eaten!
InsaneHamster
'dear god'? I thought you were a diety...
lig
m-00kie: no , it does... he just never bothers to indent... have told him like 3 times. so now I "remind" him and skip the code
(Action) always fogured men enjoyed being "eaten"
m-00kie
ah. i'll hold him, you skin him alive.. yes?
eating.. hmm ill forego that one thanks
InsaneHamster
lol
Jaywalker
lol
(Action) sits quietly in InsaneHamster's stomach dreading what he knows is to come....
mommy! i don't want to be a hamster pellet!
lig
m-00kie: I'll even be sure to use a dull knife
m-00kie
Jayinwww - just think like that monkey in 'Bruce Almighty' :)
er.. jaywalker
stupid nick completer
Jaywalker
lol
m-00kie
lig - i recommend a super-dull rust-encrusted knife that keeps breaking up while you use it. I find the ones at the bottom of old toolboxes in pawn shops quite satisfactory
lig
(Action) whole heartedly agrees
mattmcc
Ah. g++ has released my CPU. :P
jgarbers
(Action) is glad he isn't just now arriving for PHP help the first time
mattmcc
I don't know what the hell it was building (Part of kdebase), but it pretty much blocked all other processes for a good 15 minutes.
Jymmm
mattmcc Sicne your running 400x320, you must be running what... a 286 ?
InsaneHamster
mattmcc: o.O
mattmcc: What are you building? Trunk or stable?
mattmcc
I'm just rebuilding the debian package of 3.5.1, actually.
InsaneHamster
mattmcc: Um... Why?
mattmcc
Made a minor change to workspaces.cpp.
InsaneHamster
mattmcc: Ah... what did you do to it?
mattmcc
Its 'electric border' stuff (edge flipping between workspaces) has some rather idiotic behavior hardcoded in that I ripped out.
InsaneHamster
:)
mattmcc: Why don't you suggest a patch for that?
mattmcc
When you flip the mouse over to an adjacent workspace, it automatically pushes the cursor 20% away from the border, rather than leaving it the hell where I want it.
I'll get to that later; make it a hidden configuration setting. For now, I just removed it for my own use.
Why something that intrusive to the user was hardcoded in, I won't pretend to understand. And judging by its present lack of configurability, I can only assume nobody else in the world actually uses that feature.
TML
mattmcc: I'd be interested in that patch
InsaneHamster
mattmcc: But the patch will probably go into 4.0, as 3.5 is locked up...
mattmcc
Well, AIUI, 4.0 is a completely different animal. Although I suppose kwin itself won't necessarily change much.
InsaneHamster
mattmcc: from wht I read, EVERYTHING is going trough overhaul...
TML
mattmcc: I think it's an attempt at making it behave like OSX. It does something like that because the users tend to "throw" their mouse at the edge to do the flip.
And they don't expect it to "stop" just because it changed pages.
Ricky28269
sorry to interrupt... whatever you're talking about, but i've got a question: why is it that when i have a file that echos some html and then goes into an infinite loop, nothing is outputted to the browser?
i have already checked, and output buffering is off, so that doesnt seem to be the problem
TML
Ricky28269: Output is buffered regardless.
Ricky28269
so i have to do ob_flush() every time i echo something?
TML
Ricky28269: No, just don't write infinite loops.
They're rarely the right thing to do anyways
Ricky28269
ehm... let's say that this infinite (or near-infinite) loop is required. how would i allow it to echo bits at a time, instead of buffering?
unique
i turned safe_mode on and the exec function is still not working... what else could it be?
cisse
what are you trying to execute
unique
cisse: uptime..
Akuma_
Quick question: smarty or flexy?
InsaneHamster
neither.
Akuma_
got a better one?
mattmcc
PHP.
Akuma_
i work with someone who will only design the pages, so i kinda need one
InsaneHamster
no you don't...
Akuma_
without them learning some php?
mattmcc
If they can learn a template language, they can learn echo.
Seriously, how is {{foo}} any easier to learn than <?php echo $foo ?> ?
InsaneHamster
Akuma_: Well... putting <?php echo function() ?> doesn't require PHP knowledge...
Julian|Work
mattmcc, it's a little cleaner, if nothing else.
ibob63
I am going to use gzwrite. Is there a command that can check that Zlib module is installed?
InsaneHamster
not really
php -m
Akuma_
(Action) thinking ...
mattmcc
Julian|Work: Opinions on style aside, I won't accept that a person could be taught one syntax, but not the other.
Julian|Work
mattmcc, agree on that point. I still prefer templates (although I 'understand' both :P)
mattmcc
Which has always been a weak point in the argument for template engines. "My designer can't learn PHP, but he can learn RandomJoesTemplateFormat"
Ricky28269
http://rafb.net/paste/results/L4tVDC31.html this script just continually loads, never sends anything to the browser
m1chael
thats a nasty loop
awormus
mattmcc: my graphics guy hurts me enough with his HTML, I don't want to find out what he can do with php
Akuma_
but templates, say smarty, also have plenty of functionality built in: caching, html elements (forms, etc), debugging...
ruben-
what do I have to add in php.ini at the error part to not give warnings?
Tokeiito
xm for what types operation is better sqlite and for what: dba ?
InsaneHamster
awormus: Hire smarter guy.
Ricky28269
m1chael: yes it's an infinite loop. but why is nothing echoed before and during it?
ibob63
ruben_: ini_set('error_reporting', E_ALL);
Ricky28269
well, and technically it's not infinite. i made it end on user's severing of the connection
m1chael
ricky, you could do ob_flush()
to force some output
then it'll just loop4L
Ricky28269
it doesn't work
ruben-
ibob63: ONLY errors, no warnings
Ricky28269
i don't even have output buffering on anyway...
InsaneHamster
Ricky28269: Why are you doing it,. anyways?
Ricky28269
i need a constant connection to send information to an user
InsaneHamster
why?
Ricky28269
when it gets more complex, i will have it repeatedly check a database and keep an user updated using javascript to update the page contents
ibob63
ruben: yep, that a good point but I forget the other configs
ruben-
ibob63: hehe :p
InsaneHamster
Ricky28269: Then use asynchronous calls via JS to accomplish that, not a killer loop...
Ricky28269
is this loop possible or not?
biodan
Ricky28269: http://en.wikipedia.org/wiki/AJAX
Tokeiito
ok. for financial simple one PC accounting aplication what type of DB you choose: mySQL, dba, sqlite and why?
Ricky28269
i know about ajax, tyvm
InsaneHamster
Ricky28269: It is, but it's not to be used for web things
Ricky28269
so it cannot display to the browser?
InsaneHamster
it can, but it would depend on your browser as well...
NBrepresent
i'm doing an events section, and i'd like to know for navigation through the months of events, should i just take the current GET variable and add or subtract one for the next or previous months? and use that for my query (escaped of course). or is there some other way for me to do this, like fetch everything at once and only display one month at a time?
biodan
NBrepresent: It would probably be best to use the GET variable like you described
Ricky28269
InsaneHamster: can u explain how to output to browser plz? lol
NBrepresent
yeah, i thought so too. i'd end up with all sorts of arrays of months of events i guess if i went the other way
InsaneHamster
!tell Ricky28269 about u
variable
i am trying to upload files with php, and it works on one machine, but not this one. i am uploading with a post form, and i get "PHP Warning: filetype(): Lstat failed for (null) (errno=2 - No such file or directory)" in the apache error_log
InsaneHamster
Ricky28269: php.net/flush
NBrepresent
!tell NBrepresent about u
InsaneHamster
!+msg the bot'
!+msg the bot
« 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 28 29 30 31 32 33 next »