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: 1822.38 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
Pages: < 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Next >
[16:07]<eee>Hi! Can i somehow define a superglobal variable? I mean a variable what a function can reach (without giving parameter to the function)??
[16:07]<byre>Bheam: Mmmkay, that ones fine, what about display_errors?
[16:07]<bxnrd>BigE: ... it's not generating an error
[16:07]<wj22fns>zzz: You can decalre the variable global in the function
[16:08]<wj22fns>declare
[16:08]<bxnrd>BigE: i don't even know if the problem is apache, php, network or what
[16:08]<byre>Bheam: Yeah... I know... so what is your display_errors setting set to? That could be your problem.
[16:08]<byre>PHP won't generate an error ifyou don't tell it to.
[16:08]<bxnrd>BigE: it's off, production
[16:08]<dreer[w]>:/
[16:08]<bxnrd>BigE: log_errors = On
[16:09]<eee>wobbles: how can i declare it to global?
[16:09]<wj22fns>function wibble(params) { global $wibble; function here;}
[16:10]<wj22fns>or See the docs for functions
[16:10]<eee>and if i declare it out of the function, can i reach it from the function?
[16:10]<bxnrd>might be my damn troublesome firewall
[16:10]<ndf>zzz, global $name;
[16:11]<2r2j>Anyone know a good guide to setting up a php-imap email gateway ?
[16:12]<eee>wobbles: oh, it works, thanks!
[16:20]<ad2nzyw>I can't get magic_quotes disabled from code.
[16:20]<ad2nzyw> ini_set( "magic_quotes_gpc", "0" );
[16:20]<ad2nzyw> ini_set( "magic_quotes_runtime", "0" );
[16:20]<ad2nzyw>Am I doing something wrong?
[16:21]<rgvyhero`>does any of u guys know an online uml viewer?
[16:22]<||aw>cyberix: you have to do it from .htaccess. by the time your code starts, the magic is applied
[16:24]<ljjjp>hi
[16:24]<ljjjp>i ve a question about $_SESSION
[16:25]<ljjjp>$_session takes the values of this array from the cookie or from the session in the php server?
[16:25]<||aw>session on the server
[16:25]<zjw>session data is stored in a session file on the server.
[16:25]<||aw>$_COOKIES has the cookies
[16:25]<ljjjp>ahh
[16:26]<ljjjp>so if the cookie is modified it doesnt change session
[16:26]<cyjvj>hei dudes but with php5 it's very difficult to write an abstract handler to manage errors
[16:26]<cyjvj>ops php4 sorry
[16:27]<||aw>pooof: well, if one modified the sesion id cookie, then the session could be lost
[16:27]<zjw>poof: unless you alter their session id cookie which stores their session id as the name suggests $_COOKIE[session_name()] should never be altered unless you want to alter their session id.
[16:27]<||aw>or hijacked
[16:27]<zjw>||cw is just too fast ;)
[16:28]<ljjjp>the thing is that i want to store valuable data in session
[16:28]<ljjjp>and i dont want that data altered
[16:28]<wygduvv>i hate gcc
[16:29]<zjw>pooof: they can't alter it unless you have a hole in your security.
[16:29]<zjw>pooof: or they get access to the session file stored on the server.
[16:29]<ad2nzyw>I did... echo "php_value magic_quotes_gpc 0" > .htaccess && chmod a+rx .htaccess ...and now Apache tells me "500 Internal Server Error"
[16:29]<wygduvv>pooof: what kind of valuable information?
[16:30]<wygduvv>cyberix: read your logs
[16:30]<ljjjp>the resources that the user has
[16:30]<wygduvv>thats not "valuable" lol
[16:30]<wygduvv>just use session
[16:30]<ljjjp>if a user has the privilege to enter a sextion its checked in the db
[16:30]<fjvus_rgydr>can i have a class inherit another, the override the parent's method, but call this same method that's being overriden in the new version
[16:31]<zjw>cyberix: you must allow overide of those values.
[16:31]<fjvus_rgydr>(wow, did that make sense?)
[16:31]<ljjjp>but any time that user needs a resource a query its made
[16:31]<wygduvv>pooof: store the perms in the db, load them into the session when they login
[16:31]<ad2nzyw>row: "php_value not allowed here"
[16:31]<ljjjp>winmutt: that is why im asking this
[16:31]<scjfvnfjv>lotus: parent::method()
[16:32]<wygduvv>lotus_anima: parent::
[16:32]<wygduvv>damn
[16:32]<fjvus_rgydr>but if that's being called from my current method it'll still work?
[16:32]<zjw>"php_value magic_quotes_gpc 0" and php_value magic_quotes_runtime 0" will work if you allow override.
[16:32]<wygduvv>pooof: that is more or less what session is
[16:32]<ljjjp>?
[16:32]<ljjjp>i take it
[16:33]<ljjjp>but i was asking preventing a hole in the security
[16:33]<wygduvv>pooof: session is as secure as your db is
[16:33]<ymrg>im using php5.1 with apahce2 but on phpinfo it dosent seems i have DOM installed.. how can it be? thanks
[16:34]<wygduvv>there is no logical difference between storing the perm info on your webserver or db server
[16:34]<wygduvv>if they can access your session data file they can certainly get the login to your db
[16:34]<ljjjp>ok then
[16:35]<ljjjp>this will make my aplication faster
[16:35]<ljssyn>most people using php5 nowadays ?
[16:36]<rrrj2yrg_>Any good directed graph rendering solutions that play nicely with php4?
[16:36]<rrrj2yrg_>I want to avoid java if possible
[16:37]<jd>jpgraph
[16:37]<zjw>rddtool...
[16:37]<zjw>?
[16:37]<ljjjp>see ya thnx for the help
[16:38]<rrrj2yrg_>Hmmm. I mean graphs
[16:38]<rrrj2yrg_>in the mathematical sense
[16:38]<rrrj2yrg_>not a plot
[16:40]<zjw>jacobian_: what do you want to do?
[16:40]<rrrj2yrg_>draw a graph
[16:40]<zjw>so rrdtool will do that.....
[16:40]<rrrj2yrg_>I have a binary relation on the natural numbers
[16:41]<zjw>rrdtool*
[16:41]<rrrj2yrg_>those are graphs in a different sense
[16:41]<rrrj2yrg_>those are actually plots
[16:41]<rrrj2yrg_>I'm talking about the mathematical object
[16:41]<rrrj2yrg_>a "graph"
[16:42]<rrrj2yrg_>http://en.wikipedia.org/wiki/Graph_%28mathematics%29
[16:42]<scjfvnfjv>jacobian_: graphviz + php extension
[16:42]<zjw>oooooo
[16:44]<rrrj2yrg_>thanks skoptelov
[16:51]<mzsvnz_mnmya>hello
[16:51]<mzsvnz_mnmya>i was wondering how to send an attachment with mail()?
[16:52]<jd>Master_Medic, its easier to use one of the pre-made classes people have already done for that
[16:53]<jd>that way you aren't re-inventing the wheel with encoding it and such







