logs archiveIRC Archive / Freenode / #php / 2006 / June / 7 / 31
Anti-DeVeRaS
sorry philip
Rewt`
no
caffinated
Navid: with the manual. I've coded in other languages prior to it though, so none of the concepts in php were new.
philip
mm2000: how do you know ths is the correct php.ini
Anti-DeVeRaS
then?
tuxplorer
Rewt`: was that for me?
Rewt`
tuxplorer: yes
php is a language
now, are there mailing lists managers written in PHP? yes.
philip
Anti-DeVeRaS: global and return have nothing to do with one another
mm2000
philip: i just located for php.ini's... Maybe there is some other on the system?
         

Navid
I see, Im gonna put the book away for awhile, read over the whole manual. Then read the book if I have to. :D
philip
mm2000: phpinfo() tells all
mm2000
ok
tuxplorer
Rewt`: that's what I asked
KR-data
hi, I once saw a php-script using virtual folders, where you could use www.example.com/example/folder, where example actually is a php-file and folder is used like get or post, anyone who got a link to such a script?
tuxplorer
Rewt`: can you suggest me one?
Anti-DeVeRaS
philip then how do i make it work?????
how do i pass one value back?
mm2000
philip: shows local value and master value On.
philip
Anti-DeVeRaS: when you return something, you do not return a variable name, you return a value
mm2000: phpinfo() says what for php.ini location, exactly
Jorsha
i already create forgot password page for member.. then i want send the password via email (send email is working very well), but i don't know how to convert hash password (that use md5) to real password ?? oh my god!
Anti-DeVeRaS
oh god...
Rewt`
tuxplorer: no it wasn't. However, there are many mailing list managers written in PHP. I don't advocate any of them. Google would be the place to start.
flam
anyone got a good site/tutorial which explains how to integrate MS word into a php website? i think i've seen it somewhere
philip
shell_exec('msword.exe'); :)
Rewt`
flam: a word doc, or word itself?
Meaty
Anti-DeVeRaS !
tuxplorer
Rewt`: yes. I googled b4 coming here.. but couldn't find one similar to mailman.. there were many newsletter mailing list managers though..
Meaty
Anti-DeVeRaS pv
Anti-DeVeRaS
i'am mate
ace_me
any php ticketing system / project completion freeware ?
         

philip
this channel does not recommend software
riftdesign
heh
ace_me
yes it does sometimes
Rewt`
ace_me: search http://www.sourceforge.net
ace_me
see what I mean ?
Can I search logs ?of php ?
riftdesign
ace_me: http://freshmeat.net
philip
the guidelines says it does not
Rewt`
tuxplorer: what features are you looking for?
ace_me
I remmeber that someone recomend one few weeks ago
philip
people murder each other too, does not make it right
Rewt`
ace_me: if you log on your personal client, then yes
Anti-DeVeRaS
philip can u give me a short example of hwo to do it? passe value from function inside fuction?
mm2000
this is odd... "Configuration File (php.ini) Path" points to "/usr/local/lib" But there is no php.ini there at all
Jorsha
how to show the hash password (MD5) to real password? i want to send it via email :((
ace_me
something simple
tuxplorer
Rewt`: I just want each message sent by any of the members to be broadcast to all other members..
that's it
philip
Anti-DeVeRaS: function foo() { return 'hello'; } $var = foo(); bar($var);
Rewt`
tuxplorer: no sign up / remove fuctionality? Or should I just assume that's in it.
KR-data
Jorsha: do you know what hashing is?
tuxplorer
Rewt`: signup and remove are needed
philip
Jorsha: you don't
Meaty
Anti-DeVeRaS : private pls
Fango
getting stoned?
Rewt`
tuxplorer: gotcha.. one sec
flam
Rewt`: it would be word itself. like in the browser. and then i want to save the text into a database..
Jorsha
KR-data just one way..
ace_me
any archives of channel ?
philip
yes
ace_me
where please ?
Navid
thanks for your help philip and caffinated
philip
google.com will show you the way
Navid
gtg, bye now
benjr
lol pokemon
Rewt`
tuxplorer: here's a tutorial, with code example: http://www.tutorialized.com/tutorial/Simple-PHP-mailing-list/11435
tuxplorer
thanks Rewt`
ace_me
php-bot: help
Crescendo
How to use tidy to catch all page output in PHP, tidy it, then output again?
Jorsha
then what technique that people use if hash the user password to database, how is the forget password system?
caffinated
Crescendo
Thanks, caffinated.
ace_me
storm-bot: help
KR-data
Jorsha: it generates a hex-code that has a length of 32, that can't match any possible combination,m which means that there is many combinations which has the same value
philip
Jorsha: preferred method is to reset the password
ace_me: /query stormbot
ace_me
and HELP / archives ?
Jorsha
philip nice.. do reset password :) give the user new random password huh?
philip
google for terms: freenode php and you will find
KR-data
Jorsha: that makes the conclusion that it is not possible to "dehash" a hash, since a script has no way of knowing what value that is the correct one
Jorsha
then save the new hash to database
philip
Jorsha: yes, or sometimes people provide a reminder question
KR-data
Jorsha: as philip says, and I gave you why to do it that way ^_^
Jorsha
thank you.. i almost forget that basic technique.. even see those much in yahoo, gmail, etc ;P
KR-data thanks.. just guessing what people use :)
ace_me
not found the archive http://www.google.com/search?q=irc+freenode+php+archive&hl=en&lr=
philip
lose the word archive
KR-data
Jorsha: yeah, well it is possible to bruteforce the hash, but that wouldn't be exact and would last for days
brokencard
Could one regexp match multiple lines? for example, could a regexp match this?
<u>text</u><br>
more text here<br>
with just one?
philip
and irc
benjr
my page has an includes variable thats value comes from get for the main content section of my page, if someone enters a value in the address bar of a page that does not exist, they get an ugly php error, how would i replace this with something more user friendly?
brokencard
or can it only evaulate one line at a time?
||cw
brokencard: if you give it the right options, yes
brokencard
what options would be necessary?
philip
brokencard: a default include if said file does not exist, or, if said file is not in an array of includable files (preferred), set up some restrictions on what can be included
||cw
brokencard: i odn't recall, tha manual should say
KR-data
Jorsha: but when it comes to securing against bruteforcing I recommend checking for words in a dictionary, because the first thing I'd do when bruteforcing is to scan for the word in a dictionary
philip
$includes = array('foo', 'bar'); if (isset($includes[$_GET['i']])) ...
Anti-DeVeRaS
philip mate, why this doen't work: http://pastebin.com/765486
philip
btw, i of course was speaking to benjr not brokencard :)
Anti-DeVeRaS
it's simple... has in the manual... but won't work
output nothing...
benjr
philip: since im still building my site, having an array of includable files would be trouble right now, how do i check if the file exists?
Anti-DeVeRaS
oh never mind... i will just do a include of external file ... simpler
philip
benjr: you can expand the array :)
file_exists()
benjr
philip: i could combine those and make the array of include files to be all the files that exist in a particular folder, so itd be dynamic?
philip
options are limitless, but sounds like it could be a performance issue
benjr
philip: good point, infact theres the exact code i need in the comments section on php.net/file_exists , thanks for the point in the right direction
zombieReagan
hey, if I wanted to access an object within an instance of an object (it i've got an object that creates a mysqli object to talk to a database) how do I do that? would it just be $this->mysqliObject_variable->mysqliObject_method; ?
brokencard
I still can't figure out how to get multiple lines with preg_match
http://pastebin.com/765498
is what I'm trying to do
caffinated
brokencard: the 's' modifier will cause '.' to match a newline
brokencard
it just won't read the 2nd line :(
it doesn't work without s either
caffinated
brokencard: as far as i can tell, you're not actually matching a newline anywhere in there.
and why are you escaping everything?
brokencard
I didn't remember what needed to be escaped
caffinated
inside a character class, the only things that need escaping are: '\', '[', ']' and '-' if it's not used as part of a range, and is not the last character in the class.
brokencard
what about ^
caffinated
only matters if it's the first character, and you're not using it to negate
but you're right, '^' is special in there as well if it's the first character
you should also be aware that in the context of pattern matching, '<br>' is not equivalent to a newline.
brokencard
escaping too much doesn't hurt anything, does it
caffinated
it all depends. escaping certain characters changes their meaning.
don't escape unless you need to.
brokencard
would I need to type a literal '\n' where the second line starts?
caffinated
yes, or use something capable of capturing a newline
xshad
what's better to use, imap or sockets (pop3 access)?
Pollita
Use the PEAR Net_POP3 class
xshad
Pollita no, I meant php's standard functions
Pollita
The imap extension is great when it works, but it's a bit of a pain to get working
xshad
Pollita eh, I saw it yesterday :)
Pollita
xshad: Then my answer is 'maybe'
brokencard
caffinated: why wouldn't this work? (<u>)([A-Za-z0-9\s\w\d\D]*<\/u>)(<br>)\n([A-Za-z0-9\s\w\d\D]*)(<br>)
xshad
I've downloaded pear pop3, but there's a comment like "Don't use this"
brokencard
there's a newline in there
caffinated
brokencard: i have no idea what your input string looks like, or what you're trying to do with it. so i couldn't tell you.
brokencard
the input string is here
http://pastebin.com/765498
caffinated
brokencard: what part is important to you?
xshad
brokencard use /m modifier for multilines
caffinated
xshad: that won't matter in his context as he is not using the subject delimiters.
brokencard
the <u>Reason for false start:</u><br>
« 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 next »