IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-06-20
Pages: 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Next >
[00:00]<eyzau>+Dereck: php.net/parse-url
[00:03]<ruy_ee>-zircu: my flash loads xml file..that contains <data note="<a href=..."> and i need to show that
[00:04]<czzznzz>-hi
[00:06]<mygmnf>+hi all
[00:07]<wjlllrws>+grimpirate: You might want to take a lok into this: http://www.fox-toolkit.org/
[00:07]<||aw>+gui_zz: that kind of data in an xml file needs to be encoded/escaped
[00:07]<mygmnf>+please tell me where could i find php scripts of culculators which can sum up choises and culculate ... i mean like i need this this this, and than after pressing button it would culculate the cost of these products ? please i really need this one
[00:08]<zdzxzzmfdgzx>+Dereck: $_SERVER['PHP_SELF']
[00:08]<zggm>-is xml text decoding rules the same as HTML in regards to special characters?
[00:08]<zdzxzzmfdgzx>+Zend: No, not quite.
[00:08]<||aw>+mindeq: like php.net/array_sum ?
[00:08]<zdzxzzmfdgzx>+Zend: I do not know what it *IS* but I do know that htmlentities ain't it.
[00:08]<zggm>-is there a php function that decodes html like html_entity_decode()?
[00:08]<mygmnf>+||cw hm i need already made scripts :/
[00:09]<||aw>+mindeq: then you are in the wrong place, try freshmeat.net
[00:09]<zdzxzzmfdgzx>+Zend: I *think* there might be an xml_decode or somesuch in the user-contributed notes... If not a built-in function in PHP5.
[00:11]<zggm>-is there a list i can do to go that list all of the special characters and conversions so i can make my own function?
[00:11]<zzlzm>-there's always strip_tags() :p
[00:13]<ruy_ee>-||cw: how can i encode html into xml ?
[00:13]<myjrjo7>+gui_zz, CDATA ?
[00:14]<mzgmzya>+i'm trying to match a string with : if ( $key != 'f' || $key != 'action') { // something wrong here?
[00:15]<wjlllrws>+yes... Use && instead of ||
[00:15]<zdzxzzmfdgzx>+mandric: No matter what $key is, it's BOUND to either Not be 'f' or NOT be 'action', cuz it can't be both of those at once...
[00:15]<zzlzm>-looks like you want && not |
[00:15]<zzydlyzrvn>-checking it out Wolfpaws
[00:15]<mzgmzya>+duh.. thanks for extra eys
[00:15]<asjpv>+:D
[00:15]<myjrjo7>+mandric, syntactically no.
[00:15]<mzgmzya>+diogo86: thx
[00:16]<mzgmzya>+i'm always thinking my perlisms will never work
[00:16]<||aw>+gui_zz: check the user comments on php.net/htmlentities
[00:16]<ruy_ee>-diogo86: cdata...but i dont understand how use cdata with html
[00:16]<||aw>+gui_zz: basicaly, you follow the xml encoding rules, much like html's byt not quite the same
[00:17]<2nnzmnfdvnzdrud>+anyone help me with geoIP?
[00:18]<2nnzmnfdvnzdrud>+function geoip_country_code_by_addr() cannot be assigneed to a variable :[
[00:18]<fjjs>-Hi guys, I'm confused about sessions. If I put a session_start() at the top of one page, put in some $_SESSION variable then put session_start at the top of another page all those variables should be available to the second page right?
[00:18]<myjrjo7>+gui_zz, i don't know if it's what you want http://www.w3schools.com/xml/xml_cdata.asp
[00:18]<zdzxzzmfdgzx>+beerdeliveryguy: What did you type that managed to get that error message?
[00:18]<2nnzmnfdvnzdrud>+its not an error
[00:18]<zzlzm>-beerdeliveryguy: php.net/references
[00:18]<myjrjo7>+lokkju, so far so good
[00:19]<zdzxzzmfdgzx>+loos: Yes.
[00:19]<zzlzm>-assign it to something first
[00:19]<2nnzmnfdvnzdrud>+its just when i fwrite with the function directly inside, it prints, but when i assign it to a variable, and fwrite that variable it wont append
[00:19]<zdzxzzmfdgzx>+beerdeliveryguy: $foo = geoip_balh_blah_bla(); fwrite($file, $foo);
[00:20]<2nnzmnfdvnzdrud>+uh, i did that
[00:20]<||aw>+loos: yes
[00:20]<zdzxzzmfdgzx>+The error message is claiming you didn't...
[00:20]<2nnzmnfdvnzdrud>+there is no error message.
[00:21]<2nnzmnfdvnzdrud>+there was no error message, just a blank variable
[00:22]<zdzxzzmfdgzx>+define "blank variable" for us... var_dump() it. What are the return values for the geoip_ function? is there an error-result function?
[00:23]<2nnzmnfdvnzdrud>+uh
[00:23]<2nnzmnfdvnzdrud>+dude
[00:23]<2nnzmnfdvnzdrud>+i echo the function
[00:23]<2nnzmnfdvnzdrud>+it prints fine
[00:23]<2nnzmnfdvnzdrud>+i assign it to a variable
[00:23]<2nnzmnfdvnzdrud>+i print the variable
[00:23]<2nnzmnfdvnzdrud>+and nothing is in the variable.
[00:24]<zdzxzzmfdgzx>+var_dump it.
[00:24]<zdzxzzmfdgzx>+The function AND the variable var_dump()s
[00:25]<fjzmrnylxrs>+hi folks
[00:26]<2nnzmnfdvnzdrud>+mister richard
[00:26]<2nnzmnfdvnzdrud>+let me clarify this
[00:26]<2nnzmnfdvnzdrud>+im not a beginner with php
[00:26]<2nnzmnfdvnzdrud>+i tried those basic tasks already
[00:26]<fjzmrnylxrs>+http://kaiphas.dyndns.info/graphics/test.php <-- why is the image not transparent? if i make imagepng, the background is transparent...
[00:26]<gzznvxzdzds>+beerdeliveryguy: pastein the code you're using
[00:27]<gzznvxzdzds>++b
[00:27]<zdzxzzmfdgzx>+And what did var_dump() output for the function call?
[00:27]<pynv>+so which input validation / in put filtering classes would people recommend?
[00:27]<pynv>+s/in put/input/
[00:27]<2nnzmnfdvnzdrud>+not a god damn thing
[00:27]<2nnzmnfdvnzdrud>+i tried print_r too
[00:28]<gzznvxzdzds>+beerdeliveryguy: pastebin the code you're using. This discussing isn't much use without seeing /something/
[00:28]<gzznvxzdzds>+*discussion
[00:28]<2nnzmnfdvnzdrud>+returns 1
[00:28]<zdzxzzmfdgzx>+lordceiphas: Did you set the compression for your PNG? If it compresses away the transparent color, then nothing is transparent, as the color isn't there.
[00:28]<2nnzmnfdvnzdrud>+GarethAdams: its not much to see
[00:28]<2nnzmnfdvnzdrud>+$variable = function();
[00:28]<zdzxzzmfdgzx>+pastebin it.
[00:29]<fjzmrnylxrs>+richardlynch it IS transparent as png, but not as gif
[00:29]<2nnzmnfdvnzdrud>+variable returns 1 when I print_r
[00:29]<djssgfdrgyra>-hi guys, what could be wrong? i include the conf of my mysqldatabase, i connect, which works fine, but when i run a query, i get an error back, no database selected, but i do select it with mysql_select_db($db);, and $db has the right value, what else could be wrong?
[00:29]<fjzmrnylxrs>+make a var_dump of the connection
[00:30]<zdzxzzmfdgzx>+lordceiphas: There ya go. GIF has only 256 colors. PNG has zillions. GIF pallete down-sampling has removed the transparent color. Do the imagetopallet yourself, then set the color transparent that is actually in the pallet.
[00:30]<djssgfdrgyra>-me?
[00:30]<fjzmrnylxrs>+mossel... jup
[00:30]<djssgfdrgyra>-how , which var?
[00:30]<zdzxzzmfdgzx>+Do mysql_error() after the mysql_select_db($db)
[00:30]<fjzmrnylxrs>+var_dump(mysql_select_db($db));
[00:30]<wjlllrws>+richardlynch: IIRC, PNG has only 16.7 millions of colors.
[00:31]<zdzxzzmfdgzx>+Relative to GIF with 256, that's zillions.
[00:31]<gudysv>+png has any number of colours, but only a limited palatte
[00:31]<djssgfdrgyra>-bool(false)
[00:31]<wjlllrws>+richardlynch: That's not really true
[00:31]<gudysv>+Mosselmaniac: mysql_get_last_error
[00:31]<gudysv>+or whatever it is
[00:31]<djssgfdrgyra>-no database selected, sais mysql_error()
[00:31]<zdzxzzmfdgzx>+Mosselmaniac: That means it's an error. mysql_error() after the mysql_select_db()







