logs archiveIRC Archive / Freenode / #php / 2015 / August / 14 / 1
Queeniebee
Alphos: where : http://pastebin.com/PqDAR9MD
Alphos
Queeniebee it may seem like it's meaningless, because it's the lowest possible level of error, but trust me, notices are VERY important too
sorabji
Queeniebee: where did the warning get generated?
the message gives you all that information
Alphos
Queeniebee exactly where your error message says
DissidentRage
yeah that kind of thing snowballs
Alphos
DissidentRage absolutely
DissidentRage
use array_key_exists or isset or whatever
cluelessperson
I'm having difficulty understanding the point of an object interface. Could someone possibly put it into laymen's terms?
sorabji
cluelessperson: it's a contract. you can be guaranteed that the methods exist
         

Alphos
cluelessperson it's something that doesn't define an object but makes sure the object has some features that are required
DissidentRage
cluelessperson: you want different stuff doing some of the same things without being bound to the same structure
Queeniebee
sorabji: you mean what line?
sorabji
Queeniebee: read the error message you got. it tells you
Alphos
cluelessperson bikes, cars, and rollerskates have wheels. they could implement the WheeledVehicle interface, that declares they must have the ::changeWheel() method
cluelessperson
DissidentRage, So, if you're going to use say, multiple payment checkout methods, an interface can bring you a standard set of methods, in the same structur that you need?
Alphos
but you can still have three distinct classes
cluelessperson in short, yes
there are, obviously, other applications, some of which are very fine-tuned
some interfaces have built-in features that reflect some of the abilities of the classes and objects that implement them
Queeniebee
sorabji: okay, warning is getting thrown on session_start() at the top of the script&but isnt that where session is set on a sign up form
sorabji
what's the message?
Alphos
that's especially true of classes and objects that implement the Traversable interface : you can foreach() over them
sorabji
Queeniebee: the content of the message is important. it tells you *what* went wrong
Alphos
Queeniebee "headers are already sent" ?
Queeniebee
sorabji: Alphos Undefined index: user_id
Alphos
Queeniebee i'll refuse to read ANY error message you paste that's not complete, with filename and line
DissidentRage
so make sure user_id exists before you use it
Alphos
i simply won't read them
sorabji
also, session_start won't touch a user_id
Alphos
sorabji yes, but a prior error will be outputted, headers sent, yadda yadda yawn
you learn more from your mistakes than from your successes. and you learn more from other people's errors than from their code :p
Queeniebee
Alphos: sorabji the error was being generated from a file I thought I can commented
Alphos: true
Kocho
hey guys, where do i get phpmyadmin help?
         

Alphos
Queeniebee always look at ALL your error messages, of ALL levels
Kocho rm -rf ./phpmyadmin
Kocho alternatively, #phpmyadmin
DissidentRage
hue
Alphos
we don't support it here, and i personally very much advise against it
DissidentRage
y u no use raw mysql command line
or MySQL Workbench
Alphos
both very good choices, DissidentRage :)
phpmyadmin, on the other hand, isn't
DissidentRage
aye
Alphos
it's a gaping security hole >_<
Dustin|Work
I use HeidiSQL
Alphos
(think goatse :p )
Dustin|Work
It's noice.
Alphos
never tried
DissidentRage
rofl
I tried to into PostgreSQL
Alphos
i like workbench for the db architecture, and mysql-client for actual queries
DissidentRage
but Winderps won't have it
Alphos
workbench's models are absoeffinglutely wonderful
DissidentRage
ja
Alphos
they're especially great to never forget foreign keys...
(and also for a pretty overview of your architecture ^^ )
Kocho
thanks Alphos
Alphos
two obvious holes with phpmyadmin : 1) people know you're using mysql (so they can adapt their attacks). 2) they know where your db server is (so they know where to attack)
thebuccaneersden
never expose phpmyadmin to the world. use a vpn or a proxy
Queeniebee
okay, there is an undefined index notice at each form field where I am echo-ing out error[variable] and undefined index notice at $variable = $_SESSION['trc][variable]; what am I doing that shouldnt be: http://pastebin.com/PqDAR9MD
Alphos
thebuccaneersden i think you meant s/use a vpn or proxy/don't use it at all, ever/
thebuccaneersden
No
I dont understand why I would ever say that
Viper-7
Alphos: hard coding the host defeats the 2nd one
Alphos
Viper-7 you're assuming people don't install it locally :/
"they'll never guess it's 127.0.0.1 !"
Viper-7
even then :P
127.0.0.1:3306 doesnt have mysql on it for me ;)
unix pipes ftw
Alphos
again, you're assuming they're not using the default install
Viper-7
i'm just saying the default install only shows a 'hostname' box to the connecting user if unconfigured
local or not, you can make that assumption and take the data out of view from the connecting user
Alphos
meh
i'll stick with mysql-client and mysql workbench, thank you :p
DissidentRage
<Alphos> "they'll never guess it's 127.0.0.1 !"
everyone knows it's ::1
Alphos
DissidentRage :D
next profitable idea : install a mysql instance on ::0, nobody will ever find it there !
DissidentRage
install to /dev/null
Alphos
nah, wormhole is fast enough as it is
thebuccaneersden
Alphos
thebuccaneersden kind of the same, but for blog comments https://github.com/tessalt/echo-chamber-js
thebuccaneersden
Not exactly the same, but I get a kick out of it: https://github.com/theseoafs/sh*ttydb
Alphos
(Action) clicks
"
No, it's named after my grandfather.
" :D
oh god :D https://github.com/theseoafs/sh*ttydb/blob/master/php/ShittyDB.php
DissidentRage
print sdb['foo'] # What happens here? We don't know! It's webscale!
lul
mongodb-is-webscale.mp4
Viper-7
i still swear it's TML in that video
or at least would like to think so :P
http://www.mongodb-is-web-scale.com/ if you're confused
mewm
Alphos, I saw that too... There is a PR (30 ) to make it a bit better :P
Alphos
Viper-7 i wouldn't think so, i don't believe he uses mysql :p
Viper-7
true
AcidReign
HAH " What happens here? We don't know! It's webscale!"
« 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 next »