| |
| |
| |
|
Page: 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
Comments:
<0> This we call No Break here <1> Cupply? :o <2> Gimp_: That's UPS, dummy <3> UPS sorry <3> wrong letter. <3> rofl <2> twice? <3> yah.. <2> http://news.bbc.co.uk/2/hi/americas/4846714.stm <-- What the HELL is wrong with people?!? <4> hey, can someone give me some help with str_replace()? <0> The main problem of any computer is the Keyboard-Chair interface... <5> Stormchaser: O.o <4> I haven't been able to get it to work, it doesn't replace anything, it just displays the line from the file. <3> Necromancer: could we see your code please? <6> Hi, when I click a link on my php-generated pages and then click the back button to get back, it always brings me to the top of the page as if it were being generated again. How do I stop this?
<3> actually <3> wait <3> no <3> yes <3> code -> yes. <4> yeah, here it is-http://hashphp.org/pastebin?pid=6399 <4> the fact() function <2> OiNutter: That's not a PHP problem. It's browser thing. #web. <0> I need an idea about my modules problem... <6> um... but it only happens on php generated pages... <6> okay I guess <3> umm <3> Necromancer: you're replacing $name with $name? <4> no, i'm replacing the string "$name" with the value of the variable $name <3> Necromancer: ok, then thats your problem <3> just a minute <3> replace the double quotes with single quotes <3> with double quotes, it parses the variable. <3> "$name" == $name <7> hey! <4> that totally worked <3> heh <4> thanks Gimp! <3> no problem <0> Pollita:Hi, are you there? <3> you just gotta realise the difference between single and double quotes <7> i've just been looking at a pear example for html_quick_forms, and there's a statement i don't understand <3> singles will output exactly what is written inside. doubles will parse variables and a few other things that im unsure of. <7> it starts like this... $twoLabel = <<<_HTML <7> and ends thus: _HTML; with a bunch of html <tags> in between <7> i understand it's an ***ignment, but in my mind, there should be " "'s around all that. it works, but i don't understand it... <8> hi, when i do a time nothing on my site, the $_SESSION data is not available anymore? when does the data expire? <9> what's the best way of unsetting keys array('key1', 'key2) from ***ociative array $keys? <10> unset($arr['key']); <8> i have set session.cookie_lifetime to 0, but i havent closed my browser so the session should exist? <8> is there a way to watch all session data? <8> or which session id's are in use at the moment <10> var_dump($_SESSION) possibly <11> No, that will only give you info about the current session <10> oh, site wide session data? <11> Other peoples' sessions won't be there. You can look at the contents of your sessions directory or database table <8> MarkR :wheres the sessions dir? <11> However, PHP does not necessarily keep it entirely clean, you'll see some expired sessions too. <11> Wherever it's configured to be; often /tmp on Linux <12> anyone here use phpdocumentor -- and know how to get it to highlight source code and link the code in? I selected that option in the interface to generate the doc, but I don't see that the code is linked in <8> session.save_path is this the directive where the session data is stored? <8> on debian its default is on /var/lib/php4 <8> but there i cant see anything with expire time <8> what is the normal way to kick someone out of a webapp, when his session has expired? check on top of every page if some kind of $_SESSION data is already available, if not, kick off ? <13> Gentlemen.... START YOUR ENGINES! <14> what is the best way to get around when inserting fields into a database those with a " in them...add slashes? <15> does the use of md5() or crypt() require the crypt extension of php? <16> mysql_real_escape_string() <13> daum: You can just store the quotes in the db, and use mysql escape real string to get it into the db <13> excelblue md5 is not encryption. <13> and doesn't have any prereqs <13> !+md5 <17> MD5 is a message digest (one-way hash), typically used to create digital signatures and for preventing p***words from being stored in plain text. IT IS NOT ENCRYPTION. If you don't hash your user p***words, this could be you: http://slashdot.org/articles/00/09/29/1245218.shtml/ See also: SHA1 and http://www.cryptography.com/cnews/hash.html Hint: if(md5($User_entered_p***word) == $stored_user_p***word. <14> Jymmm, so would i do mysql_real_escape_string($string), query.=$tring, mysql_query($query)? <13> !+tias
<17> [TIAS] Try It And See. If you want to know if something works, try it first. <16> that bot seems overused <2> Kevin`: It sounds like a problem. Is it? <13> Kevin`: We get a lil tired of repeating the same thing over and over agian, much of which is in the manual. <16> Stormchaser, Jymmm i'd rather not get into an agrument about it <18> i want to know if a web designer should should be exceptionally good at graphics desgning <19> there is a difference between argue and discuss :) <16> ya that's what I thought just before the last time I got kicked out <13> Alexi5: It wouldn't hurt, but not a REAL requirement. <19> sometimes the kick button gets pressed a little early, i'l lgrant you that :) <20> how do I make a unique hash? <16> philip speaking of, what's the command to part someone? <19> i don't know, i'm a poor op <19> i just know how to kick and ban :) <13> philip one of these days you'll even learn what LOGIN: is for. <21> Hello <19> aikie: as in, a unique string? <19> php-bot: please LOGIN: me <20> yes <22> woow <13> philip bet it told you you're crazy huh? <19> look around uniqid() <22> php5 gd library is 3x faster for hardcore processing =]] <22> awsome <20> just a unique combinations of characters <19> yeah, php-bot tells me that a lot <13> md5 microtime . key <16> Drakas faster then what? <16> php4? <13> philip: Well, you have to be a lil crazy to survive in this world. <21> Is using mysql_num_rows() runs the whole query and returns only the num of rows or it its the same as MYSQL_RESULT(MYSQL_QUERY("COUNT(*)"), 0) - is one of the ways preferr\ed over the other? <13> Kevin`: So, when did you get kicked? <22> php4 <22> yes <22> pho4 gd took around 20 seconds to do my script. php 5 does it in two <16> Jymmm my logs aren't good enough to say.. sometime in the last few days <22> nvm... it's 6 <22> :} <19> SunShineLady: if you do not need data, use count() <23> SunShineLady: mysql_num_rows will only give you the number of rows in a result set. <24> I can't access files from php, permission denied.. I chowned and chmodded earlier (can't remember what), but now it sais this? I think every new file I create can't be accessed, how do I fix the permissions and how can I make them stay? I know I should turn to a linux-channel but, I guess one of you would know how to fix this too... <23> SunShineLady: Try the documentation :) <25> Can someone please advice me how to get a <ul> type list based on this information: http://pastebin.com/623740 ? <19> Shariff: print "<ul>"; :) <16> eml exactly what you chmodded to, and the owner of the file, is quite important <21> Viflux/philip - I need both the date and the num of rows, should I use 2 MYSQL_QUERYs or mysql_num_rows()? <24> Kevin`, yeah, toobad I do not know anymore, 750 or 770 perhaps? =O I guess what owner is quite easy to look up <24> apache:eml could've been the owner? <19> mysql_num_rows does exactly what you want, it soundsl ike <23> SunShineLady: The date of what? <25> philip> Not really.. I think because that will put a <ul> in front of every line.. I don't think that will work for html.. do you? :D <16> eml well if apache/php is running as apache, that would work <19> Shariff: echo '<li>' . $foo . '</li>'; <21> Viflux - Messages, I want it to say "No Messages" there are no results.. <24> Kevin`, okay, well what about getting this permanent? <15> is it insecure to use sessions to faciliate stuff once a person has logged in with a p***word? <16> permanent? <24> Kevin`, yeah, each new file I create has to be chowned/chmodded now <19> excelblue: everything is insecure <15> is the session more insecure than cookies? <19> excelblue: but that is common thing to do <25> philip> It's not just 1 list.. it's a recursive list .. <ul> <li></li> <ul><li></li> </ul> </ul> <19> excelblue: no <23> SunShineLady: Why don't you show us some code (pastebin) and tell us exactly what you want. <16> eml well there's a way to set the default permisson mask a file is created with (unfortunately, I don't quite remember how) <15> so, should they be treated as equal in security? <24> Kevin`, ok <23> excelblue: Sessions use cookies ;) <19> Shariff: i have faith that eventually you'll figure it out <21> Viflux - Okey, Pastebin in progress... <19> not all sessions use cookies :) <13> Kevin`: Ah, you were being a smart***, but not in a good way. <23> the good ones do
Return to
#php or Go to some related
logs:
apache 2.2 nagios error 403
awk get hostname autofs suse (files nis does not provide any mounts opengl Mobile x300
debian siocsifaddr etch #ai postfix remote_header_rewrite_domain microlinux laptop #gentoo Tualatin menuconfig
|
|